@glissade/cli 0.31.0-pre.0 → 0.31.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.
Files changed (2) hide show
  1. package/dist/migrate.js +13 -11
  2. package/package.json +10 -10
package/dist/migrate.js CHANGED
@@ -37,9 +37,11 @@ function diffProp(nodeName, propName, from, to, out) {
37
37
  */
38
38
  function diffManifests(from, to) {
39
39
  const out = [];
40
- for (const name of keys(from.nodes)) {
41
- const a = from.nodes[name];
42
- const b = to.nodes[name];
40
+ const fromNodes = from.nodes ?? {};
41
+ const toNodes = to.nodes ?? {};
42
+ for (const name of keys(fromNodes)) {
43
+ const a = fromNodes[name];
44
+ const b = toNodes[name];
43
45
  if (a === void 0) continue;
44
46
  if (b === void 0) {
45
47
  out.push({
@@ -88,8 +90,8 @@ function diffManifests(from, to) {
88
90
  detail: `new prop (${b.props[p]?.animatable ? "animatable" : "construction-only"})`
89
91
  });
90
92
  }
91
- for (const name of keys(to.nodes)) if (from.nodes[name] === void 0) {
92
- const sp = to.nodes[name]?.subpath ?? "@glissade/scene";
93
+ for (const name of keys(toNodes)) if (fromNodes[name] === void 0) {
94
+ const sp = toNodes[name]?.subpath ?? "@glissade/scene";
93
95
  out.push({
94
96
  kind: "added",
95
97
  category: "node",
@@ -98,8 +100,8 @@ function diffManifests(from, to) {
98
100
  detail: `new node type (import from ${sp})`
99
101
  });
100
102
  }
101
- const fromHelpers = new Map(from.helpers.map((h) => [h.name, h]));
102
- const toHelpers = new Map(to.helpers.map((h) => [h.name, h]));
103
+ const fromHelpers = new Map((from.helpers ?? []).map((h) => [h.name, h]));
104
+ const toHelpers = new Map((to.helpers ?? []).map((h) => [h.name, h]));
103
105
  for (const name of [...fromHelpers.keys()].sort()) {
104
106
  const a = fromHelpers.get(name);
105
107
  const b = toHelpers.get(name);
@@ -138,8 +140,8 @@ function diffManifests(from, to) {
138
140
  breaking: false,
139
141
  detail: `new helper (import from ${toHelpers.get(name).import})`
140
142
  });
141
- const fromB = new Map(from.builder.methods.map((m) => [m.name, m]));
142
- const toB = new Map(to.builder.methods.map((m) => [m.name, m]));
143
+ const fromB = new Map((from.builder?.methods ?? []).map((m) => [m.name, m]));
144
+ const toB = new Map((to.builder?.methods ?? []).map((m) => [m.name, m]));
143
145
  for (const name of [...fromB.keys()].sort()) {
144
146
  const a = fromB.get(name);
145
147
  const b = toB.get(name);
@@ -170,8 +172,8 @@ function diffManifests(from, to) {
170
172
  breaking: false,
171
173
  detail: `new builder method`
172
174
  });
173
- diffStringSet("valueType", from.valueTypes, to.valueTypes, out);
174
- diffStringSet("easing", from.easings, to.easings, out);
175
+ diffStringSet("valueType", from.valueTypes ?? [], to.valueTypes ?? [], out);
176
+ diffStringSet("easing", from.easings ?? [], to.easings ?? [], out);
175
177
  diffStringSet("subpath", keys(from.subpaths), keys(to.subpaths), out);
176
178
  const breaking = out.filter((c) => c.breaking).length;
177
179
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/cli",
3
- "version": "0.31.0-pre.0",
3
+ "version": "0.31.0",
4
4
  "description": "glissade CLI: headless rendering via backend-skia (+ FFmpeg mux).",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -28,15 +28,15 @@
28
28
  "@napi-rs/canvas": "^0.1.65",
29
29
  "esbuild": "0.28.0",
30
30
  "jiti": "^2.4.2",
31
- "@glissade/backend-skia": "0.31.0-pre.0",
32
- "@glissade/core": "0.31.0-pre.0",
33
- "@glissade/interact": "0.31.0-pre.0",
34
- "@glissade/lottie": "0.31.0-pre.0",
35
- "@glissade/narrate": "0.31.0-pre.0",
36
- "@glissade/player": "0.31.0-pre.0",
37
- "@glissade/scene": "0.31.0-pre.0",
38
- "@glissade/sfx": "0.31.0-pre.0",
39
- "@glissade/svg": "0.31.0-pre.0"
31
+ "@glissade/backend-skia": "0.31.0",
32
+ "@glissade/core": "0.31.0",
33
+ "@glissade/interact": "0.31.0",
34
+ "@glissade/lottie": "0.31.0",
35
+ "@glissade/narrate": "0.31.0",
36
+ "@glissade/player": "0.31.0",
37
+ "@glissade/scene": "0.31.0",
38
+ "@glissade/sfx": "0.31.0",
39
+ "@glissade/svg": "0.31.0"
40
40
  },
41
41
  "repository": {
42
42
  "type": "git",