@patterkit/compiler 0.11.0 → 0.12.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/dist/index.cjs CHANGED
@@ -836,9 +836,10 @@ function exportBundle(input) {
836
836
  // The project's own line-padding default, only when it sets one: absent, every runtime uses the built-in one.
837
837
  ...typeof project.padAfterDefault === "number" ? { padAfterDefault: project.padAfterDefault } : {},
838
838
  properties: resolved(project.properties),
839
- // A host scope's declarations ship as written: there, "no default" is the game's to supply, and saying
840
- // so is what an integrator reads the bundle for.
841
- scopeRegistry: hostScopes,
839
+ scopeRegistry: hostScopes && {
840
+ ...hostScopes,
841
+ scopes: hostScopes.scopes.map((s) => s.declarations ? { ...s, declarations: resolved(s.declarations) } : s)
842
+ },
842
843
  gameDataFields: project.gameDataFields && Object.fromEntries(
843
844
  Object.entries(project.gameDataFields).map(([kind, fields]) => [kind, resolved(fields)])
844
845
  ),
package/dist/index.js CHANGED
@@ -813,9 +813,10 @@ function exportBundle(input) {
813
813
  // The project's own line-padding default, only when it sets one: absent, every runtime uses the built-in one.
814
814
  ...typeof project.padAfterDefault === "number" ? { padAfterDefault: project.padAfterDefault } : {},
815
815
  properties: resolved(project.properties),
816
- // A host scope's declarations ship as written: there, "no default" is the game's to supply, and saying
817
- // so is what an integrator reads the bundle for.
818
- scopeRegistry: hostScopes,
816
+ scopeRegistry: hostScopes && {
817
+ ...hostScopes,
818
+ scopes: hostScopes.scopes.map((s) => s.declarations ? { ...s, declarations: resolved(s.declarations) } : s)
819
+ },
819
820
  gameDataFields: project.gameDataFields && Object.fromEntries(
820
821
  Object.entries(project.gameDataFields).map(([kind, fields]) => [kind, resolved(fields)])
821
822
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patterkit/compiler",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Patter compiler: compile condition/effect expressions, validate them, and export source to the runtime bundle.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,11 +34,11 @@
34
34
  "build": "tsup src/index.ts --format esm,cjs --dts --clean"
35
35
  },
36
36
  "dependencies": {
37
- "@patterkit/model": "0.18.0",
38
- "@patterkit/core": "0.9.2",
39
- "@patterkit/dialect": "0.2.15",
37
+ "@patterkit/model": "0.19.0",
38
+ "@patterkit/core": "0.9.3",
39
+ "@patterkit/dialect": "0.2.16",
40
40
  "@wildwinter/expr": "^0.6.0",
41
- "@wildwinter/toolkit": "^0.2.1"
41
+ "@wildwinter/toolkit": "^0.2.2"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@wildwinter/scoperegistry": ">=0.9.0 <1.0.0"