Open greenkeeper[bot] opened 7 years ago
The challenge is that the the Admin Client is now async, and before we can use any API we have to await the admin.ready
promise to resolve. See https://github.com/hoodiehq/ember-hoodie/pull/42#issuecomment-269143490
Update to this version instead 🚀
adminPassword
option (10e9c36b)Before this change, we loaded admin accounts from CouchDB’s /_config/admins
API or for PouchDB we simply set the password to "secret"
and wrote it into .hoodie/config.json
We dropped persisting the admin password altogether and instead made it an option: adminPassword
. If it’s not set, then no admin account exists.
(5899eda1)
Before storing the secret in the database using PouchDB, it was stored in different ways based on the adapter.
/_config/couch_httpd_auth/secret
<data path>/config.json
To migrate to this version, create a database hoodie-config
with a document {"_id": "hoodie", "secret": "<your secret here>"}
(cd055af1)
CouchDB’s _users
database is configurable at /_config/couch_httpd_auth/authentication_db
. We read out this configuration and used it as the name of the users database. But as we don’t rely on the special behavior of CouchDB’s users database (auto-hashing of passwords) we can use any normal CouchDB database to store the accoutns of Hoodie. And as the /_config
API is not implemented by CouchDB-like hosters like Cloudant, we want to store this configuration ourselves.
For now, we hardcode the database name to default to _users
. The name can be configured via options.account.usersDb
.
(e9ee7a06)
(142e9a7a)
Update to this version instead 🚀
The new version differs by 6 commits .
823562e
feat: 404 page for /hoodie/* resource URLs
c8fea9a
test: 404 page for /hoodie/* resource URLs
f2cdc0d
chore(package): update tap to version 9.0.0
a9fe20e
docs(README): add missing "a" (#661)
fde24b9
docs(server): remove server README in favor of new docs
3d267fa
docs: initial version for readthedocs.org
See the full diff.
Update to this version instead 🚀
/hoodie
) (bdfea42b)The new version differs by 4 commits .
e5f49bf
refactor: load /hoodie/{account,store}/*
assets from /public
folder
586e6b5
chore(package): -@hoodie/account, -@hoodie/store
bdfea42
feat: load /hoodie/client.js at Hoodie’s root route (/hoodie
)
7d8e2f8
docs(quickstart): OS -> operating systems
See the full diff.
Update to this version instead 🚀
/hoodie/*/api
requests by the public /hoodie/*
route handler (b3342984)Update to this version instead 🚀
Update to this version instead 🚀
GET /unknown
(5429f284)To keep using the LevelDB adapter as default, set the dbAdapter
option to pouchdb-adapter-leveldb
and instal the adapter as dependency of your app.
(0a312f05)
Your app is only affected if you use hoodie
as a hapi plugin within your existing hapi app. Instead of passing options.db
that would get passed to a PouchDB constructor internally, you know pass in options.PouchDB
directly, with all defaults and adapters already set as your app requires it. With that the hapi usage of hoodie
is coherent with @hoodie/server
, @hoodie/account-server
and @hoodie/store-server
(e110920f)
The new version differs by 14 commits .
5429f28
fix: serve index.html file from public path for GET /unknown
3172ad2
test: serve index.html file from public path for GET /unknown
4eb2a42
fix: /hoodie/unknown responds with 404
ae404fb
test: /hoodie/unknown responds with 404
0a312f0
feat: drop dependency on LevelDB / node-gyp
ee64a74
chore(package): -pouchdb-adapter-leveldb, +pouchdb-adapter-fs
2d4eced
test: replace leveldb default adapter with fs
4a7fe07
docs(README): dbAdapter
option
0b64180
docs(guides): dbAdapter
configuration option
e110920
fix: replace options.db with options.PouchDB
86be64e
test: replace options.db with options.PouchDB
f19d1de
docs(README): options.PouchDB
for hapi usage
f22ef69
chore(package): update nyc to version 10.1.0
e862ba9
doc(LICENSE): 2017
See the full diff.
Update to this version instead 🚀
Update to this version instead 🚀
Update to this version instead 🚀
The new version differs by 5 commits .
b2f16b8
fix: minor spelling - "wether" to "whether"
064b1cc
docs: corrected table formatting and minor typos (#688)
f6dcd1d
Fixing presentation/typos
6630ebf
Update deployment with one line deploy guide
cc80039
docs(configuration): renamed hoodie_AdminPassword to hoodie_adminPassword (#683)
See the full diff.
Update to this version instead 🚀
@hoodie/server
before plugins (2f7b8fa6)The new version differs by 9 commits .
2f7b8fa
fix: register @hoodie/server
before plugins
b2f16b8
fix: minor spelling - "wether" to "whether"
064b1cc
docs: corrected table formatting and minor typos (#688)
f6dcd1d
Fixing presentation/typos
6630ebf
Update deployment with one line deploy guide
cc80039
docs(configuration): renamed hoodie_AdminPassword to hoodie_adminPassword (#683)
986b642
fix(setup): don’t "hoodie-start" script if "start" script is set to "hoodie" (#681)
0261c17
chore(package): update tap to version 10.0.0
c2ab72e
fix(package): update browserify to version 14.0.0
See the full diff.
Update to this version instead 🚀
The new version differs by 7 commits .
62fe627
feat: add a small note on powershell docs setup to CONTRIBUTING.md
00a8e28
docs: linting on Travis, dev docs
04e6828
docs(README): link to Getting Started Guide
b8a0e97
chore(travis): lint docs
b885758
chore(gitignore): docs/_build/
1b69d6f
chore(textlintrc): initial version
e1d9689
chore(package): linting docs
See the full diff.
Update to this version instead 🚀
<a name"28.0.0">
For hoodie.store
:
Before, change events (incl. add, update, remove) have only been triggered when using the custom APIs like .add()
or .update()
. Now they get always triggered, including for changes replicated into the database. hoodiehq/pouchdb-hoodie-api@1958c42
the order of when the methods’ promises resolve and the events get triggered cannot be guaranteed as we rely on PouchDB’s .changes(). We would love to enforce promises to resolve after changes get emitted, but the required complexity to do that is not worth it.
separate methods like require(pouchdb-hoodie-api/add)
can no longer be required directly
The reason for that is that all the methods now also accept a prefix
argument which by default is null. That way we don’t need to implement each method twice, once for store.add
, and once for store.withIdPrefix(test/).add
We no longer map PouchDB’s ._id
property to .id
, instead we pass trough docs from PouchDB 1:1. Also the timestamps are now all namespaced with .hoodie
(doc.createdAt
becomes doc.hoodie.createdAt
)
For hoodie.account
:
account.ready
has been removed. All APIs are now asynchronous, no setup is needed any longer
account.fetch()
and account.profile.fetch()
have been removed. Use account.get()
and acc*
account.fetch()and
account.profile.fetch()have been removed. Use
account.get()and
acc* account.fetch()
and account.profile.fetch()
have been removed. Use account.get()
and acc*
account.fetch()and
account.profile.fetch()have been removedrequest *
account.fetch()and
account.profile.fetch()have been removed. Use
account.following conditions is true
id
and or session
properties are requestedoptions.local
is set to trueaccount.hasInvalidSession()
has been removed. Use account.get(session)
instead (check of session.invalid
)
account.isSignedIn()
has been removed. Use account.get(session)
instead.
(9d636fa8)
*
The store instance which server.plugins.store.api.open(dbName)
resolves to
has several breaking changes via pouchdb-hoodie-api@2.0.0
Before, change events (incl. add, update, remove) have only been triggered
when using the custom APIs like .add()
or .update()
. Now they get always
triggered, including for changes replicated into the database.
the order of when the methods’ promises resolve and the events get triggered
cannot be guaranteed as we rely on PouchDB’s .changes()
. We would love to
enforce promises to resolve after changes get emitted, but the required
complexity to do that is not worth it.
We no longer map PouchDB’s ._id property to .id, instead we pass trough docs
from PouchDB 1:1. Also the timestamps are now all namespaced with
.hoodie
(doc.createdAt
becomes doc.hoodie.createdAt
)
Unless you use the server.plugins.store.api.open(name)
API you are not affected by any of this.
(ba5301f2)
The new version differs by 10 commits .
d8d9c86
chore: adapt to @hoodie/client@10
9d636fa
breaking(package): @hoodie/client@10
ba5301f
breaking(package): @hoodie/server@23
59d67ab
docs: correcting missing 'install' command
0e3ebfe
docs: update for docs chicken img & local build
aa2e25d
docs: adding docs chicken image
c54d790
docs(contributing): Code highlighting (#715)
f3bafac
style: standard
31e4a6e
chore(package): update standard to version 9.0.0
0ae9bc6
docs: get readthedocs to build (#705)
See the full diff.
Update to this version instead 🚀
<a name"28.1.0">
dbUrlUsername
and dbUrlPassword
options (b8483235)Update to this version instead 🚀
<a name"28.1.1">
The new version differs by 20 commits.
432bb7f
fix(package): update yargs to version 7.0.1
0cbf22f
test: remove obsolete options.db
888b834
refactor(cli): pass log to createAuthDbUrl
helper
4c5286f
chore(package): update simple-mock to version 0.8.0 (#744)
8a1c423
docs: Remove hoodie.account.isSignedIn
52198b0
docs: Remove hoodie.account.username (#742)
1761beb
chore(package): update textlint to version 8.0.0
b04d488
docs: Remove hoodie.account.id
ea6a251
docs: fix invalid links
cabc849
docs: Remove hoodie.account.ready from the docs
aaa1331
docs: fix store.add property and return value
cf0d32d
fix link to triaging process document
1e8fd23
test: Replace deprecated new Buffer()
call with Buffer.from()
d3357e2
chore(package): update standard to version 10.0.0
c15fdb7
docs: correct link formatting and may fix #717
There are 20 commits in total.
See the full diff
Update to this version instead 🚀
<a name"28.1.2">
The new version differs by 5 commits.
79dde6b
fix: support npm@5’s --save default for postinstall script (#760)
2bc4c6d
chore(package): update nyc to version 11.0.2 (#756)
7e34276
doc: allow timeout and other status codes
2825b37
doc: allow 404 in link checker
a7961b4
chore(package): resolve files for test by nyc
See the full diff
Update to this version instead 🚀
<a name"28.1.3">
Update to this version instead 🚀
<a name"28.1.4">
options.client
to Hoodie
client constructor (18f00507)The new version differs by 8 commits.
18f0050
fix(client): pass options.client
to Hoodie
client constructor
badacdd
test(client): pass options.client
to Hoodie
client constructor
4329d83
docs: fix #767 allow timeout on link checker (#770)
4dcf9cb
docs(api): remove hoodie.ready
(#769)
64bb2ee
test(quickstart): wait for server to start, then check for bundled client
e57611b
test(quickstart): add workaround for npm@2
c7978b3
docs(quickstart): workaround for npm@2
bae1f5b
test(quickstart): fail when server responds with error
See the full diff
Update to this version instead 🚀
<a name"28.1.5">
Update to this version instead 🚀
<a name"28.2.1">
The new version differs by 5 commits.
3b96aee
fix(package): ignore unneeded files when publishing to npm (#780)
b4f1fa8
docs: links and minor formatting (#778)
37a2532
docs(architecture): remove pouchdb-hoodie-{api,sync}
5574b78
docs(hoodie): remove hoodie.reset
f6f03f2
chore(package): joining The TAP 100
See the full diff
Update to this version instead 🚀
<a name"28.2.2">
The new version differs by 6 commits.
84dc5c1
fix(package): update h2o2 to version 6.0.0
acd046a
docs: we don’t do new Hoodie()
any longer
7292830
docs: fix issue with hapi docs display (#791)
83de1ac
docs: correct hoodie.account code examples (#789)
5d6ddbd
fix 404s
a97a8ae
docs: ignore david-dm.org #771
See the full diff
Update to this version instead 🚀
The new version differs by 14 commits.
532f15d
fix: make 404.html responsive (#830)
1c3afe1
Update style.css
f776299
chore(package): update tap to version 11.0.0
f2f42fe
chore(package): update textlint to version 9.0.0
b25a4c8
chore(CONTRIBUTING): feature commit message convention
361e6f1
chore(first-timers): configuration
8ccde74
chore(package): update coveralls to version 3.0.0
35c8c45
docs(configuration): dbUrlUsername / dbUrlPassword options. (#808)
50725be
docs: fix formatting in files-and-folders.rst
6cfddc2
docs: draft replacements for TO BE DONE sections
9bcd805
chore(travis): whitelist pouchdb.c to make builds pass again
f14cd93
docs(configuration): options.name (#799)
b0f1b7a
docs(CONTRIBUTING): fix link to commit message conventions
2b5dfee
chore(package): update semantic-release to version 7.0.1
See the full diff
Update to this version instead 🚀
The new version differs by 7 commits.
6fe0000
fix(package): update browserify to version 15.0.0
0d43d47
chore(package): update textlint to version 10.0.0 (#831)
074a24e
test: returning node to version 4 as textlint-rule-no-dead-link dev has been removed and node 6 not required
2bf443b
test: removing dead-link-checker
d9ff7ad
test: remove dead link testing - not working correctly
72eedf9
test: remove awesome_bot and use textlint instead
823e7e1
test: update white list and coorect links in docs
See the full diff
Update to this version instead 🚀
The new version differs by 4 commits.
cdf0707
fix(package): update browserify to version 16.0.0
b44045e
chore(first-timers): don’t set hacktoberfest label
b3350e3
chore(package): update browserify to version 15.2.0
db064f5
chore(package): update semantic-release to version 12.2.2 (#836)
See the full diff
Version 25.0.0 of hoodie just got published.
The version 25.0.0 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of hoodie. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Release Notes
v25.0.025.0.0 (2016-12-25)
Bug Fixes
Breaking Changes
The APIs
hoodie.account
,hoodie.store
andhoodie.connectionStatus
can now only be used after the promise returned byhoodie.ready
resolves.(87e5024c)
Commits
The new version differs by 1 commits .
87e5024
fix(package): update @hoodie/client to version 9.0.0
See the full diff.
Not sure how things should work exactly?
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper Bot :palm_tree: