@warp-drive/core 5.8.0-alpha.0 → 5.8.0-alpha.3
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/README.md +4 -1
- package/declarations/reactive.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/reactive.js +4 -4
- package/dist/{request-state-C955e0AL.js → request-state-CUuZzgvE.js} +1 -1
- package/dist/store/-private.js +1 -1
- package/dist/types/-private.js +1 -1
- package/dist/types/runtime.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -17,8 +17,11 @@
|
|
|
17
17
|

|
|
18
18
|

|
|
19
19
|
[](https://api.emberjs.com/ember-data/release)
|
|
20
|
-
[](https://discord.gg/zT3asNS
|
|
21
21
|
)
|
|
22
|
+
[](https://discord.gg/n8BptgFzNt
|
|
23
|
+
)
|
|
24
|
+
|
|
22
25
|
|
|
23
26
|
<p align="center">
|
|
24
27
|
<br>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* - local changes immediately reflect app wide
|
|
27
27
|
* - records have all the APIs of Model (references, state props, currentState, methods etc)
|
|
28
28
|
* - the continued use of `@warp-drive/legacy` is required (though most imports from it can be removed)
|
|
29
|
-
* - `async: true` relationships are supported (but not recommended outside of [LinksMode](https://github.com/
|
|
29
|
+
* - `async: true` relationships are supported (but not recommended outside of [LinksMode](https://github.com/warp-drive-data/warp-drive/blob/main/guides/relationships/features/links-mode.md))
|
|
30
30
|
*
|
|
31
31
|
* ---
|
|
32
32
|
*
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* - local changes are isolated until committed, displaying only via the editable version of the record
|
|
39
39
|
* - records have a more limited API, focused on only what is in their schema.
|
|
40
40
|
* - some common operations may have more friction to perform because intended utilities are not yet available
|
|
41
|
-
* - `async: true` relationships are not supported (see [LinksMode](https://github.com/
|
|
41
|
+
* - `async: true` relationships are not supported (see [LinksMode](https://github.com/warp-drive-data/warp-drive/blob/main/guides/relationships/features/links-mode.md))
|
|
42
42
|
* - The `@warp-drive/legacy` package is not required
|
|
43
43
|
*
|
|
44
44
|
* These modes are interopable. The reactive object (record) for a resource in PolarisMode can relate to
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { macroCondition, getGlobalConfig } from '@embroider/macros';
|
|
|
4
4
|
import { w as waitFor } from "./configure-C3x8YXzL.js";
|
|
5
5
|
import { peekUniversalTransient, setUniversalTransient } from './types/-private.js';
|
|
6
6
|
import { EnableHydration } from './types/request.js';
|
|
7
|
-
export { C as CacheHandler, S as Store, r as recordIdentifierFor, U as setIdentifierForgetMethod, Q as setIdentifierGenerationMethod, V as setIdentifierResetMethod, T as setIdentifierUpdateMethod, W as setKeyInfoForResource, s as storeFor } from "./request-state-
|
|
7
|
+
export { C as CacheHandler, S as Store, r as recordIdentifierFor, U as setIdentifierForgetMethod, Q as setIdentifierGenerationMethod, V as setIdentifierResetMethod, T as setIdentifierUpdateMethod, W as setKeyInfoForResource, s as storeFor } from "./request-state-CUuZzgvE.js";
|
|
8
8
|
import '@ember/debug';
|
|
9
9
|
import './utils/string.js';
|
|
10
10
|
import "./symbols-sql1_mdx.js";
|
package/dist/reactive.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as ReactiveResource, M as isNonIdentityCacheableField, N as getFieldCacheKeyStrict, r as recordIdentifierFor, H as withSignalStore, G as createInternalMemo } from "./request-state-
|
|
2
|
-
export { O as checkout, P as commit } from "./request-state-
|
|
1
|
+
import { L as ReactiveResource, M as isNonIdentityCacheableField, N as getFieldCacheKeyStrict, r as recordIdentifierFor, H as withSignalStore, G as createInternalMemo } from "./request-state-CUuZzgvE.js";
|
|
2
|
+
export { O as checkout, P as commit } from "./request-state-CUuZzgvE.js";
|
|
3
3
|
import { isResourceSchema } from './types/schema/fields.js';
|
|
4
4
|
import { D as Destroy, C as Context } from "./symbols-sql1_mdx.js";
|
|
5
5
|
export { a as Checkout } from "./symbols-sql1_mdx.js";
|
|
@@ -550,7 +550,7 @@ class SchemaService {
|
|
|
550
550
|
* We do think a generalized `kind` registration system would be useful,
|
|
551
551
|
* but we have not yet designed it.
|
|
552
552
|
*
|
|
553
|
-
* See https://github.com/
|
|
553
|
+
* See https://github.com/warp-drive-data/warp-drive/issues/9534
|
|
554
554
|
*
|
|
555
555
|
* @internal
|
|
556
556
|
*/
|
|
@@ -570,7 +570,7 @@ class SchemaService {
|
|
|
570
570
|
* We do think a generalized `kind` registration system would be useful,
|
|
571
571
|
* but we have not yet designed it.
|
|
572
572
|
*
|
|
573
|
-
* See https://github.com/
|
|
573
|
+
* See https://github.com/warp-drive-data/warp-drive/issues/9534
|
|
574
574
|
*
|
|
575
575
|
* @internal
|
|
576
576
|
*/
|
|
@@ -3125,7 +3125,7 @@ if (macroCondition(getGlobalConfig().WarpDrive.polyfillUUID)) {
|
|
|
3125
3125
|
function uuidv4() {
|
|
3126
3126
|
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
3127
3127
|
if (!test) {
|
|
3128
|
-
throw new Error('crypto.randomUUID needs to be avaliable. Some browsers incorrectly disallow it in insecure contexts. You maybe want to enable the polyfill: https://github.com/
|
|
3128
|
+
throw new Error('crypto.randomUUID needs to be avaliable. Some browsers incorrectly disallow it in insecure contexts. You maybe want to enable the polyfill: https://github.com/warp-drive-data/warp-drive#randomuuid-polyfill');
|
|
3129
3129
|
}
|
|
3130
3130
|
})(typeof _crypto.randomUUID === 'function') : {};
|
|
3131
3131
|
return _crypto.randomUUID();
|
package/dist/store/-private.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CacheHandler, D as DISPOSE, R as RecordArrayManager, E as Signals, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, J as consumeInternalSignal, G as createInternalMemo, l as createLegacyManyArray, q as createRequestSubscription, A as defineGate, B as defineNonEnumerableSignal, z as defineSignal, e as ensureStringId, y as entangleInitiallyStaleSignal, x as entangleSignal, f as fastPush, w as gate, K as getOrCreateInternalSignal, p as getPromiseState, t as getRequestState, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, v as memoized, I as notifyInternalSignal, F as peekInternalSignal, r as recordIdentifierFor, j as setRecordIdentifier, u as signal, s as storeFor, H as withSignalStore } from "../request-state-
|
|
1
|
+
export { C as CacheHandler, D as DISPOSE, R as RecordArrayManager, E as Signals, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, J as consumeInternalSignal, G as createInternalMemo, l as createLegacyManyArray, q as createRequestSubscription, A as defineGate, B as defineNonEnumerableSignal, z as defineSignal, e as ensureStringId, y as entangleInitiallyStaleSignal, x as entangleSignal, f as fastPush, w as gate, K as getOrCreateInternalSignal, p as getPromiseState, t as getRequestState, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, v as memoized, I as notifyInternalSignal, F as peekInternalSignal, r as recordIdentifierFor, j as setRecordIdentifier, u as signal, s as storeFor, H as withSignalStore } from "../request-state-CUuZzgvE.js";
|
|
2
2
|
export { A as ARRAY_SIGNAL, O as OBJECT_SIGNAL, w as waitFor } from "../configure-C3x8YXzL.js";
|
package/dist/types/-private.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { macroCondition, getGlobalConfig } from '@embroider/macros';
|
|
2
2
|
const name = "@warp-drive/core";
|
|
3
|
-
const version = "5.8.0-alpha.
|
|
3
|
+
const version = "5.8.0-alpha.3";
|
|
4
4
|
|
|
5
5
|
// in testing mode, we utilize globals to ensure only one copy exists of
|
|
6
6
|
// these maps, due to bugs in ember-auto-import
|
package/dist/types/runtime.js
CHANGED
|
@@ -4,7 +4,7 @@ const RuntimeConfig = getOrSetUniversal('WarpDriveRuntimeConfig', {
|
|
|
4
4
|
});
|
|
5
5
|
function trySessionStorage() {
|
|
6
6
|
// This works even when sessionStorage is not available.
|
|
7
|
-
// See https://github.com/
|
|
7
|
+
// See https://github.com/warp-drive-data/warp-drive/issues/9784
|
|
8
8
|
try {
|
|
9
9
|
return globalThis.sessionStorage;
|
|
10
10
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive/core",
|
|
3
|
-
"version": "5.8.0-alpha.
|
|
3
|
+
"version": "5.8.0-alpha.3",
|
|
4
4
|
"description": "Core package for WarpDrive | All the Universal Basics",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+ssh://git@github.com:
|
|
12
|
+
"url": "git+ssh://git@github.com:warp-drive-data/warp-drive.git",
|
|
13
13
|
"directory": "warp-drive-packages/core"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@embroider/macros": "^1.18.1",
|
|
40
|
-
"@warp-drive/build-config": "5.8.0-alpha.
|
|
40
|
+
"@warp-drive/build-config": "5.8.0-alpha.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/core": "^7.28.3",
|
|
44
44
|
"@babel/plugin-transform-typescript": "^7.28.0",
|
|
45
45
|
"@babel/preset-typescript": "^7.27.1",
|
|
46
|
-
"@warp-drive/internal-config": "5.8.0-alpha.
|
|
46
|
+
"@warp-drive/internal-config": "5.8.0-alpha.3",
|
|
47
47
|
"decorator-transforms": "^2.3.0",
|
|
48
48
|
"ember-source": "~6.6.0",
|
|
49
49
|
"expect-type": "^1.2.2",
|