![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
couchsurfer
Advanced tools
Couchsurfer is a friendly utility that checks in with your couchdb to see if your view indexes are up-to-date and trigger a re-indexing at the same time. This is useful after deploying changes to your views.
This is a node.js utility, so you have to install node before you can run couchsurfer
.
npm install couchsurfer [-g]
usage: couchsurfer [OPTIONS] http[s]://[user:name@]couch_url:port[/database]
If no database is specified in the URL couchsurfer will iterate over all
non-system databases accessible to the given user (or the public).
options:
-u user:pass, --user=user:pass Couchsurf as the given user (can also be
specified in the URL).
-d db_name, --dbs=db_name Only query the given databases.
--byUsers Iterate over the dbs of users in '/_users'.
-f regex, --filter=regex RegExp to filter the ddoc names.
-s, --silent Don't log progress, just errors.
--version Print couchsurfer version and exit.
-h, --help Print this help and exit.
These are the same and will query all the design docs in database
assuming
user
is allowed to access this db.
couchsurfer -u user:secret http://couch:5984/database
couchsurfer http://user:secret@couch:5984/database
Query all the databases the user has access to. If you want to really query all the databases in your couch, do this as an admin.
couchsurfer http://user:secret@couch:5984
Only query design docs in foo
and bar
couchsurfer http://user:secret@couch:5984 -d foo -d bar
Look up registered users in /_users
and then query their databases with
the respective name.
couchsurfer http://admin:secret@couch:5984 --byUsers
You can filter the design documents you want to query. Just specify a RegExp.
Only query ddocs whose names begin with old_
couchsurfer http://admin:secret@couch:5984 -f ^old_
Query everything except lame_ddoc
couchsurfer http://admin:secret@couch:5984 -f [^lame_ddoc]
Couchsurfer is an event emitter.
var couchsurfer = require('couchsurfer')
var surfer = couchsurfer({ url: 'http://foo:5984', ... })
surfer.on('error', console.error)
surfer.on('end', function () {
console.log('yay! done!')
})
// emitted every time a ddoc has been rebuild
surfer.on('ddoc', function (info) {
// db name, ddoc name and the time it took to rebuild
console.log(info.db, info.ddoc, info.time)
})
// emitted every time a view cleanup happened
surfer.on('cleanup', function (err, db) {
// yes, it's weird to use the "(err, result)" pattern here
if (err) return console.log('couldn\'t clean up views in %s: %s', db, err)
console.log('cleaned up views in ' + db)
})
If you find a bug, have a feature request or any kind of question, please open an issue or submit a pull request. I'm open for discussing any kind of idea for couchsurfer.
FAQs
Query couchdb design documents to trigger view rebuilds
The npm package couchsurfer receives a total of 2 weekly downloads. As such, couchsurfer popularity was classified as not popular.
We found that couchsurfer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.