All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
9.1.0 (2024-03-04)
9.0.1 (2024-02-21)
- query.ts: allow 'key' in selected property list (11cc921)
9.0.0 (2024-02-21)
- YES
- Entity keys return ids as Number
- datatore update and improvements (4b809be), closes #279 #274
- query: add transaction parameter to
findOne
(#259) (a8a46b9)
-
src/serializers/datastore.ts: load cached entities with correct Datastore Key type (#265) (b06641b), closes #243
8.0.0 (2022-04-07)
- datastore.ts: Entity keys return ids as Number
-
Caching - when not using in memory caching (e.g. Redis cache) Date objects data is not being correctly deserialized to Date objects
- Workaround - cast known Date data to a Date object using the
new Date()
JavaScript constructor
- Workaround - cast known Date data to a Date object using the
- datastore.ts: ensure entities with id based keys are correcly loaded from cache (a3a5b33), closes #243
7.2.8 (2022-04-07)
This release fixes incorrectly published code from v7.2.7
- src/serializers/datastore.ts: load cached entities with correct Datastore Key type (#265) (b06641b), closes #243
7.2.7 (2022-04-07)
- fix(src/serializers/datastore.ts): load cached entities with correct Datastore Key type (#265) b06641b
- test(integration tests): add integration tests for fineOne and check entityKey construction (#246) b87a275
- chore(deps): bump validator from 13.0.0 to 13.7.0 (#257) d35f66a
- chore(deps): bump tmpl from 1.0.4 to 1.0.5 (#256) fef76a2
- chore(deps): bump path-parse from 1.0.6 to 1.0.7 (#255) 707943e
- chore(deps): bump glob-parent from 5.0.0 to 5.1.2 (#253) 8782798
- chore(deps): bump hosted-git-info from 2.7.1 to 2.8.9 (#251) 4012b03
- chore(deps): bump handlebars from 4.7.6 to 4.7.7 (#250) b75752e
- chore(deps): bump redis from 3.0.2 to 3.1.2 (#249) 3cb6c45
- chore(deps): bump y18n from 4.0.0 to 4.0.1 (#248) 766310d
- chore(deps): bump elliptic from 6.5.3 to 6.5.4 (#247) 5d083f7
- docs(github issue templates): add github issue templates (#245) 605a848
https://github.com/sebelga/gstore-node/compare/v7.2.6...v7.2.7
7.2.6 (2020-12-15)
7.2.5 (2020-05-11)
- Dependencies Update all dependencies.
gstore-node
has been tested and works with@google-cloud/datastore
version 5+.
7.2.4 (2019-12-10)
- gstore.save(): update "modifiedOn" property on entities (#209) (94b74d8), closes #202
- schema.date: allow valid string Date in validation (#210) (268c22e), closes #206
7.2.3 (2019-10-26)
- cache: Get multiple keys (#198) (0ec188d), closes #187
- findOne: add missing
readAll
option (#200) (8e19a15)
7.2.2 (2019-10-01)
- typings: add Methods generic to Model<T, M> (7c3e5b0)
- Typings: Add generic types to Entity, Model & Schema (#195) (c939de5), closes #194
7.2.1 (2019-09-26)
7.2.0 (2019-09-26)
- Typescript: Improve typings support (43d9dc2)
7.1.0 (2019-09-13)
7.0.0 (2019-09-11)
-
entitykey: The "keyType" Schema option has been removed as it is no longer needed. Also, as gstore does not parse the id anymore, running your project against the Datastore emulator locally might break as the emulator treats differently User.get(123) than User.get("123"). Auto-allocated ids are integers and need to be provided as integers for the Emulator.
-
Dependencies: Node version 8.x not supported anymore. Upgrade to v10.x or superior.
-
Dependencies: The @google-cloud/datastore package is not defined anymore as a dependency of gstore-node. You will need to manually install it in your project.
-
Dependencies: Set google-cloud datastore as peerDependency (#177) (ac52ffb)
- call execPostHooks on internalTransaction (#161) (7b132cf)
- entity: add "id" property to entity after it has been saved (#180) (15a713a), closes #172
- entitykey: remove convertion of string number to integer for entity key id (#179) (75dc869), closes #168
- excludefromindexes: update logic to add all properties of Array embedded entities (#182) (c9da35b), closes #132
- model: throw NOT_FOUND error when trying to update a Model that does not exist (#181) (cc11e02), closes #164
- Types: Schema methods() signature (#171) (4a144ce)
6.0.2 (2019-04-26)
- added default options when Joi is enabled (528da24)
6.0.1 (2019-03-26)
- Typescript: Add missing export types (f91fc39)
6.0.0 (2019-03-07)
- Model.get(): Consistently return an Array when providing an array of ids (#155) (45e68fc), closes #134
- Model.get(): When an Array of ids is provided to Model.get(), gstore will now consistently return an Array. In earlier versions, if an array of one id was provided, gstore would return a single entity instead of an array containing the entity.
5.0.2 (2019-03-07)
- Entity: Allow saving an entity that has been populated (a24c75a)
- model.get(): handle null when entity does not exist (#152) (21d258f)
- Model.update(): fix onUpdateError throwing empty object instead of error (#153) (b1929c7)
5.0.1 (2019-02-05)
5.0.0 (2019-02-04)
- Populate: Fetch entities references in Model.get() and queries (72fff67)
- The new way to create gstore instances is with "new Gstore()". Refer to the documentation.
- Populate: Callback (hell) are not supported anymore as the last argument of gstore methods. Only Promises are returned.
- Populate: Node runtime must be version 8 or superior
- Populate: The old Schema property types "datetime" and "int" have been removed. Date and Number types should be used instead.
4.3.3 (2018-12-29)
4.3.2 (2018-12-21)
- Fixes 'exludeFromRead' for nested paths where object does not exist (f7c336c), closes #128
- excludeFromRead: Make sure segment exist before trying to access it when deserializing (03bcf53)
- Model: Update validate() to not sanitize prop where write is set to false (#138) (e86a875)
4.3.1 (2018-11-13)
- Model: Modify validate() method to update entityData on validation (98dab4b)
- Model: Preserve gstore KEY on entityData when validating Joi Schema (f86dbcb)
4.3.0 (2018-09-07)
- entity: Remove Array wrapping of datastoreEntity() response from cache (00254d0)
- Add global gstore config to return null on entity not found (6b73631), closes #123
- Support "read"-type config for embedded objects (e3e554f), closes #122
4.2.6 (2018-08-26)
- typescript definitions file (e99125e)
- typescript definitions file (399087c)
- cache: Throw error when Model.get() returns undefined from cache (b46758a), closes #119
4.2.5 (2018-08-18)
4.2.4 (2018-07-30)
4.2.3 (2018-07-22)
- delete-hooks: Wrong argument mapping in getScopeForDeleteHooks() (5c91046)
4.2.2 (2018-07-10)
4.2.1 (2018-05-08)
4.2.0 (2018-05-08)
- global-save: Add option to validate entity before saving in gstore.save() method (39ccb9c), closes #103
- gstore-save: Add save method to global save (9908d7c), closes #105
- virtual properties: Access and update virtuals properties directly on the entity instance (b079f7e), closes #102
4.1.1 (2018-04-11)
- typings: Add missing generics to Schema in Model creation (f3cc4b4)
4.1.0 (2018-04-11)
- queries: Allow namespace to be set in "list" queries options (ea5326e)
- queries: Forward options object to Datastore Query (2eb0f3f)
- hooks: Model.delete() "post" hooks callback have now their scope on the entity instance delete (4d9b4dd)
- Schema: Set new types for Schema definition (ad51508)
- Typescript: Add Typescript support (351538b)
4.0.0 (2018-03-19)
- error handling: Set error code when entity not found in entity.datastoreEntity() method (03cfd7b)
- cache: Add cache layer to entity.datastoreEntity() method (63780e4)
- error handling: The error code when the entity is not found has been changed from "404" to the "gstore.errors.code.ERR_ENTITY_NOT_FOUND" code