@warp-drive/core 5.8.0-alpha.4 → 5.8.0-alpha.41
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 +22 -38
- package/declarations/build-config.d.ts +18 -1
- package/declarations/configure.d.ts +1 -1
- package/declarations/graph/-private/-edge-definition.d.ts +12 -2
- package/declarations/index.d.ts +90 -8
- package/declarations/reactive/-private/default-mode.d.ts +1 -1
- package/declarations/reactive/-private/document.d.ts +58 -46
- package/declarations/reactive/-private/fields/extension.d.ts +1 -1
- package/declarations/reactive/-private/fields/managed-array.d.ts +2 -2
- package/declarations/reactive/-private/fields/managed-object.d.ts +1 -1
- package/declarations/reactive/-private/record.d.ts +10 -1
- package/declarations/reactive/-private/schema.d.ts +77 -4
- package/declarations/reactive/-private.d.ts +1 -0
- package/declarations/reactive.d.ts +13 -8
- package/declarations/request/-private/types.d.ts +1 -1
- package/declarations/request.d.ts +47 -0
- package/declarations/signals/-leaked.d.ts +2 -0
- package/declarations/signals/-private.d.ts +6 -0
- package/declarations/{store/-private/new-core-tmp → signals}/promise-state.d.ts +2 -1
- package/declarations/{store/-private/new-core-tmp → signals}/request-state.d.ts +6 -6
- package/declarations/{store/-private/new-core-tmp → signals}/request-subscription.d.ts +4 -4
- package/declarations/store/-private/cache-handler/types.d.ts +2 -16
- package/declarations/store/-private/caches/instance-cache.d.ts +5 -6
- package/declarations/store/-private/default-cache-policy.d.ts +147 -129
- package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +1 -1
- package/declarations/store/-private/managers/cache-key-manager.d.ts +26 -8
- package/declarations/store/-private/managers/cache-manager.d.ts +7 -18
- package/declarations/store/-private/managers/notification-manager.d.ts +1 -1
- package/declarations/store/-private/record-arrays/legacy-many-array.d.ts +1 -1
- package/declarations/store/-private/record-arrays/resource-array.d.ts +1 -1
- package/declarations/store/-private/store-service.d.ts +43 -64
- package/declarations/store/-private.d.ts +0 -6
- package/declarations/store/-types/q/cache-capabilities-manager.d.ts +1 -1
- package/declarations/store/deprecated/-private.d.ts +2 -2
- package/declarations/store/deprecated/store.d.ts +33 -32
- package/declarations/store.d.ts +1 -0
- package/declarations/types/cache.d.ts +8 -6
- package/declarations/types/record.d.ts +132 -0
- package/declarations/types/request.d.ts +26 -14
- package/declarations/types/schema/fields.d.ts +37 -13
- package/declarations/{store/-types/q → types/schema}/schema-service.d.ts +15 -13
- package/declarations/types/spec/document.d.ts +34 -0
- package/declarations/types/symbols.d.ts +2 -2
- package/declarations/types.d.ts +1 -1
- package/dist/build-config.js +1 -1
- package/dist/configure-DPUFCemT.js +1940 -0
- package/dist/configure.js +2 -1
- package/dist/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/{context-C_7OLieY.js → future-BKkJJkj7.js} +174 -174
- package/dist/graph/-private.js +16 -6
- package/dist/{request-state-CUuZzgvE.js → index-CQP2NSqg.js} +8835 -9432
- package/dist/index.js +6 -382
- package/dist/reactive/-private.js +1 -1
- package/dist/reactive.js +4 -903
- package/dist/request.js +49 -1
- package/dist/signals/-leaked.js +1 -0
- package/dist/store/-private.js +1 -2
- package/dist/store.js +1 -533
- package/dist/symbols-3C1OkYtZ.js +39 -0
- package/dist/types/-private.js +1 -1
- package/dist/types/record.js +127 -0
- package/dist/types/request.js +14 -12
- package/dist/types/schema/fields.js +14 -0
- package/dist/types/schema/schema-service.js +0 -0
- package/dist/types/symbols.js +2 -2
- package/dist/unpkg/dev/-leaked-Co0EI6Go.js +1939 -0
- package/dist/unpkg/dev/build-config/babel-macros.js +1 -0
- package/dist/unpkg/dev/build-config/canary-features.js +1 -0
- package/dist/unpkg/dev/build-config/debugging.js +1 -0
- package/dist/unpkg/dev/build-config/deprecations.js +1 -0
- package/dist/unpkg/dev/build-config/env.js +1 -0
- package/dist/unpkg/dev/build-config/macros.js +1 -0
- package/dist/unpkg/dev/build-config.js +1 -0
- package/dist/unpkg/dev/configure.js +1 -0
- package/dist/unpkg/dev/future-DFfOzSoe.js +672 -0
- package/dist/unpkg/dev/graph/-private.js +3132 -0
- package/dist/unpkg/dev/index-CepUPZlc.js +9392 -0
- package/dist/unpkg/dev/index.js +6 -0
- package/dist/unpkg/dev/reactive/-private.js +1 -0
- package/dist/unpkg/dev/reactive.js +3 -0
- package/dist/unpkg/dev/request.js +49 -0
- package/dist/unpkg/dev/runtime-DGG4CvlW.js +135 -0
- package/dist/unpkg/dev/signals/-leaked.js +1 -0
- package/dist/unpkg/dev/store/-private.js +55 -0
- package/dist/unpkg/dev/store.js +558 -0
- package/dist/unpkg/dev/types/-private.js +69 -0
- package/dist/unpkg/dev/types/cache/aliases.js +0 -0
- package/dist/unpkg/dev/types/cache/change.js +0 -0
- package/dist/unpkg/dev/types/cache/mutations.js +0 -0
- package/dist/unpkg/dev/types/cache/operations.js +0 -0
- package/dist/unpkg/dev/types/cache/relationship.js +0 -0
- package/dist/unpkg/dev/types/cache.js +0 -0
- package/dist/unpkg/dev/types/graph.js +0 -0
- package/dist/unpkg/dev/types/identifier.js +61 -0
- package/dist/unpkg/dev/types/json/raw.js +0 -0
- package/dist/unpkg/dev/types/params.js +0 -0
- package/dist/unpkg/dev/types/record.js +191 -0
- package/dist/unpkg/dev/types/request.js +77 -0
- package/dist/unpkg/dev/types/runtime.js +34 -0
- package/dist/unpkg/dev/types/schema/concepts.js +0 -0
- package/dist/unpkg/dev/types/schema/fields.js +505 -0
- package/dist/unpkg/dev/types/schema/fields.type-test.js +0 -0
- package/dist/unpkg/dev/types/schema/schema-service.js +0 -0
- package/dist/unpkg/dev/types/spec/document.js +0 -0
- package/dist/unpkg/dev/types/spec/error.js +0 -0
- package/dist/unpkg/dev/types/spec/json-api-raw.js +0 -0
- package/dist/unpkg/dev/types/symbols.js +84 -0
- package/dist/unpkg/dev/types/utils.js +0 -0
- package/dist/unpkg/dev/types.js +0 -0
- package/dist/unpkg/dev/utils/string.js +91 -0
- package/dist/unpkg/dev-deprecated/-leaked-DjMeRqdU.js +1939 -0
- package/dist/unpkg/dev-deprecated/-private-3C1OkYtZ.js +39 -0
- package/dist/unpkg/dev-deprecated/build-config/babel-macros.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/canary-features.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/debugging.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/deprecations.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/env.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/macros.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config.js +1 -0
- package/dist/unpkg/dev-deprecated/configure.js +1 -0
- package/dist/unpkg/dev-deprecated/future-DFfOzSoe.js +672 -0
- package/dist/unpkg/dev-deprecated/graph/-private.js +3327 -0
- package/dist/unpkg/dev-deprecated/index-C_EEmn_3.js +10007 -0
- package/dist/unpkg/dev-deprecated/index.js +5 -0
- package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -0
- package/dist/unpkg/dev-deprecated/reactive.js +3 -0
- package/dist/unpkg/dev-deprecated/request.js +49 -0
- package/dist/unpkg/dev-deprecated/runtime-DfhJzpZH.js +135 -0
- package/dist/unpkg/dev-deprecated/signals/-leaked.js +1 -0
- package/dist/unpkg/dev-deprecated/store/-private.js +1 -0
- package/dist/unpkg/dev-deprecated/store.js +558 -0
- package/dist/unpkg/dev-deprecated/types/-private.js +69 -0
- package/dist/unpkg/dev-deprecated/types/cache/aliases.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache/change.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache/mutations.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache/operations.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache/relationship.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache.js +0 -0
- package/dist/unpkg/dev-deprecated/types/graph.js +0 -0
- package/dist/unpkg/dev-deprecated/types/identifier.js +61 -0
- package/dist/unpkg/dev-deprecated/types/json/raw.js +0 -0
- package/dist/unpkg/dev-deprecated/types/params.js +0 -0
- package/dist/unpkg/dev-deprecated/types/record.js +191 -0
- package/dist/unpkg/dev-deprecated/types/request.js +77 -0
- package/dist/unpkg/dev-deprecated/types/runtime.js +34 -0
- package/dist/unpkg/dev-deprecated/types/schema/concepts.js +0 -0
- package/dist/unpkg/dev-deprecated/types/schema/fields.js +505 -0
- package/dist/unpkg/dev-deprecated/types/schema/fields.type-test.js +0 -0
- package/dist/unpkg/dev-deprecated/types/schema/schema-service.js +0 -0
- package/dist/unpkg/dev-deprecated/types/spec/document.js +0 -0
- package/dist/unpkg/dev-deprecated/types/spec/error.js +0 -0
- package/dist/unpkg/dev-deprecated/types/spec/json-api-raw.js +0 -0
- package/dist/unpkg/dev-deprecated/types/symbols.js +84 -0
- package/dist/unpkg/dev-deprecated/types/utils.js +0 -0
- package/dist/unpkg/dev-deprecated/types.js +0 -0
- package/dist/unpkg/dev-deprecated/utils/string.js +91 -0
- package/dist/unpkg/prod/-leaked-DUONXQDB.js +1676 -0
- package/dist/unpkg/prod/-private-sql1_mdx.js +39 -0
- package/dist/unpkg/prod/build-config/babel-macros.js +1 -0
- package/dist/unpkg/prod/build-config/canary-features.js +1 -0
- package/dist/unpkg/prod/build-config/debugging.js +1 -0
- package/dist/unpkg/prod/build-config/deprecations.js +1 -0
- package/dist/unpkg/prod/build-config/env.js +1 -0
- package/dist/unpkg/prod/build-config/macros.js +1 -0
- package/dist/unpkg/prod/build-config.js +1 -0
- package/dist/unpkg/prod/configure.js +2 -0
- package/dist/unpkg/prod/graph/-private.js +2235 -0
- package/dist/unpkg/prod/handler-EU_8ncB2.js +1619 -0
- package/dist/unpkg/prod/index.js +483 -0
- package/dist/unpkg/prod/promise-cache-DIT8Ypjq.js +19 -0
- package/dist/unpkg/prod/reactive/-private.js +1 -0
- package/dist/unpkg/prod/reactive.js +30 -0
- package/dist/unpkg/prod/request-BrJSCG6r.js +421 -0
- package/dist/unpkg/prod/request.js +2 -0
- package/dist/unpkg/prod/schema-BSkHyoWz.js +5219 -0
- package/dist/unpkg/prod/signals/-leaked.js +1 -0
- package/dist/unpkg/prod/store/-private.js +126 -0
- package/dist/unpkg/prod/store.js +437 -0
- package/dist/unpkg/prod/types/-private.js +49 -0
- package/dist/unpkg/prod/types/cache/aliases.js +0 -0
- package/dist/unpkg/prod/types/cache/change.js +0 -0
- package/dist/unpkg/prod/types/cache/mutations.js +0 -0
- package/dist/unpkg/prod/types/cache/operations.js +0 -0
- package/dist/unpkg/prod/types/cache/relationship.js +0 -0
- package/dist/unpkg/prod/types/cache.js +0 -0
- package/dist/unpkg/prod/types/graph.js +0 -0
- package/dist/unpkg/prod/types/identifier.js +61 -0
- package/dist/unpkg/prod/types/json/raw.js +0 -0
- package/dist/unpkg/prod/types/params.js +0 -0
- package/dist/unpkg/prod/types/record.js +191 -0
- package/dist/unpkg/prod/types/request.js +77 -0
- package/dist/unpkg/prod/types/runtime.js +34 -0
- package/dist/unpkg/prod/types/schema/concepts.js +0 -0
- package/dist/unpkg/prod/types/schema/fields.js +505 -0
- package/dist/unpkg/prod/types/schema/fields.type-test.js +0 -0
- package/dist/unpkg/prod/types/schema/schema-service.js +0 -0
- package/dist/unpkg/prod/types/spec/document.js +0 -0
- package/dist/unpkg/prod/types/spec/error.js +0 -0
- package/dist/unpkg/prod/types/spec/json-api-raw.js +0 -0
- package/dist/unpkg/prod/types/symbols.js +84 -0
- package/dist/unpkg/prod/types/utils.js +0 -0
- package/dist/unpkg/prod/types.js +0 -0
- package/dist/unpkg/prod/utils/string.js +72 -0
- package/dist/unpkg/prod-deprecated/-leaked-DRNv9VIX.js +1676 -0
- package/dist/unpkg/prod-deprecated/-private-3C1OkYtZ.js +39 -0
- package/dist/unpkg/prod-deprecated/build-config/babel-macros.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/canary-features.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/debugging.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/deprecations.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/env.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/macros.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config.js +1 -0
- package/dist/unpkg/prod-deprecated/configure.js +2 -0
- package/dist/unpkg/prod-deprecated/graph/-private.js +2408 -0
- package/dist/unpkg/prod-deprecated/handler-CCIu4sQ3.js +334 -0
- package/dist/unpkg/prod-deprecated/hooks-Dv4Np0MY.js +26 -0
- package/dist/unpkg/prod-deprecated/index.js +483 -0
- package/dist/unpkg/prod-deprecated/promise-cache-DIT8Ypjq.js +19 -0
- package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -0
- package/dist/unpkg/prod-deprecated/reactive.js +5 -0
- package/dist/unpkg/prod-deprecated/request-BrJSCG6r.js +421 -0
- package/dist/unpkg/prod-deprecated/request.js +2 -0
- package/dist/unpkg/prod-deprecated/schema-CJcjHv0E.js +6939 -0
- package/dist/unpkg/prod-deprecated/signals/-leaked.js +1 -0
- package/dist/unpkg/prod-deprecated/store/-private.js +88 -0
- package/dist/unpkg/prod-deprecated/store.js +437 -0
- package/dist/unpkg/prod-deprecated/types/-private.js +49 -0
- package/dist/unpkg/prod-deprecated/types/cache/aliases.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache/change.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache/mutations.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache/operations.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache/relationship.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache.js +0 -0
- package/dist/unpkg/prod-deprecated/types/graph.js +0 -0
- package/dist/unpkg/prod-deprecated/types/identifier.js +61 -0
- package/dist/unpkg/prod-deprecated/types/json/raw.js +0 -0
- package/dist/unpkg/prod-deprecated/types/params.js +0 -0
- package/dist/unpkg/prod-deprecated/types/record.js +191 -0
- package/dist/unpkg/prod-deprecated/types/request.js +77 -0
- package/dist/unpkg/prod-deprecated/types/runtime.js +34 -0
- package/dist/unpkg/prod-deprecated/types/schema/concepts.js +0 -0
- package/dist/unpkg/prod-deprecated/types/schema/fields.js +505 -0
- package/dist/unpkg/prod-deprecated/types/schema/fields.type-test.js +0 -0
- package/dist/unpkg/prod-deprecated/types/schema/schema-service.js +0 -0
- package/dist/unpkg/prod-deprecated/types/spec/document.js +0 -0
- package/dist/unpkg/prod-deprecated/types/spec/error.js +0 -0
- package/dist/unpkg/prod-deprecated/types/spec/json-api-raw.js +0 -0
- package/dist/unpkg/prod-deprecated/types/symbols.js +84 -0
- package/dist/unpkg/prod-deprecated/types/utils.js +0 -0
- package/dist/unpkg/prod-deprecated/types.js +0 -0
- package/dist/unpkg/prod-deprecated/utils/string.js +72 -0
- package/logos/README.md +2 -2
- package/logos/logo-yellow-slab.svg +1 -0
- package/logos/word-mark-black.svg +1 -0
- package/logos/word-mark-white.svg +1 -0
- package/package.json +11 -3
- package/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +0 -24
- package/dist/configure-C3x8YXzL.js +0 -181
- package/logos/NCC-1701-a-blue.svg +0 -4
- package/logos/NCC-1701-a-gold.svg +0 -4
- package/logos/NCC-1701-a-gold_100.svg +0 -1
- package/logos/NCC-1701-a-gold_base-64.txt +0 -1
- package/logos/NCC-1701-a.svg +0 -4
- package/logos/docs-badge.svg +0 -2
- package/logos/ember-data-logo-dark.svg +0 -12
- package/logos/ember-data-logo-light.svg +0 -12
- package/logos/social1.png +0 -0
- package/logos/social2.png +0 -0
- package/logos/warp-drive-logo-dark.svg +0 -4
- package/logos/warp-drive-logo-gold.svg +0 -4
- /package/declarations/{store/-private/new-core-tmp → signals}/reactivity/configure.d.ts +0 -0
- /package/declarations/{store/-private/new-core-tmp → signals}/reactivity/internal.d.ts +0 -0
- /package/declarations/{store/-private/new-core-tmp → signals}/reactivity/signal.d.ts +0 -0
- /package/dist/{symbols-sql1_mdx.js → unpkg/dev/-private-sql1_mdx.js} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { C as CacheHandler, F as Fetch, z as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, E as setIdentifierForgetMethod, B as setIdentifierGenerationMethod, G as setIdentifierResetMethod, D as setIdentifierUpdateMethod, H as setKeyInfoForResource, s as storeFor, A as useRecommendedStore } from "./index-C_EEmn_3.js";
|
|
2
|
+
import "./-private-3C1OkYtZ.js";
|
|
3
|
+
import "./-leaked-DjMeRqdU.js";
|
|
4
|
+
import './store.js';
|
|
5
|
+
import './types/runtime.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as Context } from "../-private-3C1OkYtZ.js";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { u as SchemaService, p as checkout, y as commit, v as fromIdentity, q as instantiateRecord, x as registerDerivations, t as teardownRecord, w as withDefaults } from "./index-C_EEmn_3.js";
|
|
2
|
+
export { C as Checkout } from "./-private-3C1OkYtZ.js";
|
|
3
|
+
export { c as createRequestSubscription, a as getPromiseState, g as getRequestState } from "./-leaked-DjMeRqdU.js";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export { c as createDeferred, g as getPromiseResult, s as setPromiseResult } from "./future-DFfOzSoe.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Brands the supplied object with the supplied response type.
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* import type { ReactiveDataDocument } from '@warp-drive/core/reactive';
|
|
8
|
+
* import { withResponseType } from '@warp-drive/core/request';
|
|
9
|
+
* import type { User } from '#/data/user.ts'
|
|
10
|
+
*
|
|
11
|
+
* const result = await store.request(
|
|
12
|
+
* withResponseType<ReactiveDataDocument<User>>({ url: '/users/1' })
|
|
13
|
+
* );
|
|
14
|
+
*
|
|
15
|
+
* result.content.data; // will have type User
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
function withResponseType(obj) {
|
|
20
|
+
return obj;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Brands the supplied object with the supplied response type
|
|
25
|
+
* wrapped in {@link ReactiveDataDocument}. This is a convenience for
|
|
26
|
+
* the common case of using {@link withResponseType} with `ReactiveDataDocument`.
|
|
27
|
+
*
|
|
28
|
+
* ```ts
|
|
29
|
+
* import { withReactiveResponse } from '@warp-drive/core/request';
|
|
30
|
+
* import type { User } from '#/data/user.ts'
|
|
31
|
+
*
|
|
32
|
+
* const result = await store.request(
|
|
33
|
+
* withReactiveResponse<User>({ url: '/users/1' })
|
|
34
|
+
* );
|
|
35
|
+
*
|
|
36
|
+
* result.content.data; // will have type User
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
function withReactiveResponse(obj) {
|
|
42
|
+
return obj;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated use {@link withResponseType} instead
|
|
47
|
+
*/
|
|
48
|
+
const withBrand = withResponseType;
|
|
49
|
+
export { withBrand, withReactiveResponse, withResponseType };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/*
|
|
2
|
+
These are the runtime implementations for the javascript macros that have
|
|
3
|
+
runtime implementations.
|
|
4
|
+
|
|
5
|
+
Not every macro has a runtime implementation, some only make sense in the
|
|
6
|
+
build and always run there.
|
|
7
|
+
|
|
8
|
+
Even when we have runtime implementations, we are still careful to emit static
|
|
9
|
+
errors during the build wherever possible, and runtime errors when necessary,
|
|
10
|
+
so that you're not surprised when you switch from runtime-mode to compile-time
|
|
11
|
+
mode.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
// This is here as a compile target for `getConfig` and `getOwnConfig` when
|
|
15
|
+
// we're in runtime mode. This is not public API to call from your own code.
|
|
16
|
+
function config(packageRoot) {
|
|
17
|
+
return runtimeConfig.packages[packageRoot];
|
|
18
|
+
}
|
|
19
|
+
function getGlobalConfig() {
|
|
20
|
+
return runtimeConfig.global;
|
|
21
|
+
}
|
|
22
|
+
const runtimeConfig = initializeRuntimeMacrosConfig();
|
|
23
|
+
|
|
24
|
+
// this exists to be targeted by our babel plugin
|
|
25
|
+
function initializeRuntimeMacrosConfig() {
|
|
26
|
+
return {
|
|
27
|
+
"packages": {},
|
|
28
|
+
"global": {
|
|
29
|
+
"@embroider/macros": {
|
|
30
|
+
"isTesting": false
|
|
31
|
+
},
|
|
32
|
+
"WarpDrive": {
|
|
33
|
+
"debug": {
|
|
34
|
+
"DEBUG_RELATIONSHIP_NOTIFICATIONS": false,
|
|
35
|
+
"LOG_CACHE": false,
|
|
36
|
+
"LOG_CACHE_POLICY": false,
|
|
37
|
+
"LOG_GRAPH": false,
|
|
38
|
+
"LOG_IDENTIFIERS": false,
|
|
39
|
+
"LOG_INSTANCE_CACHE": false,
|
|
40
|
+
"LOG_METRIC_COUNTS": false,
|
|
41
|
+
"LOG_MUTATIONS": false,
|
|
42
|
+
"LOG_NOTIFICATIONS": false,
|
|
43
|
+
"LOG_OPERATIONS": false,
|
|
44
|
+
"LOG_PAYLOADS": false,
|
|
45
|
+
"LOG_REACT_SIGNAL_INTEGRATION": false,
|
|
46
|
+
"LOG_REQUESTS": false,
|
|
47
|
+
"LOG_REQUEST_STATUS": false,
|
|
48
|
+
"__INTERNAL_LOG_NATIVE_MAP_SET_COUNTS": false
|
|
49
|
+
},
|
|
50
|
+
"polyfillUUID": false,
|
|
51
|
+
"includeDataAdapter": true,
|
|
52
|
+
"compatWith": null,
|
|
53
|
+
"deprecations": {
|
|
54
|
+
"DEPRECATE_CATCH_ALL": true,
|
|
55
|
+
"DEPRECATE_COMPUTED_CHAINS": true,
|
|
56
|
+
"DEPRECATE_EMBER_INFLECTOR": true,
|
|
57
|
+
"DEPRECATE_LEGACY_IMPORTS": true,
|
|
58
|
+
"DEPRECATE_MANY_ARRAY_DUPLICATES": true,
|
|
59
|
+
"DEPRECATE_NON_STRICT_ID": true,
|
|
60
|
+
"DEPRECATE_NON_STRICT_TYPES": true,
|
|
61
|
+
"DEPRECATE_NON_UNIQUE_PAYLOADS": true,
|
|
62
|
+
"DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE": true,
|
|
63
|
+
"DEPRECATE_STORE_EXTENDS_EMBER_OBJECT": true,
|
|
64
|
+
"DEPRECATE_TRACKING_PACKAGE": true,
|
|
65
|
+
"DISABLE_7X_DEPRECATIONS": true,
|
|
66
|
+
"ENABLE_LEGACY_REQUEST_METHODS": true,
|
|
67
|
+
"ENABLE_LEGACY_SCHEMA_SERVICE": true
|
|
68
|
+
},
|
|
69
|
+
"features": {
|
|
70
|
+
"ENFORCE_STRICT_RESOURCE_FINALIZATION": false,
|
|
71
|
+
"JSON_API_CACHE_VALIDATION_ERRORS": false,
|
|
72
|
+
"SAMPLE_FEATURE_FLAG": null
|
|
73
|
+
},
|
|
74
|
+
"activeLogging": {
|
|
75
|
+
"DEBUG_RELATIONSHIP_NOTIFICATIONS": true,
|
|
76
|
+
"LOG_CACHE": true,
|
|
77
|
+
"LOG_CACHE_POLICY": true,
|
|
78
|
+
"LOG_GRAPH": true,
|
|
79
|
+
"LOG_IDENTIFIERS": true,
|
|
80
|
+
"LOG_INSTANCE_CACHE": true,
|
|
81
|
+
"LOG_METRIC_COUNTS": true,
|
|
82
|
+
"LOG_MUTATIONS": true,
|
|
83
|
+
"LOG_NOTIFICATIONS": true,
|
|
84
|
+
"LOG_OPERATIONS": true,
|
|
85
|
+
"LOG_PAYLOADS": true,
|
|
86
|
+
"LOG_REACT_SIGNAL_INTEGRATION": true,
|
|
87
|
+
"LOG_REQUESTS": true,
|
|
88
|
+
"LOG_REQUEST_STATUS": true,
|
|
89
|
+
"__INTERNAL_LOG_NATIVE_MAP_SET_COUNTS": true
|
|
90
|
+
},
|
|
91
|
+
"env": {
|
|
92
|
+
"TESTING": true,
|
|
93
|
+
"PRODUCTION": false,
|
|
94
|
+
"DEBUG": true,
|
|
95
|
+
"IS_RECORDING": false,
|
|
96
|
+
"IS_CI": true,
|
|
97
|
+
"SHOULD_RECORD": false
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function updaterMethods() {
|
|
104
|
+
return {
|
|
105
|
+
config,
|
|
106
|
+
getGlobalConfig,
|
|
107
|
+
setConfig(packageRoot, value) {
|
|
108
|
+
runtimeConfig.packages[packageRoot] = value;
|
|
109
|
+
},
|
|
110
|
+
setGlobalConfig(key, value) {
|
|
111
|
+
runtimeConfig.global[key] = value;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// this is how runtime config can get injected at boot. I'm not sure yet if this
|
|
117
|
+
// should be public API, but we certainly need it internally to set things like
|
|
118
|
+
// the global fastboot.isRunning.
|
|
119
|
+
//
|
|
120
|
+
// consumers of this API push a function onto
|
|
121
|
+
// window._embroider_macros_runtime_config. The function is given four methods
|
|
122
|
+
// which allow it to read and write the per-package and global configs. The
|
|
123
|
+
// reason for allowing both read & write is that merging strategies are up to
|
|
124
|
+
// each consumers -- read first, then merge, then write.
|
|
125
|
+
//
|
|
126
|
+
// For an example user of this API, see where we generate
|
|
127
|
+
// embroider_macros_fastboot_init.js' in @embroider/core.
|
|
128
|
+
let updaters = typeof window !== 'undefined' ? window._embroider_macros_runtime_config : undefined;
|
|
129
|
+
if (updaters) {
|
|
130
|
+
let methods = updaterMethods();
|
|
131
|
+
for (let updater of updaters) {
|
|
132
|
+
updater(methods);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
export { getGlobalConfig as g };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { D as DISPOSE, d as defineGate, q as defineNonEnumerableSignal, j as defineSignal, k as entangleSignal, t as gate, u as memoized, n as notifyInternalSignal, p as peekInternalSignal, r as signal, o as waitFor, w as withSignalStore } from "../-leaked-DjMeRqdU.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { C as CacheHandler, R as RecordArrayManager, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, l as createLegacyManyArray, e as ensureStringId, f as fastPush, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, r as recordIdentifierFor, j as setRecordIdentifier, s as storeFor } from "../index-C_EEmn_3.js";
|