@palantir/pack.document-schema.model-types 0.33.0 → 0.34.0
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/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-transpileBrowser.log +1 -1
- package/.turbo/turbo-transpileCjs.log +1 -1
- package/.turbo/turbo-transpileEsm.log +1 -1
- package/.turbo/turbo-transpileTypes.log +1 -1
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +15 -0
- package/build/cjs/index.d.cts +2 -0
- package/build/types/types/UpgradeLens.d.ts +2 -0
- package/build/types/types/UpgradeLens.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/types/UpgradeLens.ts +2 -0
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @palantir/pack.document-schema.model-types@0.
|
|
2
|
+
> @palantir/pack.document-schema.model-types@0.34.0 lint /home/runner/work/pack/pack/packages/document-schema/model-types
|
|
3
3
|
> eslint ./src && dprint check --config $(find-up dprint.json) --allow-no-files
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @palantir/pack.document-schema.model-types@0.
|
|
2
|
+
> @palantir/pack.document-schema.model-types@0.34.0 transpileBrowser /home/runner/work/pack/pack/packages/document-schema/model-types
|
|
3
3
|
> monorepo-transpile -f esm -m bundle -t browser
|
|
4
4
|
|
|
5
5
|
👍
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @palantir/pack.document-schema.model-types@0.
|
|
2
|
+
> @palantir/pack.document-schema.model-types@0.34.0 transpileCjs /home/runner/work/pack/pack/packages/document-schema/model-types
|
|
3
3
|
> monorepo-transpile -f cjs -m bundle -t node
|
|
4
4
|
|
|
5
5
|
👍
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @palantir/pack.document-schema.model-types@0.
|
|
2
|
+
> @palantir/pack.document-schema.model-types@0.34.0 transpileEsm /home/runner/work/pack/pack/packages/document-schema/model-types
|
|
3
3
|
> monorepo-transpile -f esm -m bundle -t node
|
|
4
4
|
|
|
5
5
|
👍
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @palantir/pack.document-schema.model-types@0.
|
|
2
|
+
> @palantir/pack.document-schema.model-types@0.34.0 transpileTypes /home/runner/work/pack/pack/packages/document-schema/model-types
|
|
3
3
|
> monorepo-transpile -f esm -m types -t node
|
|
4
4
|
|
|
5
5
|
👍
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @palantir/pack.document-schema.model-types@0.
|
|
2
|
+
> @palantir/pack.document-schema.model-types@0.34.0 typecheck /home/runner/work/pack/pack/packages/document-schema/model-types
|
|
3
3
|
> tsc --noEmit --emitDeclarationOnly false
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @palantir/pack.document-schema.model-types
|
|
2
2
|
|
|
3
|
+
## 0.34.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8810d4c: Fix imports of package subpaths, such as `@palantir/pack.core/generatedPlatformSdk`. The `"./*"` entry in each package's `exports` pointed at `build/js/public/*.js` and `build/cjs/public/*.js`, which the build never writes. It now points at `build/esm/public/*.js` and `build/cjs/public/*.cjs`.
|
|
8
|
+
- 9e646b9: Record the version each union variant was added in. When a union gains a variant in a later schema version, the IR and the schema that `ir asset`, `ir update-schema`, and `ir deploy` send include `variantMetadata` for that variant. Unions that never gained a variant are unchanged. A minor version can now add union variants; older apps read them as unknown and keep them when they save. A write that uses an added variant is tagged with at least the version that added the variant, even when the variant's record is older.
|
|
9
|
+
|
|
10
|
+
If a third-party document type was first deployed after one of its unions had already gained a variant, the server recorded that variant at the union's version. The next `ir update-schema` then fails because the variant's version changed. Run that update once with `--force-overwrite`.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [8810d4c]
|
|
15
|
+
- Updated dependencies [8810d4c]
|
|
16
|
+
- @palantir/pack.core@0.34.0
|
|
17
|
+
|
|
3
18
|
## 0.33.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/build/cjs/index.d.cts
CHANGED
|
@@ -168,6 +168,8 @@ interface UnionUpgradeRegistry<ModelName extends string = string> {
|
|
|
168
168
|
discriminant: string;
|
|
169
169
|
/** Maps discriminant values to variant model names in the UpgradeRegistryMap. */
|
|
170
170
|
variants: Record<string, string>;
|
|
171
|
+
/** Major version each variant was added in, for variants added after the union. */
|
|
172
|
+
variantAddedInVersions?: Record<string, number>;
|
|
171
173
|
}
|
|
172
174
|
type UpgradeRegistryEntry = UpgradeRegistry | UnionUpgradeRegistry;
|
|
173
175
|
type UpgradeRegistryMap = Record<string, UpgradeRegistryEntry>;
|
|
@@ -53,6 +53,8 @@ export interface UnionUpgradeRegistry<ModelName extends string = string> {
|
|
|
53
53
|
discriminant: string;
|
|
54
54
|
/** Maps discriminant values to variant model names in the UpgradeRegistryMap. */
|
|
55
55
|
variants: Record<string, string>;
|
|
56
|
+
/** Major version each variant was added in, for variants added after the union. */
|
|
57
|
+
variantAddedInVersions?: Record<string, number>;
|
|
56
58
|
}
|
|
57
59
|
export type UpgradeRegistryEntry = UpgradeRegistry | UnionUpgradeRegistry;
|
|
58
60
|
export type UpgradeRegistryMap = Record<string, UpgradeRegistryEntry>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAiBA,YAAY,sBACR;CAAE,MAAM;IACR;CAAE,MAAM;CAAY;IACpB;CAAE,MAAM;CAAS,SAAS;IAC1B;CAAE,MAAM;CAAO,OAAO;IACtB;CAAE,MAAM;CAAY,OAAO;;AAE/B,iBAAiB,aAAa;;;;;;;CAO5B;;AAGF,iBAAiB,SAAS;CACxB,MAAM;CACN;;AAGF,iBAAiB,eAAe;;CAE9B;;CAEA;CACA,QAAQ,eAAe;CACvB;;AAGF,iBAAiB,gBAAgB,mCAAmC;CAClE,WAAW;;CAEX,WAAW,eAAe;;CAE1B,OAAO;;;;;;;AAQT,iBAAiB,qBAAqB,mCAAmC;CACvE,WAAW;;CAEX;;CAEA,UAAU;;
|
|
1
|
+
{"mappings":";AAiBA,YAAY,sBACR;CAAE,MAAM;IACR;CAAE,MAAM;CAAY;IACpB;CAAE,MAAM;CAAS,SAAS;IAC1B;CAAE,MAAM;CAAO,OAAO;IACtB;CAAE,MAAM;CAAY,OAAO;;AAE/B,iBAAiB,aAAa;;;;;;;CAO5B;;AAGF,iBAAiB,SAAS;CACxB,MAAM;CACN;;AAGF,iBAAiB,eAAe;;CAE9B;;CAEA;CACA,QAAQ,eAAe;CACvB;;AAGF,iBAAiB,gBAAgB,mCAAmC;CAClE,WAAW;;CAEX,WAAW,eAAe;;CAE1B,OAAO;;;;;;;AAQT,iBAAiB,qBAAqB,mCAAmC;CACvE,WAAW;;CAEX;;CAEA,UAAU;;CAEV,yBAAyB;;AAG3B,YAAY,uBAAuB,kBAAkB;AAErD,YAAY,qBAAqB,eAAe;;;;;;;;;;;;;;;AAgBhD,YAAY,aAAa,eAEvB,eAAe,gBAAgB","names":[],"sources":["../../../src/types/UpgradeLens.ts"],"version":3,"file":"UpgradeLens.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@palantir/pack.document-schema.model-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"description": "Minimal types supporting generated PACK schemas",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"browser": "./build/browser/public/*.js",
|
|
22
22
|
"import": {
|
|
23
23
|
"types": "./build/types/public/*.d.ts",
|
|
24
|
-
"default": "./build/
|
|
24
|
+
"default": "./build/esm/public/*.js"
|
|
25
25
|
},
|
|
26
|
-
"require": "./build/cjs/public/*.
|
|
26
|
+
"require": "./build/cjs/public/*.cjs",
|
|
27
27
|
"default": "./build/browser/public/*.js"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@palantir/pack.core": "~0.
|
|
31
|
+
"@palantir/pack.core": "~0.34.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"zod": "^4.1.7"
|
package/src/types/UpgradeLens.ts
CHANGED
|
@@ -65,6 +65,8 @@ export interface UnionUpgradeRegistry<ModelName extends string = string> {
|
|
|
65
65
|
discriminant: string;
|
|
66
66
|
/** Maps discriminant values to variant model names in the UpgradeRegistryMap. */
|
|
67
67
|
variants: Record<string, string>;
|
|
68
|
+
/** Major version each variant was added in, for variants added after the union. */
|
|
69
|
+
variantAddedInVersions?: Record<string, number>;
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
export type UpgradeRegistryEntry = UpgradeRegistry | UnionUpgradeRegistry;
|