ts-proto 1.112.0 → 1.112.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.112.1](https://github.com/stephenh/ts-proto/compare/v1.112.0...v1.112.1) (2022-05-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * use Long.fromValue instead of Long.fromString ([#562](https://github.com/stephenh/ts-proto/issues/562)) ([c99891e](https://github.com/stephenh/ts-proto/commit/c99891e0fec6d9b7225025eb0c5bd7393e80af36))
7
+
1
8
  # [1.112.0](https://github.com/stephenh/ts-proto/compare/v1.111.0...v1.112.0) (2022-05-02)
2
9
 
3
10
 
package/build/main.js CHANGED
@@ -948,7 +948,7 @@ function generateFromJson(ctx, fullName, fullTypeName, messageDesc) {
948
948
  }
949
949
  else if (types_1.isLong(field) && options.forceLong === options_1.LongOption.LONG) {
950
950
  const cstr = case_1.capitalize(types_1.basicTypeName(ctx, field, { keepValueType: true }).toCodeString());
951
- return ts_poet_1.code `${cstr}.fromString(${from})`;
951
+ return ts_poet_1.code `${cstr}.fromValue(${from})`;
952
952
  }
953
953
  else {
954
954
  const cstr = case_1.capitalize(types_1.basicTypeName(ctx, field, { keepValueType: true }).toCodeString());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "1.112.0",
3
+ "version": "1.112.1",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",