Update pouchdb monorepo to v8 (major) #455
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.3.1
->8.0.1
7.3.1
->8.0.1
7.3.1
->8.0.1
7.3.1
->8.0.1
Release Notes
pouchdb/pouchdb (pouchdb-adapter-http)
v8.0.1
Compare Source
The first release of the year! This is a patch release, it fixes a bug we introduced during a refactor made in the last release and sets Node 14 in our CI. For a full changelog from 8.0.0 to 8.0.1, please see the releases page or view the latest commits.
Fix
this
ofchangesHandler
#8583 #8581 We introduced a bug in the #8450 refactor that has been fixed now.
Use Node 14
#8570 We were testing our CI in GHA against Node 12, which is EOL. Now we are testing against Node 14.
Changelog
Bugfixes
Documentation
Testing
equal(7)
Get in touch
As always, we welcome feedback from the community. Please don't hesitate to file issues, open discussions or get in touch. And of course, a big thanks to all of our new and existing contributors!
v8.0.0
Compare Source
We are thrilled to announce the release of PouchDB's new major version 8.0.0. For a full changelog from 7.3.1 to 8.0.0, please see the releases page or view the latest commits. Here are the highlights:
Embracing modern ES6+ JS syntax
We have started the process of moving to ES6+ syntax. We made refactors to use native JS classes instead of prototypes, deprecated some packages that implemented features that are now built in the language (
inherits
,argsarray
), and started in packages such aspouchdb-abstract-mapreduce
andpouchdb-adapter-http
. We encourage you to embrace the syntax in your new contributions and, if you can, contribute to the refactoring effort.This might mean a potentially breaking change, therefore we bump the major version. If you need to support ES5 we recommend you use a transpiler.
Add
activeTasks
#8422 #8441 Analogous to the
_active_tasks
feature in CouchDB, PouchDB now hasactiveTasks
. With this functionality, PouchDB is able to list all active database tasks, likedatabase_compaction
,view_indexing
, orreplication
. PouchDB will report the progress of these tasks to the active tasks API and remove tasks as soon as they are completed or have failed.Example usage:
Example result:
Add
purge
to theindexeddb
adapter#8453 Similar to CouchDB's
purge
, PouchDB has nowpurge
for itsindexeddb
adapter.Purge permanently removes data from the database. Normal deletion with
db.remove()
does not, it only marks the document as_deleted=true
and creates a new revision. This behaviour ensures that deletes can be replicated across databases, and deleted documents don’t get undeleted by syncing with a database that still has this document.db.purge()
is not intended as a regular method for deleting documents, instead, it is meant as an admin function for cases where some secret was erroneously added to the database and must now be removed completely, eg. a credit card or social security number. Purge effectively puts the database in a state where the offending write never happened.Example usage:
Example result:
Changelog
New features
created_at/updated_at
naming_purgeRev
methodpurged_infos_limit
supportBugfixes
partial_filter_selector
in ddocsDocumentation
Testing
Dependency updates
Refactor
Other changes
Get in touch
As always, we welcome feedback from the community and would love to hear what you think of this release as well as PouchDB's future direction. Please don't hesitate to file issues, open discussions or get in touch. And of course, a big thanks to all of our new and existing contributors!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.