jsii-diff 1.77.0 → 1.78.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/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/package.json +6 -6
- package/test/classes.test.js +3 -3
- package/test/type-unions.test.js +2 -2
package/lib/version.d.ts
CHANGED
package/lib/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Generated at 2023-03-
|
|
2
|
+
// Generated at 2023-03-16T17:39:26Z by generate.sh
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.VERSION = void 0;
|
|
5
5
|
/** The qualified version number for this JSII compiler. */
|
|
6
|
-
exports.VERSION = '1.
|
|
6
|
+
exports.VERSION = '1.78.1 (build 878761e)';
|
|
7
7
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsii-diff",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.78.1",
|
|
4
4
|
"description": "Assembly comparison for jsii",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"package": "package-js"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@jsii/check-node": "1.
|
|
37
|
-
"@jsii/spec": "^1.
|
|
36
|
+
"@jsii/check-node": "1.78.1",
|
|
37
|
+
"@jsii/spec": "^1.78.1",
|
|
38
38
|
"fs-extra": "^10.1.0",
|
|
39
|
-
"jsii-reflect": "^1.
|
|
39
|
+
"jsii-reflect": "^1.78.1",
|
|
40
40
|
"log4js": "^6.8.0",
|
|
41
41
|
"yargs": "^16.2.0"
|
|
42
42
|
},
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@types/fs-extra": "^9.0.13",
|
|
45
45
|
"@types/tar-fs": "^2.0.1",
|
|
46
46
|
"jest-expect-message": "^1.1.3",
|
|
47
|
-
"jsii": "^1.
|
|
48
|
-
"jsii-build-tools": "^1.
|
|
47
|
+
"jsii": "^1.78.1",
|
|
48
|
+
"jsii-build-tools": "^1.78.1"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/test/classes.test.js
CHANGED
|
@@ -274,7 +274,7 @@ test.each([
|
|
|
274
274
|
{
|
|
275
275
|
oldDecl: 'name: string',
|
|
276
276
|
newDecl: 'name: string | number',
|
|
277
|
-
error: /
|
|
277
|
+
error: /number \| string is not assignable to string/,
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
oldDecl: 'name: string | number',
|
|
@@ -305,12 +305,12 @@ test.each([
|
|
|
305
305
|
{
|
|
306
306
|
oldDecl: 'name: string',
|
|
307
307
|
newDecl: 'name: string | number',
|
|
308
|
-
error: /changed to
|
|
308
|
+
error: /changed to number \| string \(formerly string\)/,
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
311
|
oldDecl: 'name: string | number',
|
|
312
312
|
newDecl: 'name: string',
|
|
313
|
-
error: /changed to string \(formerly
|
|
313
|
+
error: /changed to string \(formerly number \| string\)/,
|
|
314
314
|
},
|
|
315
315
|
])('cannot change a mutable class property type: %p to %p', ({ oldDecl, newDecl, error }) => (0, util_1.expectError)(error, `
|
|
316
316
|
export class Henk {
|
package/test/type-unions.test.js
CHANGED
|
@@ -35,7 +35,7 @@ test('type unions in return structs can be narrowed', () => (0, util_1.expectNoE
|
|
|
35
35
|
}
|
|
36
36
|
`));
|
|
37
37
|
// ----------------------------------------------------------------------
|
|
38
|
-
test('type unions in return structs can not be widened', () => (0, util_1.expectError)(/some of
|
|
38
|
+
test('type unions in return structs can not be widened', () => (0, util_1.expectError)(/some of boolean \| number \| string are not assignable to number \| string/, `
|
|
39
39
|
export interface Henk {
|
|
40
40
|
readonly henk: string | number;
|
|
41
41
|
}
|
|
@@ -83,7 +83,7 @@ test('type unions in input structs can be widened', () => (0, util_1.expectNoErr
|
|
|
83
83
|
}
|
|
84
84
|
`));
|
|
85
85
|
// ----------------------------------------------------------------------
|
|
86
|
-
test('type unions in input structs can not be narrowed', () => (0, util_1.expectError)(/
|
|
86
|
+
test('type unions in input structs can not be narrowed', () => (0, util_1.expectError)(/number \| string is not assignable to string/, `
|
|
87
87
|
export interface Henk {
|
|
88
88
|
readonly henk: string | number;
|
|
89
89
|
}
|