ts-proto 1.116.0 → 1.116.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.116.1](https://github.com/stephenh/ts-proto/compare/v1.116.0...v1.116.1) (2022-07-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add .js suffix to proto cross-reference imports ([#602](https://github.com/stephenh/ts-proto/issues/602)) ([8dc38af](https://github.com/stephenh/ts-proto/commit/8dc38af40e68262cd53469ce3dc4dcac670365da)), closes [#601](https://github.com/stephenh/ts-proto/issues/601) [/github.com/kulshekhar/ts-jest/issues/1057#issuecomment-481406624](https://github.com//github.com/kulshekhar/ts-jest/issues/1057/issues/issuecomment-481406624)
7
+
1
8
  # [1.116.0](https://github.com/stephenh/ts-proto/compare/v1.115.5...v1.116.0) (2022-07-01)
2
9
 
3
10
 
package/build/utils.js CHANGED
@@ -170,7 +170,8 @@ function getPropertyAccessor(objectName, propertyName, optional = false) {
170
170
  }
171
171
  exports.getPropertyAccessor = getPropertyAccessor;
172
172
  function impProto(options, module, type) {
173
- const importString = `${type}@./${module}${options.fileSuffix}`;
173
+ // NOTE: TypeScript resolves importing foo.js to importing foo.ts.
174
+ const importString = `${type}@./${module}${options.fileSuffix}.js`;
174
175
  if (options.onlyTypes) {
175
176
  return (0, ts_poet_1.imp)('t:' + importString);
176
177
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "1.116.0",
3
+ "version": "1.116.1",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",
@@ -49,24 +49,25 @@
49
49
  "@types/jest": "^26.0.22",
50
50
  "@types/node": "^14.14.37",
51
51
  "chokidar": "^3.5.2",
52
- "jest": "^26.6.3",
52
+ "jest": "^28.1.2",
53
+ "jest-ts-webcompat-resolver": "^1.0.0",
53
54
  "mongodb": "^4.3.0",
54
55
  "nice-grpc": "^1.1.1",
55
- "prettier": "^2.2.1",
56
+ "prettier": "^2.7.1",
56
57
  "reflect-metadata": "^0.1.13",
57
58
  "rxjs": "^7.4.0",
58
59
  "semantic-release": "^19.0.3",
59
- "ts-jest": "^26.5.4",
60
+ "ts-jest": "^28.0.5",
60
61
  "ts-node": "^10.8.1",
61
62
  "typescript": "^4.7.4",
62
- "uglify-js": "^3.13.3"
63
+ "uglify-js": "^3.16.1"
63
64
  },
64
65
  "dependencies": {
65
66
  "@types/object-hash": "^1.3.0",
66
67
  "dataloader": "^1.4.0",
67
68
  "object-hash": "^1.3.1",
68
69
  "protobufjs": "^6.11.3",
69
- "ts-poet": "^4.11.0",
70
+ "ts-poet": "^4.15.0",
70
71
  "ts-proto-descriptors": "1.7.0"
71
72
  }
72
73
  }