@asyra/preset 0.5.7 → 0.5.8
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 +100 -0
- package/README.md +9 -5
- package/dist/preset.d.ts.map +1 -1
- package/dist/preset.js +17 -1
- package/dist/preset.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# @asyra/preset
|
|
2
|
+
|
|
3
|
+
## 0.5.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 22883b1: Support owner-coordinated runtime replacement for applications such as Asyra Sim.
|
|
8
|
+
Quiesce feature work before retiring runtime-owned state, subscriptions, input
|
|
9
|
+
bindings, render resources, and registration graphs. Retain preset installation
|
|
10
|
+
cleanup and prevent callbacks from a retired runtime from affecting its successor.
|
|
11
|
+
|
|
12
|
+
Expose Core document-load preflight and validated renderer resizing through the
|
|
13
|
+
public facade. Applications can validate a replacement document before retiring
|
|
14
|
+
the active runtime, while ordinary document loading retains its existing history
|
|
15
|
+
ownership contract.
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [22883b1]
|
|
18
|
+
- @asyra/core@0.5.7
|
|
19
|
+
- @asyra/ui-context@0.5.4
|
|
20
|
+
- @asyra/utils@0.5.2
|
|
21
|
+
- @asyra/reactive-events@0.5.4
|
|
22
|
+
|
|
23
|
+
## 0.5.7
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- @asyra/core@0.5.6
|
|
28
|
+
|
|
29
|
+
## 0.5.6
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Remove unused package dependencies from the published manifests.
|
|
34
|
+
|
|
35
|
+
## 0.5.5
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Republish the affected Framework packages with publishable internal dependency
|
|
40
|
+
ranges instead of monorepo-only `workspace:*` metadata.
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
- @asyra/core@0.5.5
|
|
43
|
+
- @asyra/reactive-events@0.5.3
|
|
44
|
+
- @asyra/render-engine-pixi@0.5.2
|
|
45
|
+
- @asyra/ui-context@0.5.3
|
|
46
|
+
|
|
47
|
+
## 0.5.4
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Exceptional synchronized patch release for the fixed 19-package Framework set.
|
|
52
|
+
- Updated dependencies
|
|
53
|
+
- @asyra/core@0.5.4
|
|
54
|
+
- @asyra/reactive-events@0.5.2
|
|
55
|
+
- @asyra/render-engine@0.5.1
|
|
56
|
+
- @asyra/render-engine-pixi@0.5.1
|
|
57
|
+
- @asyra/ui-context@0.5.2
|
|
58
|
+
- @asyra/utils@0.5.1
|
|
59
|
+
|
|
60
|
+
## 0.5.3
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- @asyra/core@0.5.3
|
|
65
|
+
|
|
66
|
+
## 0.5.2
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- Updated dependencies [889f7b4]
|
|
71
|
+
- @asyra/reactive-events@0.5.1
|
|
72
|
+
- @asyra/core@0.5.2
|
|
73
|
+
- @asyra/ui-context@0.5.1
|
|
74
|
+
|
|
75
|
+
## 0.5.1
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- 6559efc: Route app runtime and collaboration through Core, restore fast authoritative collaboration synchronization, and refresh the standalone Asyra Design template.
|
|
80
|
+
|
|
81
|
+
Initialize document connection state at `none`, publish only actual state changes, and notify every connection transition except the initial `none` to `connected` transition.
|
|
82
|
+
|
|
83
|
+
- Updated dependencies [6559efc]
|
|
84
|
+
- @asyra/core@0.5.1
|
|
85
|
+
|
|
86
|
+
## 0.5.0
|
|
87
|
+
|
|
88
|
+
### Minor Changes
|
|
89
|
+
|
|
90
|
+
- Exceptional synchronized minor release for the fixed 19-package Framework set.
|
|
91
|
+
|
|
92
|
+
### Patch Changes
|
|
93
|
+
|
|
94
|
+
- Updated dependencies
|
|
95
|
+
- @asyra/core@0.5.0
|
|
96
|
+
- @asyra/reactive-events@0.5.0
|
|
97
|
+
- @asyra/render-engine@0.5.0
|
|
98
|
+
- @asyra/render-engine-pixi@0.5.0
|
|
99
|
+
- @asyra/ui-context@0.5.0
|
|
100
|
+
- @asyra/utils@0.5.0
|
package/README.md
CHANGED
|
@@ -42,8 +42,12 @@ Preset validates the full selection, installs in catalog order, optionally binds
|
|
|
42
42
|
|
|
43
43
|
## Support and policy
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
GitHub Discussions is the intended public channel for community conversation and
|
|
46
|
+
general help. Discussions is not enabled for this repository yet, so there is
|
|
47
|
+
currently no public community support destination. GitHub Issues are not a
|
|
48
|
+
general public support channel. External pull requests are not accepted by
|
|
49
|
+
default. Community participation creates no SLA or response deadline.
|
|
50
|
+
|
|
51
|
+
You may use, inspect, and fork the package under the [MIT License](https://github.com/karote00/asyra/blob/main/LICENSE).
|
|
52
|
+
Read the <a href="https://github.com/karote00/asyra/blob/main/SUPPORT.md" target="_blank" rel="noopener noreferrer">support policy</a>.
|
|
53
|
+
For suspected vulnerabilities, follow the <a href="https://github.com/karote00/asyra/blob/main/SECURITY.md" target="_blank" rel="noopener noreferrer">security policy</a> and report privately.
|
package/dist/preset.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACf,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACf,MAAM,YAAY,CAAA;AAmFnB,eAAO,MAAM,WAAW,GACtB,MAAM,cAAc,EACpB,UAAU,kBAAkB,KAC3B,iBAqDF,CAAA"}
|
package/dist/preset.js
CHANGED
|
@@ -4,10 +4,11 @@ import { bindPresetProfileProvider } from './composition/profile-provider.js';
|
|
|
4
4
|
import { createPresetApplyResult } from './composition/result.js';
|
|
5
5
|
import { PresetApplyError } from './composition/error.js';
|
|
6
6
|
import { installPresetDefaults } from './defaults/install.js';
|
|
7
|
+
import { PRESET_REGISTRATION_OWNER } from './registration.js';
|
|
7
8
|
const appliedCores = new WeakSet();
|
|
8
9
|
const pendingRollbacks = new WeakMap();
|
|
9
10
|
const cleanupKeys = (entries, completed) => entries.filter((entry) => entry.completed === completed).map(({ key }) => key);
|
|
10
|
-
const
|
|
11
|
+
const releaseEntries = (entries) => {
|
|
11
12
|
const failures = [];
|
|
12
13
|
for (let index = entries.length - 1; index >= 0; index--) {
|
|
13
14
|
const entry = entries[index];
|
|
@@ -21,6 +22,10 @@ const rollback = (entries, applyError) => {
|
|
|
21
22
|
failures.push(error);
|
|
22
23
|
}
|
|
23
24
|
}
|
|
25
|
+
return failures;
|
|
26
|
+
};
|
|
27
|
+
const rollback = (entries, applyError) => {
|
|
28
|
+
const failures = releaseEntries(entries);
|
|
24
29
|
if (failures.length > 0) {
|
|
25
30
|
throw new PresetApplyError(PRESET_APPLY_ERROR_CODES.CLEANUP_FAILED, 'Preset rollback cleanup is incomplete', {
|
|
26
31
|
cause: applyError,
|
|
@@ -29,6 +34,16 @@ const rollback = (entries, applyError) => {
|
|
|
29
34
|
});
|
|
30
35
|
}
|
|
31
36
|
};
|
|
37
|
+
const disposeRuntime = (entries) => {
|
|
38
|
+
const failures = releaseEntries(entries);
|
|
39
|
+
if (failures.length > 0) {
|
|
40
|
+
throw new PresetApplyError(PRESET_APPLY_ERROR_CODES.CLEANUP_FAILED, 'Preset runtime cleanup is incomplete', {
|
|
41
|
+
cause: failures[0],
|
|
42
|
+
completedCleanup: cleanupKeys(entries, true),
|
|
43
|
+
pendingCleanup: cleanupKeys(entries, false)
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
};
|
|
32
47
|
const retryPendingRollback = (core) => {
|
|
33
48
|
const pending = pendingRollbacks.get(core);
|
|
34
49
|
if (!pending)
|
|
@@ -63,6 +78,7 @@ export const applyPreset = (core, options) => {
|
|
|
63
78
|
selectedDefaults: resolved.selectedDefaults,
|
|
64
79
|
appliedDefaults: installedDefaults
|
|
65
80
|
});
|
|
81
|
+
core.registerRuntimeCleanup?.(PRESET_REGISTRATION_OWNER.packageName, () => disposeRuntime(cleanupEntries));
|
|
66
82
|
appliedCores.add(core);
|
|
67
83
|
return result;
|
|
68
84
|
}
|
package/dist/preset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,gB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AK;aAClB,CAAC,CAAA;YACF,MAAM,YAAY,CAAA;QACpB,CAAC;QACD,IAAI,KAAK,YAAY,gBAAgB,EAAE,CAAC;YACtC,MAAM,KAAK,CAAA;QACb,CAAC;QACD,MAAM,IAAI,gBAAgB,CACxB,wBAAwB,CAAC,sBAAsB,EAC/C,qBAAqB,EACrB,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAA;IACH,CAAC;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyra/preset",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "Framework preset package for Asyra",
|
|
5
5
|
"author": "Asa Tsai",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"test:ci": "yarn has:test && vitest run --coverage --reporter=default --reporter=junit || echo 'No test files found. Skipping test:ci.'"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@asyra/render": "0.5.
|
|
45
|
+
"@asyra/render": "0.5.7",
|
|
46
46
|
"@vitest/coverage-v8": "^3.2.6",
|
|
47
47
|
"typescript": "^5.7.2",
|
|
48
48
|
"vitest": "^3.2.6"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@asyra/core": "0.5.
|
|
52
|
-
"@asyra/reactive-events": "0.5.
|
|
51
|
+
"@asyra/core": "0.5.7",
|
|
52
|
+
"@asyra/reactive-events": "0.5.4",
|
|
53
53
|
"@asyra/render-engine": "0.5.1",
|
|
54
54
|
"@asyra/render-engine-pixi": "0.5.2",
|
|
55
|
-
"@asyra/ui-context": "0.5.
|
|
56
|
-
"@asyra/utils": "0.5.
|
|
55
|
+
"@asyra/ui-context": "0.5.4",
|
|
56
|
+
"@asyra/utils": "0.5.2",
|
|
57
57
|
"rxjs": "^7.8.1"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|