Skip to content

Commit

Permalink
docs(changelog): release 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
colinking committed Jan 30, 2019
1 parent 5222145 commit 54d484e
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 15 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# [6.0.0](https://github.com/segmentio/typewriter/compare/5.1.8...6.0.0) (2019-01-30)


### Bug Fixes

* javascript clients accepted context rather than options ([#51](https://github.com/segmentio/typewriter/issues/51)) ([5222145](https://github.com/segmentio/typewriter/commit/5222145))


### BREAKING CHANGES

* 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.



## [5.1.8](https://github.com/segmentio/typewriter/compare/5.1.7...5.1.8) (2019-01-29)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static id NSNullify(id _Nullable x) {
NSDictionary<NSString *, id> *typewriterContext = @{
@"typewriter": @{
@"name": @"gen-ios",
@"version": @"5.1.8"
@"version": @"6.0.0"
}
};
NSMutableDictionary *context = [NSMutableDictionary dictionaryWithCapacity:customContext.count + typewriterContext.count];
Expand Down
2 changes: 1 addition & 1 deletion examples/gen-js/js/analytics/generated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Analytics {
...context,
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion examples/gen-js/node/analytics/generated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Analytics {
return Object.assign({}, context, {
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion examples/gen-js/ts/analytics/generated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Analytics {
...context,
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typewriter",
"version": "5.1.8",
"version": "6.0.0",
"description": "A compiler for generating strongly typed analytics clients from JSON Schema",
"keywords": [
"analytics",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static id NSNullify(id _Nullable x) {
NSDictionary<NSString *, id> *typewriterContext = @{
@"typewriter": @{
@"name": @"gen-ios",
@"version": @"5.1.8"
@"version": @"6.0.0"
}
};
NSMutableDictionary *context = [NSMutableDictionary dictionaryWithCapacity:customContext.count + typewriterContext.count];
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/gen-js/__snapshots__/index.amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ define(["require", "exports"], function(require, exports) {
...context,
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/gen-js/__snapshots__/index.es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var Analytics = /** @class */ (function() {
return __assign({}, context, {
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/gen-js/__snapshots__/index.es5.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var Analytics = /** @class */ (function() {
return __assign({}, context, {
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/gen-js/__snapshots__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Analytics {
...context,
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/gen-js/__snapshots__/index.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Analytics {
return Object.assign({}, context, {
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/gen-js/__snapshots__/index.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class Analytics {
...context,
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/gen-js/__snapshots__/index.prod.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Analytics {
return Object.assign({}, context, {
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/gen-js/__snapshots__/index.system.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ System.register([], function(exports_1, context_1) {
...context,
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/gen-js/__snapshots__/index.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
...context,
typewriter: {
name: "gen-js",
version: "5.1.8"
version: "6.0.0"
}
};
}
Expand Down

0 comments on commit 54d484e

Please sign in to comment.