@margoengine/save 0.0.0-stage → 0.1.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/LICENSE +201 -0
- package/NOTICE +4 -0
- package/README.md +513 -3
- package/dist/codec.d.ts +25 -0
- package/dist/delta.d.ts +51 -0
- package/dist/delta.js +114 -0
- package/dist/document.d.ts +90 -0
- package/dist/engine.d.ts +113 -0
- package/dist/engine.js +467 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +46 -0
- package/dist/load-BaYFdOQQ.js +172 -0
- package/dist/load.d.ts +74 -0
- package/dist/materials.d.ts +8 -0
- package/dist/materials.js +16 -0
- package/dist/migrations.d.ts +31 -0
- package/dist/node.d.ts +18 -0
- package/dist/node.js +108 -0
- package/dist/opfs.d.ts +17 -0
- package/dist/opfs.js +105 -0
- package/dist/prefab-DeWmT5ey.js +277 -0
- package/dist/prefab.d.ts +23 -0
- package/dist/queue-C2AsmZge.js +12 -0
- package/dist/queue.d.ts +2 -0
- package/dist/remote.d.ts +59 -0
- package/dist/remote.js +235 -0
- package/dist/safe-DVo3kH0O.js +128 -0
- package/dist/safe.d.ts +46 -0
- package/dist/safe.js +1 -0
- package/dist/scene-state.d.ts +29 -0
- package/dist/scene-state.js +86 -0
- package/dist/signed.d.ts +17 -0
- package/dist/signed.js +66 -0
- package/dist/slots.d.ts +114 -0
- package/dist/slots.js +248 -0
- package/dist/storage-DZeyzOh1.js +153 -0
- package/dist/storage.d.ts +59 -0
- package/package.json +121 -6
package/package.json
CHANGED
|
@@ -1,6 +1,121 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@margoengine/save",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@margoengine/save",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Save and load: versioned scene and world documents with stable ids, prefabs with overrides, migrations, all-or-nothing loading and storage adapters.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"margoengine",
|
|
7
|
+
"webgpu",
|
|
8
|
+
"3d",
|
|
9
|
+
"save",
|
|
10
|
+
"load",
|
|
11
|
+
"serialization",
|
|
12
|
+
"prefab",
|
|
13
|
+
"indexeddb",
|
|
14
|
+
"localstorage"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://margoengine.com",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/scottcampbelldata/margoengine/issues"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/scottcampbelldata/margoengine.git",
|
|
23
|
+
"directory": "packages/save"
|
|
24
|
+
},
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"author": "Scott Campbell",
|
|
27
|
+
"type": "module",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"import": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./delta": {
|
|
35
|
+
"types": "./dist/delta.d.ts",
|
|
36
|
+
"import": "./dist/delta.js"
|
|
37
|
+
},
|
|
38
|
+
"./node": {
|
|
39
|
+
"types": "./dist/node.d.ts",
|
|
40
|
+
"import": "./dist/node.js"
|
|
41
|
+
},
|
|
42
|
+
"./engine": {
|
|
43
|
+
"types": "./dist/engine.d.ts",
|
|
44
|
+
"import": "./dist/engine.js"
|
|
45
|
+
},
|
|
46
|
+
"./slots": {
|
|
47
|
+
"types": "./dist/slots.d.ts",
|
|
48
|
+
"import": "./dist/slots.js"
|
|
49
|
+
},
|
|
50
|
+
"./remote": {
|
|
51
|
+
"types": "./dist/remote.d.ts",
|
|
52
|
+
"import": "./dist/remote.js"
|
|
53
|
+
},
|
|
54
|
+
"./safe": {
|
|
55
|
+
"types": "./dist/safe.d.ts",
|
|
56
|
+
"import": "./dist/safe.js"
|
|
57
|
+
},
|
|
58
|
+
"./opfs": {
|
|
59
|
+
"types": "./dist/opfs.d.ts",
|
|
60
|
+
"import": "./dist/opfs.js"
|
|
61
|
+
},
|
|
62
|
+
"./signed": {
|
|
63
|
+
"types": "./dist/signed.d.ts",
|
|
64
|
+
"import": "./dist/signed.js"
|
|
65
|
+
},
|
|
66
|
+
"./scene-state": {
|
|
67
|
+
"types": "./dist/scene-state.d.ts",
|
|
68
|
+
"import": "./dist/scene-state.js"
|
|
69
|
+
},
|
|
70
|
+
"./materials": {
|
|
71
|
+
"types": "./dist/materials.d.ts",
|
|
72
|
+
"import": "./dist/materials.js"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"files": [
|
|
76
|
+
"dist",
|
|
77
|
+
"LICENSE",
|
|
78
|
+
"NOTICE"
|
|
79
|
+
],
|
|
80
|
+
"publishConfig": {
|
|
81
|
+
"access": "public"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"@margoengine/animation": "^0.1.0",
|
|
85
|
+
"@margoengine/core": "^0.1.0",
|
|
86
|
+
"@margoengine/gltf": "^0.1.0",
|
|
87
|
+
"@margoengine/materials": "^0.1.0",
|
|
88
|
+
"@margoengine/shader": "^0.1.0"
|
|
89
|
+
},
|
|
90
|
+
"peerDependenciesMeta": {
|
|
91
|
+
"@margoengine/animation": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@margoengine/core": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"@margoengine/gltf": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"@margoengine/materials": {
|
|
101
|
+
"optional": true
|
|
102
|
+
},
|
|
103
|
+
"@margoengine/shader": {
|
|
104
|
+
"optional": true
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"dependencies": {
|
|
108
|
+
"@margoengine/math": "^0.1.0"
|
|
109
|
+
},
|
|
110
|
+
"devDependencies": {
|
|
111
|
+
"@margoengine/core": "^0.1.0",
|
|
112
|
+
"@margoengine/ecs": "^0.1.0"
|
|
113
|
+
},
|
|
114
|
+
"scripts": {
|
|
115
|
+
"build": "node ../../scripts/build-optional.js save",
|
|
116
|
+
"test": "npm run build && node --test tests/*.test.js",
|
|
117
|
+
"prepack": "npm run build",
|
|
118
|
+
"test:gpu": "cd ../.. && node packages/save/tests/browser/engine-check.mjs && node packages/save/tests/browser/slots-check.mjs && node packages/save/tests/browser/safe-check.mjs && node packages/save/tests/browser/remote-check.mjs",
|
|
119
|
+
"test:gpu:materials": "cd ../.. && node packages/save/tests/browser/materials-check.mjs"
|
|
120
|
+
}
|
|
121
|
+
}
|