angel3_rethinkdb 10.0.1
angel3_rethinkdb: ^10.0.1 copied to clipboard
This is RethinkDB service for Angel3 framework. RethinkDB is an open-source database for the realtime web.
Change Log #
10.0.1 #
Fixes in 10.0.1 #
- Changefeed: With
AngelWebSocket, a client is told of a change made through the service once, where it was told twice: by the service, and by the changefeed. The changefeed's events of the changes thatcreate,modify,updateandremovemake havebroadcast: falsein their params, so clients are told of them by the service's events, with their names, request and params. The changefeed's event of such a change is the one with the values the write reports, so a change made outside the service, also to the same record at the same time, is still told by the changefeed.creategives a record without a primary key a random UUID itself, as RethinkDB did, so that its changefeed event is known create: Returns the record, where it failed with a 404 when its key was not a string, as with{'id': 5}, which it looked up as'5'- Primary key:
updateandmodifyuse the table's primary key (frominfo), where they took it to beid: on a table with another one,updatefailed with a 400, as the record it wrote had no primary key, and amodifywhose body had the key failed with a 400, where the key is ignored asidis
10.0.0 #
Breaking changes in 10.0.0 #
- Breaking:
read,modify,updateandremoveof one record ignorequery, which could make them reach every record it matched - Breaking:
modifyandupdateact on the id in the path, not anidin the body:modifyof a missing id is a 404, andupdatecreates it - Breaking: Requires
belatuk_rethinkdb2.0.0, where it allowed 1.x. A query on a closed connection throws anRqlDriverError, and when the server or the network closes the connection, the queries waiting for a reply fail; see its changelog
New in 10.0.0 #
- A service over a query that is not a table (e.g. a
filter) can read, modify, update and remove by id changefeedStartedcompletes when the changefeed listens for changes, so that a change made afterwards fires its event
Fixes in 10.0.0 #
index: No longer always fails with aTypeError- Changefeed: Updates and removals fire
afterUpdatedandafterRemoved, notafterCreated, and work on a typedHookedService; errors are logged, andclosestops the feed on the server, also one that is still starting - Changefeed over a single record or a limited query: A service over, e.g.,
get(id)ororderBy(...).limit(n)fires the events of its changefeed, where it failed with aTypeErrorand fired none remove(null): Removes only the records matching the query whenallowRemoveAllisfalsecreate: Returns the created record, also when its id is generated; a duplicate id is a 409, and another rejected write a 400queryandreqlcallbacks: Any function is applied, such as(q) => q.filter(...), where only one typed as aQueryCallbackwas, and any other was ignored:indexreturned every record, and a server-sideremove(null)removed them all. A callback that does not return a query is anArgumentError- Writes on a service over a query that is not a table:
modifyandupdatereturn the record also when the write moves it out of the query, where they wrote it and then failed with a 404 - Dependencies: Removed the unused
angel3_container, andbelatuk_json_serializer, which neededdart:mirrorsand was only reached for data that is not aMap, which the service does not accept; the tests no longer useMirrorsReflector - Docs: The README tells how to migrate from 9.x
9.1.0 #
- Require Dart >= 3.13
9.0.0 #
- Require Dart >= 3.12
8.3.0 #
- Require Dart >= 3.9
- Updated dependencies to the latest release
8.2.0 #
- Require Dart >= 3.8
- Updated
lintsto 6.0.0 - Updated dependencies to the latest release
8.1.0 #
- Require Dart >= 3.6
- Updated
lintsto 5.0.0 - Updated dependencies to the latest release
8.0.1 #
- Updated README
- Fixed warnings
8.0.0 #
- Require Dart >= 3.3
- Updated
lintsto 4.0.0
7.0.0 #
- Skipped release
6.0.0 #
- Skipped release
5.0.0 #
- Skipped release
4.0.0 #
- Skipped release
3.0.0 #
- Skipped release
2.0.0 #
- Migrated to support Dart >= 2.12 NNBD
1.1.0 #
- Moved to
package:rethinkdb_driver - Fixed references to old hooked event names