- Fixed security issues
- Fixed security issues
- Fixed security issues
- Fixed custom request properties to be available between Pre and Post hooks
- Add login hooks properties
- Update logged message on error from complete callback
- BREAKING CHANGE: Method
dataStore.save()
no longer supports arrays (was introduced in3.3.0
for early access) - New
dataStore.create()
method added to support batched insert of multiple entities
- Fixed several security vulnerabilities
- Added new onInsertMulti data event for handling insertion of Arrays
- Added support for arrays in
dataStore.save()
(early access version) - Add option to override API version in dataStore requests
- When making requests to Kinvey, use original requests computed API version rather than relying on the header API Version.
- Change default API version to 3 when making requests to Kinvey and no API version is present
- Fix bug that prevented null values from being passed for the options object on flex initialization
- Fix spelling mistake in README (contributed by kumardinkar9)
- Remove BETA tag from README
- Validated support for node v6.x, node v8.x, and node v10.x
- Updated dependencies
- Adjusted Linitng and fixed linting issues
- FLEX-286 Fixed setQuery to propagate on FSR prehook
- Stringify query.query and query.sort if they are objects before returning
- FLEX-293 Removed SIGKILL handler to prevent crash
- FLEX-270 Added graceful shutdown
- Now on ctrl-c, SIGTERM, SIGINT, or SIGKILL, the sdk will attempt to wait for in-process tasks to finish.
- Will time out and force-quit if all tasks aren't complete in 50 seconds
- Pressing ctrl-c, or sending SIGINT/SIGTERM/SIGKILL a second time will terminate the process immediately.
- FLEX-291 Remove lodash as a dependency
- FLEX-290 Changed destination property in body for sendPush to recipients
- Removed CoffeeScript as a dependency
- Updated code-task-receiver to 2.3.1
- Updated kinvey-datalink-errors to 0.3.2
- See README for migration guide
- BREAKING CHANGE: email and push modules now require a callback or promise handlers. They can no longer be executed as "fire and forget".
- FLEX-206 Added Promise support to Asynchronous flex-sdk modules
- dataStore
- userStore
- groupStore
- push
- FLEX-176 Add RoleStore
- FLEX-240 Add endpointRunner to support executing of custom endpoints
- FLEX-246 Use new KCS endpoints for push/email
- FLEX-248 Removed deprecated skipBl and useMasterSecret options for all stores
- FLEX-247 Change baasUrl property to retrieve it from top-level task object
- Updated dependencies with nsp warnings
- Removed lodash isNil package
- Added role helper to kinveyEntity module (ronheiney)
- FLEX-212 Disable proxy for push and email modules
- FLEX-68 Disable proxy when using dataStore
- FLEX-204 Fixed errors for null or empty entityIds for dataStore, groupStore, and userStore
- Updated request module to 2.85.0
- Updated code-task-receiver to 2.2.3 to add response object parsing for FlexFunctions (FLEX-220)
- FLEX-173 Fix for content.objectName undefined if request.collectionName passed
- Update code-task-receiver to 2.2.2
- FLEX-172 Add the sdk version to the task object before validation for authKey. Add check for it in unit test. Small fix for unit test for count() missing a query.
- FLEX-171 When validation functions in service modules call their callbacks with a task as a first argument, don't pass this task as an error argument to receiver.
- Bumped code task runner to 2.2.1
- FLEX-154: Add support for filtering with values like null, 0, and ""
- Added query tests and fixed a few query bugs
- Updated moment to 2.21.0
- Fixed kinveyEntity not retaining a passed-in _id
- Added NotImplementedHandler for FlexAuth requests that don't have a defined handler
- Fixed shared secrets hanging the flex service
- Fixed shared secrets not working locally if shared secret is defined
- Bumped kinvey-code-task-runner to v2.2.0 to add mapping of tempObjectStore for external flex functions requests
- Fixed bug in error response callback for stores (data, user, group)
- Fixed bug which broke push module functionality in FSR-hosted services
- Fixed top-level errors to return JSON, fixing the bug where an invalid shared secret would generate the wrong error
- Set maxSockets to 100 for both http and https agents
- Fix stringification bug on some done() calls.
- Add Auth support to flex under flex.auth
- Change request to context
- Fix completion handlers to properly handle pre/post step context
- Added
setBody
andsetQuery
to data/function completion hanlder - Added
useBl
option to userStore and dataStore. Set totrue
to enable business logic execution for a store request. Defaults to false. - Added
useUserContext
option to userStore and dataStore. Set totrue
to execute the request under user's authentication context. Defaults to false. - dataStore and authStore now default to using mastersecret credentials and not executing business logic
- Circular requests to userStore/dataStore (e.g. saving back to the sae collection in a post hook) now must not execute BL and must be executed under masterSecret credentials.
- Some internal refactoring
- DEPRECATED: Passing the entity directly in the
complete()
method. Will be removed in future version. - DEPRECATED: useMasterSecret argument for userStore and dataStore. Stores now default to using master secret. Use
useUserContext
to use the context of the current user for dataStore or userStore requests. - DEPRECATED: skipBl argument for userStore and dataStore. Stores now default to not executing business logic hooks in response to store requests. Use
useBl
to enable BL execution.
- Append flex SDK version to task response
- Upgrade code-task-receiver to v1.2.1 to fix null tasks sent via the TCP stream from crashing
- Fixed doc issue
- Added
modules.userStore
for creating, updating, finding, deleting, suspending, and restoring user entities. - Updated code-task-receiver to fix functions not being able to be tested locally
- Fixed bug with service discovery
- Pass requestMetadata (not requestContext) into dataStore
- Renamed package and changed some of the API Names
- Rename
kinvey-backend-sdk
tokinvey-flex-sdk
- Rename
DataLink
toFlexData
- Rename
BusinessLogic
toFlexFunctions
- Change readme and examples to refer to the package as
sdk
, the method to generate the service asservice
, and the generated service asflex
.
- Rename
- Tested and bumped node.js version to v6.9.1
- Allow FlexFunctions to be invoked externally
- Fix datastore overwriting requestContext
- Bumped code-task-runner to v0.3.1 (to address a protocol bug)
- Bumped code-task-runner to v0.3.0
- Added
modules
accessible to all handler methods via third argument (e.g. onInsert(request, complete, modules:- backendContext
- dataStore (including access to Service Object backed data)
- kinveyDate
- kinveyEntity
- push
- query
- requestContext
- tempObjectStore
- Updated readme with information on business logic and asynchronous, long-running code
- Fixed SDK logger bug which prevented output from reaching service logs and removed unneeded metadata from logger output
- Minor style refactoring
- Added improved SDK logger with threshold support
- Added support for business logic handler discovery
- Modified service discovery response structure
- Complete rewrite in es6, targeting node 6
- Make backend sdk work externally
- Parse request.query if it is stringified
- Updated task handler to put the query in the request if it is in the top level only
- Fixed an issue where outgoing HTTP requests caused backend-sdk calls to time out
- Added
modules
param to SDK business logic handler
- Added Kinvey Business Logic hook processing capability
- Bumped kinvey-task-receiver to v0.1.3
- Updated so backend-sdk generated errors return the entire task
- Fixed licenses
- Fixed copyrights
- Updated all 'collection' references to 'serviceObject' in sdk and documentation
- Updated bson library to v0.4.15
- Updated contributors
- Set to use code-task-runner v0.1.1
- Initial Release