-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: javascript clients accepted context rather than options (#51)
BREAKING CHANGE: if you previously passed `context` directly as the final parameter to the `analytics.js` or `analytics-node` clients, then you'll need to update it, like so: If you made a call like: ``` typewriter.thingHappened({ when: 'now' }, { groupId: 123 }) ``` Then you would need to update it to: ``` typewriter.thingHappened({ when: 'now' }, { context: { groupId: 123 } }) ``` This allows you to pass `integrations` and other fields in through this object, and aligns the TypeScript declarations with the underlying library.
- Loading branch information
Showing
14 changed files
with
505 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.