@warp-drive/core 5.8.0-alpha.3 → 5.8.0-alpha.32
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/graph/-private/-edge-definition.d.ts +12 -2
- package/declarations/index.d.ts +90 -4
- package/declarations/reactive/-private/document.d.ts +58 -46
- 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 -7
- package/declarations/request/-private/types.d.ts +1 -1
- package/declarations/request.d.ts +47 -0
- 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 +6 -4
- package/declarations/store/-private/managers/notification-manager.d.ts +1 -1
- package/declarations/store/-private/new-core-tmp/promise-state.d.ts +1 -0
- package/declarations/store/-private/new-core-tmp/request-state.d.ts +1 -1
- package/declarations/store/-private/store-service.d.ts +43 -64
- package/declarations/store/-private.d.ts +0 -1
- package/declarations/store/-types/q/cache-capabilities-manager.d.ts +1 -1
- package/declarations/store/deprecated/-private.d.ts +1 -1
- 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 +33 -9
- 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/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/graph/-private.js +13 -4
- package/dist/{request-state-CUuZzgvE.js → index-D4si_DxB.js} +10010 -8843
- package/dist/index.js +6 -382
- package/dist/reactive.js +4 -778
- package/dist/{context-C_7OLieY.js → request-oqoLC9rz.js} +219 -172
- package/dist/request.js +1 -1
- package/dist/store/-private.js +1 -1
- package/dist/store.js +1 -533
- 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/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-C3x8YXzL.js +181 -0
- package/dist/unpkg/dev/configure.js +1 -0
- package/dist/unpkg/dev/declarations/build-config/babel-macros.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/canary-features.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/debugging.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/deprecations.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/env.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/macros.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config.d.ts +18 -0
- package/dist/unpkg/dev/declarations/configure.d.ts +7 -0
- package/dist/unpkg/dev/declarations/graph/-private/-diff.d.ts +19 -0
- package/dist/unpkg/dev/declarations/graph/-private/-edge-definition.d.ts +149 -0
- package/dist/unpkg/dev/declarations/graph/-private/-state.d.ts +9 -0
- package/dist/unpkg/dev/declarations/graph/-private/-utils.d.ts +25 -0
- package/dist/unpkg/dev/declarations/graph/-private/coerce-id.d.ts +4 -0
- package/dist/unpkg/dev/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +6 -0
- package/dist/unpkg/dev/declarations/graph/-private/edges/collection.d.ts +39 -0
- package/dist/unpkg/dev/declarations/graph/-private/edges/implicit.d.ts +43 -0
- package/dist/unpkg/dev/declarations/graph/-private/edges/resource.d.ts +23 -0
- package/dist/unpkg/dev/declarations/graph/-private/graph.d.ts +56 -0
- package/dist/unpkg/dev/declarations/graph/-private/normalize-link.d.ts +2 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/add-to-related-records.d.ts +4 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/merge-identifier.d.ts +3 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/remove-from-related-records.d.ts +4 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/replace-related-record.d.ts +3 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/replace-related-records.d.ts +7 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/update-relationship.d.ts +9 -0
- package/dist/unpkg/dev/declarations/graph/-private.d.ts +13 -0
- package/dist/unpkg/dev/declarations/index.d.ts +100 -0
- package/dist/unpkg/dev/declarations/reactive/-private/default-mode.d.ts +73 -0
- package/dist/unpkg/dev/declarations/reactive/-private/document.d.ts +142 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/extension.d.ts +8 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/get-field-key.d.ts +8 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/managed-array.d.ts +18 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/managed-object.d.ts +17 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/many-array-manager.d.ts +19 -0
- package/dist/unpkg/dev/declarations/reactive/-private/hooks.d.ts +5 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/alias-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/array-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/attribute-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/belongs-to-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/collection-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/derived-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/generic-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/has-many-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/hash-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/identity-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/local-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/object-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/resource-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/schema-array-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/schema-object-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/record.d.ts +83 -0
- package/dist/unpkg/dev/declarations/reactive/-private/schema.d.ts +326 -0
- package/dist/unpkg/dev/declarations/reactive/-private/symbols.d.ts +5 -0
- package/dist/unpkg/dev/declarations/reactive/-private.d.ts +2 -0
- package/dist/unpkg/dev/declarations/reactive.d.ts +287 -0
- package/dist/unpkg/dev/declarations/request/-private/context.d.ts +39 -0
- package/dist/unpkg/dev/declarations/request/-private/debug.d.ts +4 -0
- package/dist/unpkg/dev/declarations/request/-private/fetch.d.ts +33 -0
- package/dist/unpkg/dev/declarations/request/-private/future.d.ts +7 -0
- package/dist/unpkg/dev/declarations/request/-private/manager.d.ts +158 -0
- package/dist/unpkg/dev/declarations/request/-private/promise-cache.d.ts +28 -0
- package/dist/unpkg/dev/declarations/request/-private/types.d.ts +234 -0
- package/dist/unpkg/dev/declarations/request/-private/utils.d.ts +57 -0
- package/dist/unpkg/dev/declarations/request.d.ts +52 -0
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/handler.d.ts +56 -0
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/types.d.ts +98 -0
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/utils.d.ts +31 -0
- package/dist/unpkg/dev/declarations/store/-private/caches/instance-cache.d.ts +58 -0
- package/dist/unpkg/dev/declarations/store/-private/caches/resource-utils.d.ts +9 -0
- package/dist/unpkg/dev/declarations/store/-private/debug/utils.d.ts +7 -0
- package/dist/unpkg/dev/declarations/store/-private/default-cache-policy.d.ts +387 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-capabilities-manager.d.ts +34 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-key-manager.d.ts +304 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-manager.d.ts +380 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/notification-manager.d.ts +83 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/record-array-manager.d.ts +100 -0
- package/dist/unpkg/dev/declarations/store/-private/network/request-cache.d.ts +103 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +24 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/promise-state.d.ts +264 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +138 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +154 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +56 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/request-state.d.ts +372 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/request-subscription.d.ts +177 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/-utils.d.ts +80 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-live-array.d.ts +81 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-many-array.d.ts +133 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-query.d.ts +81 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +3 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/resource-array.d.ts +67 -0
- package/dist/unpkg/dev/declarations/store/-private/store-service.d.ts +874 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/coerce-id.d.ts +4 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/construct-resource.d.ts +6 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/is-non-empty-string.d.ts +1 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/normalize-model-name.d.ts +1 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/uuid-polyfill.d.ts +1 -0
- package/dist/unpkg/dev/declarations/store/-private.d.ts +29 -0
- package/dist/unpkg/dev/declarations/store/-types/q/cache-capabilities-manager.d.ts +90 -0
- package/dist/unpkg/dev/declarations/store/-types/q/identifier.d.ts +23 -0
- package/dist/unpkg/dev/declarations/store/-types/q/record-instance.d.ts +22 -0
- package/dist/unpkg/dev/declarations/store/-types/q/store.d.ts +31 -0
- package/dist/unpkg/dev/declarations/store/deprecated/-private.d.ts +223 -0
- package/dist/unpkg/dev/declarations/store/deprecated/store.d.ts +784 -0
- package/dist/unpkg/dev/declarations/store.d.ts +2 -0
- package/dist/unpkg/dev/declarations/types/-private.d.ts +22 -0
- package/dist/unpkg/dev/declarations/types/cache/aliases.d.ts +1 -0
- package/dist/unpkg/dev/declarations/types/cache/change.d.ts +6 -0
- package/dist/unpkg/dev/declarations/types/cache/mutations.d.ts +38 -0
- package/dist/unpkg/dev/declarations/types/cache/operations.d.ts +168 -0
- package/dist/unpkg/dev/declarations/types/cache/relationship.d.ts +13 -0
- package/dist/unpkg/dev/declarations/types/cache.d.ts +429 -0
- package/dist/unpkg/dev/declarations/types/graph.d.ts +47 -0
- package/dist/unpkg/dev/declarations/types/identifier.d.ts +86 -0
- package/dist/unpkg/dev/declarations/types/json/raw.d.ts +6 -0
- package/dist/unpkg/dev/declarations/types/params.d.ts +8 -0
- package/dist/unpkg/dev/declarations/types/record.d.ts +269 -0
- package/dist/unpkg/dev/declarations/types/request.d.ts +367 -0
- package/dist/unpkg/dev/declarations/types/runtime.d.ts +14 -0
- package/dist/unpkg/dev/declarations/types/schema/concepts.d.ts +23 -0
- package/dist/unpkg/dev/declarations/types/schema/fields.d.ts +2200 -0
- package/dist/unpkg/dev/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/dist/unpkg/dev/declarations/types/schema/schema-service.d.ts +380 -0
- package/dist/unpkg/dev/declarations/types/spec/document.d.ts +67 -0
- package/dist/unpkg/dev/declarations/types/spec/error.d.ts +18 -0
- package/dist/unpkg/dev/declarations/types/spec/json-api-raw.d.ts +139 -0
- package/dist/unpkg/dev/declarations/types/symbols.d.ts +78 -0
- package/dist/unpkg/dev/declarations/types/utils.d.ts +5 -0
- package/dist/unpkg/dev/declarations/types.d.ts +11 -0
- package/dist/unpkg/dev/declarations/utils/string.d.ts +47 -0
- package/dist/unpkg/dev/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/unpkg/dev/graph/-private.js +3374 -0
- package/dist/unpkg/dev/index-D4si_DxB.js +11746 -0
- package/dist/unpkg/dev/index.js +8 -0
- package/dist/unpkg/dev/reactive/-private.js +1 -0
- package/dist/unpkg/dev/reactive.js +129 -0
- package/dist/unpkg/dev/request-oqoLC9rz.js +725 -0
- package/dist/unpkg/dev/request.js +1 -0
- package/dist/unpkg/dev/store/-private.js +2 -0
- package/dist/unpkg/dev/store.js +1 -0
- package/dist/unpkg/dev/symbols-sql1_mdx.js +39 -0
- package/dist/unpkg/dev/types/-private.js +79 -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 +63 -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 +92 -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-C3x8YXzL.js +181 -0
- package/dist/unpkg/dev-deprecated/configure.js +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/babel-macros.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/canary-features.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/debugging.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/deprecations.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/env.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/macros.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config.d.ts +18 -0
- package/dist/unpkg/dev-deprecated/declarations/configure.d.ts +7 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-diff.d.ts +19 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-edge-definition.d.ts +149 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-state.d.ts +9 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-utils.d.ts +25 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/coerce-id.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +6 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/collection.d.ts +39 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/implicit.d.ts +43 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/resource.d.ts +23 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/graph.d.ts +56 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/normalize-link.d.ts +2 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/add-to-related-records.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/merge-identifier.d.ts +3 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/remove-from-related-records.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/replace-related-record.d.ts +3 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/replace-related-records.d.ts +7 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/update-relationship.d.ts +9 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private.d.ts +13 -0
- package/dist/unpkg/dev-deprecated/declarations/index.d.ts +100 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/default-mode.d.ts +73 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/document.d.ts +142 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/extension.d.ts +8 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/get-field-key.d.ts +8 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/managed-array.d.ts +18 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/managed-object.d.ts +17 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/many-array-manager.d.ts +19 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/hooks.d.ts +5 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/alias-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/array-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/attribute-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/belongs-to-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/collection-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/derived-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/generic-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/has-many-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/hash-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/identity-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/local-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/object-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/resource-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/schema-array-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/schema-object-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/record.d.ts +83 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/schema.d.ts +326 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/symbols.d.ts +5 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private.d.ts +2 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive.d.ts +287 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/context.d.ts +39 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/debug.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/fetch.d.ts +33 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/future.d.ts +7 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/manager.d.ts +158 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/promise-cache.d.ts +28 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/types.d.ts +234 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/utils.d.ts +57 -0
- package/dist/unpkg/dev-deprecated/declarations/request.d.ts +52 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/handler.d.ts +56 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/types.d.ts +98 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/utils.d.ts +31 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/caches/instance-cache.d.ts +58 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/caches/resource-utils.d.ts +9 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/debug/utils.d.ts +7 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/default-cache-policy.d.ts +387 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-capabilities-manager.d.ts +34 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-key-manager.d.ts +304 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-manager.d.ts +380 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/notification-manager.d.ts +83 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/record-array-manager.d.ts +100 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/network/request-cache.d.ts +103 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +24 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/promise-state.d.ts +264 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +138 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +154 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +56 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/request-state.d.ts +372 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/request-subscription.d.ts +177 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/-utils.d.ts +80 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-live-array.d.ts +81 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-many-array.d.ts +133 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-query.d.ts +81 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +3 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/resource-array.d.ts +67 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/store-service.d.ts +874 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/coerce-id.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/construct-resource.d.ts +6 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/is-non-empty-string.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/normalize-model-name.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/uuid-polyfill.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private.d.ts +29 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/cache-capabilities-manager.d.ts +90 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/identifier.d.ts +23 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/record-instance.d.ts +22 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/store.d.ts +31 -0
- package/dist/unpkg/dev-deprecated/declarations/store/deprecated/-private.d.ts +223 -0
- package/dist/unpkg/dev-deprecated/declarations/store/deprecated/store.d.ts +784 -0
- package/dist/unpkg/dev-deprecated/declarations/store.d.ts +2 -0
- package/dist/unpkg/dev-deprecated/declarations/types/-private.d.ts +22 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/aliases.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/change.d.ts +6 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/mutations.d.ts +38 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/operations.d.ts +168 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/relationship.d.ts +13 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache.d.ts +429 -0
- package/dist/unpkg/dev-deprecated/declarations/types/graph.d.ts +47 -0
- package/dist/unpkg/dev-deprecated/declarations/types/identifier.d.ts +86 -0
- package/dist/unpkg/dev-deprecated/declarations/types/json/raw.d.ts +6 -0
- package/dist/unpkg/dev-deprecated/declarations/types/params.d.ts +8 -0
- package/dist/unpkg/dev-deprecated/declarations/types/record.d.ts +269 -0
- package/dist/unpkg/dev-deprecated/declarations/types/request.d.ts +367 -0
- package/dist/unpkg/dev-deprecated/declarations/types/runtime.d.ts +14 -0
- package/dist/unpkg/dev-deprecated/declarations/types/schema/concepts.d.ts +23 -0
- package/dist/unpkg/dev-deprecated/declarations/types/schema/fields.d.ts +2200 -0
- package/dist/unpkg/dev-deprecated/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/types/schema/schema-service.d.ts +380 -0
- package/dist/unpkg/dev-deprecated/declarations/types/spec/document.d.ts +67 -0
- package/dist/unpkg/dev-deprecated/declarations/types/spec/error.d.ts +18 -0
- package/dist/unpkg/dev-deprecated/declarations/types/spec/json-api-raw.d.ts +139 -0
- package/dist/unpkg/dev-deprecated/declarations/types/symbols.d.ts +78 -0
- package/dist/unpkg/dev-deprecated/declarations/types/utils.d.ts +5 -0
- package/dist/unpkg/dev-deprecated/declarations/types.d.ts +11 -0
- package/dist/unpkg/dev-deprecated/declarations/utils/string.d.ts +47 -0
- package/dist/unpkg/dev-deprecated/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/unpkg/dev-deprecated/graph/-private.js +3374 -0
- package/dist/unpkg/dev-deprecated/index-D4si_DxB.js +11746 -0
- package/dist/unpkg/dev-deprecated/index.js +8 -0
- package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -0
- package/dist/unpkg/dev-deprecated/reactive.js +129 -0
- package/dist/unpkg/dev-deprecated/request-oqoLC9rz.js +725 -0
- package/dist/unpkg/dev-deprecated/request.js +1 -0
- package/dist/unpkg/dev-deprecated/store/-private.js +2 -0
- package/dist/unpkg/dev-deprecated/store.js +1 -0
- package/dist/unpkg/dev-deprecated/symbols-sql1_mdx.js +39 -0
- package/dist/unpkg/dev-deprecated/types/-private.js +79 -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 +63 -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 +92 -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-C3x8YXzL.js +181 -0
- package/dist/unpkg/prod/configure.js +1 -0
- package/dist/unpkg/prod/declarations/build-config/babel-macros.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/canary-features.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/debugging.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/deprecations.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/env.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/macros.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config.d.ts +18 -0
- package/dist/unpkg/prod/declarations/configure.d.ts +7 -0
- package/dist/unpkg/prod/declarations/graph/-private/-diff.d.ts +19 -0
- package/dist/unpkg/prod/declarations/graph/-private/-edge-definition.d.ts +149 -0
- package/dist/unpkg/prod/declarations/graph/-private/-state.d.ts +9 -0
- package/dist/unpkg/prod/declarations/graph/-private/-utils.d.ts +25 -0
- package/dist/unpkg/prod/declarations/graph/-private/coerce-id.d.ts +4 -0
- package/dist/unpkg/prod/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +6 -0
- package/dist/unpkg/prod/declarations/graph/-private/edges/collection.d.ts +39 -0
- package/dist/unpkg/prod/declarations/graph/-private/edges/implicit.d.ts +43 -0
- package/dist/unpkg/prod/declarations/graph/-private/edges/resource.d.ts +23 -0
- package/dist/unpkg/prod/declarations/graph/-private/graph.d.ts +56 -0
- package/dist/unpkg/prod/declarations/graph/-private/normalize-link.d.ts +2 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/add-to-related-records.d.ts +4 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/merge-identifier.d.ts +3 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/remove-from-related-records.d.ts +4 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/replace-related-record.d.ts +3 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/replace-related-records.d.ts +7 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/update-relationship.d.ts +9 -0
- package/dist/unpkg/prod/declarations/graph/-private.d.ts +13 -0
- package/dist/unpkg/prod/declarations/index.d.ts +100 -0
- package/dist/unpkg/prod/declarations/reactive/-private/default-mode.d.ts +73 -0
- package/dist/unpkg/prod/declarations/reactive/-private/document.d.ts +142 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/extension.d.ts +8 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/get-field-key.d.ts +8 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/managed-array.d.ts +18 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/managed-object.d.ts +17 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/many-array-manager.d.ts +19 -0
- package/dist/unpkg/prod/declarations/reactive/-private/hooks.d.ts +5 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/alias-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/array-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/attribute-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/belongs-to-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/collection-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/derived-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/generic-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/has-many-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/hash-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/identity-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/local-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/object-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/resource-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/schema-array-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/schema-object-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/record.d.ts +83 -0
- package/dist/unpkg/prod/declarations/reactive/-private/schema.d.ts +326 -0
- package/dist/unpkg/prod/declarations/reactive/-private/symbols.d.ts +5 -0
- package/dist/unpkg/prod/declarations/reactive/-private.d.ts +2 -0
- package/dist/unpkg/prod/declarations/reactive.d.ts +287 -0
- package/dist/unpkg/prod/declarations/request/-private/context.d.ts +39 -0
- package/dist/unpkg/prod/declarations/request/-private/debug.d.ts +4 -0
- package/dist/unpkg/prod/declarations/request/-private/fetch.d.ts +33 -0
- package/dist/unpkg/prod/declarations/request/-private/future.d.ts +7 -0
- package/dist/unpkg/prod/declarations/request/-private/manager.d.ts +158 -0
- package/dist/unpkg/prod/declarations/request/-private/promise-cache.d.ts +28 -0
- package/dist/unpkg/prod/declarations/request/-private/types.d.ts +234 -0
- package/dist/unpkg/prod/declarations/request/-private/utils.d.ts +57 -0
- package/dist/unpkg/prod/declarations/request.d.ts +52 -0
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/handler.d.ts +56 -0
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/types.d.ts +98 -0
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/utils.d.ts +31 -0
- package/dist/unpkg/prod/declarations/store/-private/caches/instance-cache.d.ts +58 -0
- package/dist/unpkg/prod/declarations/store/-private/caches/resource-utils.d.ts +9 -0
- package/dist/unpkg/prod/declarations/store/-private/debug/utils.d.ts +7 -0
- package/dist/unpkg/prod/declarations/store/-private/default-cache-policy.d.ts +387 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-capabilities-manager.d.ts +34 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-key-manager.d.ts +304 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-manager.d.ts +380 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/notification-manager.d.ts +83 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/record-array-manager.d.ts +100 -0
- package/dist/unpkg/prod/declarations/store/-private/network/request-cache.d.ts +103 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +24 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/promise-state.d.ts +264 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +138 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +154 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +56 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/request-state.d.ts +372 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/request-subscription.d.ts +177 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/-utils.d.ts +80 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-live-array.d.ts +81 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-many-array.d.ts +133 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-query.d.ts +81 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +3 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/resource-array.d.ts +67 -0
- package/dist/unpkg/prod/declarations/store/-private/store-service.d.ts +874 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/coerce-id.d.ts +4 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/construct-resource.d.ts +6 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/is-non-empty-string.d.ts +1 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/normalize-model-name.d.ts +1 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/uuid-polyfill.d.ts +1 -0
- package/dist/unpkg/prod/declarations/store/-private.d.ts +29 -0
- package/dist/unpkg/prod/declarations/store/-types/q/cache-capabilities-manager.d.ts +90 -0
- package/dist/unpkg/prod/declarations/store/-types/q/identifier.d.ts +23 -0
- package/dist/unpkg/prod/declarations/store/-types/q/record-instance.d.ts +22 -0
- package/dist/unpkg/prod/declarations/store/-types/q/store.d.ts +31 -0
- package/dist/unpkg/prod/declarations/store/deprecated/-private.d.ts +223 -0
- package/dist/unpkg/prod/declarations/store/deprecated/store.d.ts +784 -0
- package/dist/unpkg/prod/declarations/store.d.ts +2 -0
- package/dist/unpkg/prod/declarations/types/-private.d.ts +22 -0
- package/dist/unpkg/prod/declarations/types/cache/aliases.d.ts +1 -0
- package/dist/unpkg/prod/declarations/types/cache/change.d.ts +6 -0
- package/dist/unpkg/prod/declarations/types/cache/mutations.d.ts +38 -0
- package/dist/unpkg/prod/declarations/types/cache/operations.d.ts +168 -0
- package/dist/unpkg/prod/declarations/types/cache/relationship.d.ts +13 -0
- package/dist/unpkg/prod/declarations/types/cache.d.ts +429 -0
- package/dist/unpkg/prod/declarations/types/graph.d.ts +47 -0
- package/dist/unpkg/prod/declarations/types/identifier.d.ts +86 -0
- package/dist/unpkg/prod/declarations/types/json/raw.d.ts +6 -0
- package/dist/unpkg/prod/declarations/types/params.d.ts +8 -0
- package/dist/unpkg/prod/declarations/types/record.d.ts +269 -0
- package/dist/unpkg/prod/declarations/types/request.d.ts +367 -0
- package/dist/unpkg/prod/declarations/types/runtime.d.ts +14 -0
- package/dist/unpkg/prod/declarations/types/schema/concepts.d.ts +23 -0
- package/dist/unpkg/prod/declarations/types/schema/fields.d.ts +2200 -0
- package/dist/unpkg/prod/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/dist/unpkg/prod/declarations/types/schema/schema-service.d.ts +380 -0
- package/dist/unpkg/prod/declarations/types/spec/document.d.ts +67 -0
- package/dist/unpkg/prod/declarations/types/spec/error.d.ts +18 -0
- package/dist/unpkg/prod/declarations/types/spec/json-api-raw.d.ts +139 -0
- package/dist/unpkg/prod/declarations/types/symbols.d.ts +78 -0
- package/dist/unpkg/prod/declarations/types/utils.d.ts +5 -0
- package/dist/unpkg/prod/declarations/types.d.ts +11 -0
- package/dist/unpkg/prod/declarations/utils/string.d.ts +47 -0
- package/dist/unpkg/prod/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/unpkg/prod/graph/-private.js +3374 -0
- package/dist/unpkg/prod/index-D4si_DxB.js +11746 -0
- package/dist/unpkg/prod/index.js +8 -0
- package/dist/unpkg/prod/reactive/-private.js +1 -0
- package/dist/unpkg/prod/reactive.js +129 -0
- package/dist/unpkg/prod/request-oqoLC9rz.js +725 -0
- package/dist/unpkg/prod/request.js +1 -0
- package/dist/unpkg/prod/store/-private.js +2 -0
- package/dist/unpkg/prod/store.js +1 -0
- package/dist/unpkg/prod/symbols-sql1_mdx.js +39 -0
- package/dist/unpkg/prod/types/-private.js +79 -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 +63 -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 +92 -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-C3x8YXzL.js +181 -0
- package/dist/unpkg/prod-deprecated/configure.js +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/babel-macros.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/canary-features.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/debugging.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/deprecations.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/env.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/macros.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config.d.ts +18 -0
- package/dist/unpkg/prod-deprecated/declarations/configure.d.ts +7 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-diff.d.ts +19 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-edge-definition.d.ts +149 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-state.d.ts +9 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-utils.d.ts +25 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/coerce-id.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +6 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/collection.d.ts +39 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/implicit.d.ts +43 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/resource.d.ts +23 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/graph.d.ts +56 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/normalize-link.d.ts +2 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/add-to-related-records.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/merge-identifier.d.ts +3 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/remove-from-related-records.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/replace-related-record.d.ts +3 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/replace-related-records.d.ts +7 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/update-relationship.d.ts +9 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private.d.ts +13 -0
- package/dist/unpkg/prod-deprecated/declarations/index.d.ts +100 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/default-mode.d.ts +73 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/document.d.ts +142 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/extension.d.ts +8 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/get-field-key.d.ts +8 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/managed-array.d.ts +18 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/managed-object.d.ts +17 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/many-array-manager.d.ts +19 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/hooks.d.ts +5 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/alias-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/array-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/attribute-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/belongs-to-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/collection-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/derived-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/generic-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/has-many-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/hash-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/identity-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/local-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/object-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/resource-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/schema-array-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/schema-object-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/record.d.ts +83 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/schema.d.ts +326 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/symbols.d.ts +5 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private.d.ts +2 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive.d.ts +287 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/context.d.ts +39 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/debug.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/fetch.d.ts +33 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/future.d.ts +7 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/manager.d.ts +158 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/promise-cache.d.ts +28 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/types.d.ts +234 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/utils.d.ts +57 -0
- package/dist/unpkg/prod-deprecated/declarations/request.d.ts +52 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/handler.d.ts +56 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/types.d.ts +98 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/utils.d.ts +31 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/caches/instance-cache.d.ts +58 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/caches/resource-utils.d.ts +9 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/debug/utils.d.ts +7 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/default-cache-policy.d.ts +387 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-capabilities-manager.d.ts +34 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-key-manager.d.ts +304 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-manager.d.ts +380 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/notification-manager.d.ts +83 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/record-array-manager.d.ts +100 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/network/request-cache.d.ts +103 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +24 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/promise-state.d.ts +264 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +138 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +154 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +56 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/request-state.d.ts +372 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/request-subscription.d.ts +177 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/-utils.d.ts +80 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-live-array.d.ts +81 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-many-array.d.ts +133 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-query.d.ts +81 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +3 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/resource-array.d.ts +67 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/store-service.d.ts +874 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/coerce-id.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/construct-resource.d.ts +6 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/is-non-empty-string.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/normalize-model-name.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/uuid-polyfill.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private.d.ts +29 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/cache-capabilities-manager.d.ts +90 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/identifier.d.ts +23 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/record-instance.d.ts +22 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/store.d.ts +31 -0
- package/dist/unpkg/prod-deprecated/declarations/store/deprecated/-private.d.ts +223 -0
- package/dist/unpkg/prod-deprecated/declarations/store/deprecated/store.d.ts +784 -0
- package/dist/unpkg/prod-deprecated/declarations/store.d.ts +2 -0
- package/dist/unpkg/prod-deprecated/declarations/types/-private.d.ts +22 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/aliases.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/change.d.ts +6 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/mutations.d.ts +38 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/operations.d.ts +168 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/relationship.d.ts +13 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache.d.ts +429 -0
- package/dist/unpkg/prod-deprecated/declarations/types/graph.d.ts +47 -0
- package/dist/unpkg/prod-deprecated/declarations/types/identifier.d.ts +86 -0
- package/dist/unpkg/prod-deprecated/declarations/types/json/raw.d.ts +6 -0
- package/dist/unpkg/prod-deprecated/declarations/types/params.d.ts +8 -0
- package/dist/unpkg/prod-deprecated/declarations/types/record.d.ts +269 -0
- package/dist/unpkg/prod-deprecated/declarations/types/request.d.ts +367 -0
- package/dist/unpkg/prod-deprecated/declarations/types/runtime.d.ts +14 -0
- package/dist/unpkg/prod-deprecated/declarations/types/schema/concepts.d.ts +23 -0
- package/dist/unpkg/prod-deprecated/declarations/types/schema/fields.d.ts +2200 -0
- package/dist/unpkg/prod-deprecated/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/types/schema/schema-service.d.ts +380 -0
- package/dist/unpkg/prod-deprecated/declarations/types/spec/document.d.ts +67 -0
- package/dist/unpkg/prod-deprecated/declarations/types/spec/error.d.ts +18 -0
- package/dist/unpkg/prod-deprecated/declarations/types/spec/json-api-raw.d.ts +139 -0
- package/dist/unpkg/prod-deprecated/declarations/types/symbols.d.ts +78 -0
- package/dist/unpkg/prod-deprecated/declarations/types/utils.d.ts +5 -0
- package/dist/unpkg/prod-deprecated/declarations/types.d.ts +11 -0
- package/dist/unpkg/prod-deprecated/declarations/utils/string.d.ts +47 -0
- package/dist/unpkg/prod-deprecated/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/unpkg/prod-deprecated/graph/-private.js +3374 -0
- package/dist/unpkg/prod-deprecated/index-D4si_DxB.js +11746 -0
- package/dist/unpkg/prod-deprecated/index.js +8 -0
- package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -0
- package/dist/unpkg/prod-deprecated/reactive.js +129 -0
- package/dist/unpkg/prod-deprecated/request-oqoLC9rz.js +725 -0
- package/dist/unpkg/prod-deprecated/request.js +1 -0
- package/dist/unpkg/prod-deprecated/store/-private.js +2 -0
- package/dist/unpkg/prod-deprecated/store.js +1 -0
- package/dist/unpkg/prod-deprecated/symbols-sql1_mdx.js +39 -0
- package/dist/unpkg/prod-deprecated/types/-private.js +79 -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 +63 -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 +92 -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 +3 -3
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as createDeferred, g as getPromiseResult, s as setPromiseResult, w as withBrand, h as withReactiveResponse, f as withResponseType } from "./request-oqoLC9rz.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { C as CacheHandler, D as DISPOSE, R as RecordArrayManager, B 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, I as consumeInternalSignal, F as createInternalMemo, l as createLegacyManyArray, p as createRequestSubscription, z as defineGate, A as defineNonEnumerableSignal, y as defineSignal, e as ensureStringId, x as entangleInitiallyStaleSignal, w as entangleSignal, f as fastPush, v as gate, J as getOrCreateInternalSignal, q as getRequestState, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, u as memoized, H as notifyInternalSignal, E as peekInternalSignal, r as recordIdentifierFor, j as setRecordIdentifier, t as signal, s as storeFor, G as withSignalStore } from "../index-D4si_DxB.js";
|
|
2
|
+
export { A as ARRAY_SIGNAL, O as OBJECT_SIGNAL, w as waitFor } from "../configure-C3x8YXzL.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { D as DefaultCachePolicy, p as parseCacheControl } from "./default-cache-policy-D7_u4YRH.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getOrSetGlobal } from './types/-private.js';
|
|
2
|
+
|
|
3
|
+
///////////////////
|
|
4
|
+
///// WARNING /////
|
|
5
|
+
///////////////////
|
|
6
|
+
|
|
7
|
+
// Great, got your attention with that warning didn't we?
|
|
8
|
+
// Good. Here's the deal: typescript treats symbols as unique types.
|
|
9
|
+
// If by accident a module creating a symbol is processed more than
|
|
10
|
+
// once, the symbol will be different in each processing. This will
|
|
11
|
+
// cause a type error.
|
|
12
|
+
// It could also cause a runtime error if the symbol is used innapropriately.
|
|
13
|
+
// However, this case is extremely hard to hit and would require other things
|
|
14
|
+
// to go wrong first.
|
|
15
|
+
//
|
|
16
|
+
// So, why do the warning? And why do we lie about the types of the symbols?
|
|
17
|
+
//
|
|
18
|
+
// Because we intentionally create multiple copies of them within the types
|
|
19
|
+
// at build time. This is because we rollup our d.ts files in order to give
|
|
20
|
+
// our consumers a better experience.
|
|
21
|
+
//
|
|
22
|
+
// However, no tool today supports rolling up d.ts files with multiple entry
|
|
23
|
+
// points correctly. The tool we use currently (vite-plugin-dts) uses @microsoft/api-extractor
|
|
24
|
+
// which creates a fully unique stand-alone types file per-entry-point. Thus
|
|
25
|
+
// every entry point that uses one of these symbols somewhere will have accidentally
|
|
26
|
+
// created a new symbol type.
|
|
27
|
+
//
|
|
28
|
+
// This cast allows us to rollup these types using this tool while not encountering
|
|
29
|
+
// the unique symbol type issue.
|
|
30
|
+
//
|
|
31
|
+
// Note that none of these symbols are part of the public API, these are used for
|
|
32
|
+
// debugging DX and as a safe way to provide an intimate contract on public objects.
|
|
33
|
+
|
|
34
|
+
const SOURCE = getOrSetGlobal('SOURCE', Symbol('#source'));
|
|
35
|
+
const Destroy = getOrSetGlobal('Destroy', Symbol.dispose || Symbol.for('Dispose'));
|
|
36
|
+
const Checkout = getOrSetGlobal('Checkout', Symbol('Checkout'));
|
|
37
|
+
const Commit = getOrSetGlobal('Commit', Symbol('Commit'));
|
|
38
|
+
const Context = getOrSetGlobal('Context', Symbol('Context'));
|
|
39
|
+
export { Context as C, Destroy as D, SOURCE as S, Checkout as a, Commit as b };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { macroCondition, getGlobalConfig } from '@embroider/macros';
|
|
2
|
+
const name = "@warp-drive/core";
|
|
3
|
+
const version = "5.8.0-alpha.32";
|
|
4
|
+
|
|
5
|
+
// in testing mode, we utilize globals to ensure only one copy exists of
|
|
6
|
+
// these maps, due to bugs in ember-auto-import
|
|
7
|
+
|
|
8
|
+
const GlobalRef = globalThis;
|
|
9
|
+
const UniversalCache = GlobalRef.__warpDrive_universalCache = GlobalRef.__warpDrive_universalCache ?? {};
|
|
10
|
+
|
|
11
|
+
// in order to support mirror packages, we ensure that each
|
|
12
|
+
// unique package name has its own global cache
|
|
13
|
+
GlobalRef[name] = GlobalRef[name] ?? {
|
|
14
|
+
__version: version
|
|
15
|
+
};
|
|
16
|
+
const GlobalSink = GlobalRef[name];
|
|
17
|
+
if (macroCondition(getGlobalConfig().WarpDrive.env.DEBUG)) {
|
|
18
|
+
if (GlobalSink.__version !== version) {
|
|
19
|
+
throw new Error('Multiple versions of WarpDrive detected, the application will malfunction.');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const ModuleScopedCaches = GlobalSink.__warpDrive_ModuleScopedCaches ?? {};
|
|
23
|
+
if (macroCondition(getGlobalConfig().WarpDrive.env.TESTING)) {
|
|
24
|
+
if (!GlobalSink.__warpDrive_ModuleScopedCaches) {
|
|
25
|
+
GlobalSink.__warpDrive_ModuleScopedCaches = ModuleScopedCaches;
|
|
26
|
+
} else {
|
|
27
|
+
// eslint-disable-next-line no-console
|
|
28
|
+
console.warn(`
|
|
29
|
+
Multiple copies of WarpDrive have been detected. This may be due to a bug in ember-auto-import
|
|
30
|
+
in which test assets get their own copy of some v2-addons. This can cause the application to
|
|
31
|
+
malfunction as each copy will maintain its own separate state.`);
|
|
32
|
+
}
|
|
33
|
+
} else {
|
|
34
|
+
if (GlobalSink.__warpDrive_hasOtherCopy) {
|
|
35
|
+
throw new Error('Multiple copies of WarpDrive detected, the application will malfunction.');
|
|
36
|
+
}
|
|
37
|
+
GlobalSink.__warpDrive_hasOtherCopy = true;
|
|
38
|
+
}
|
|
39
|
+
function getOrSetGlobal(key, value) {
|
|
40
|
+
if (macroCondition(getGlobalConfig().WarpDrive.env.TESTING)) {
|
|
41
|
+
const existing = ModuleScopedCaches[key];
|
|
42
|
+
if (existing === undefined) {
|
|
43
|
+
return ModuleScopedCaches[key] = value;
|
|
44
|
+
} else {
|
|
45
|
+
return existing;
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function peekTransient(key) {
|
|
52
|
+
const globalKey = `(transient) ${key}`;
|
|
53
|
+
return ModuleScopedCaches[globalKey] ?? null;
|
|
54
|
+
}
|
|
55
|
+
function setTransient(key, value) {
|
|
56
|
+
const globalKey = `(transient) ${key}`;
|
|
57
|
+
return ModuleScopedCaches[globalKey] = value;
|
|
58
|
+
}
|
|
59
|
+
function getOrSetUniversal(key, value) {
|
|
60
|
+
if (macroCondition(getGlobalConfig().WarpDrive.env.TESTING)) {
|
|
61
|
+
const existing = UniversalCache[key];
|
|
62
|
+
if (existing === undefined) {
|
|
63
|
+
return UniversalCache[key] = value;
|
|
64
|
+
} else {
|
|
65
|
+
return existing;
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function peekUniversalTransient(key) {
|
|
72
|
+
const globalKey = `(transient) ${key}`;
|
|
73
|
+
return UniversalCache[globalKey] ?? null;
|
|
74
|
+
}
|
|
75
|
+
function setUniversalTransient(key, value) {
|
|
76
|
+
const globalKey = `(transient) ${key}`;
|
|
77
|
+
return UniversalCache[globalKey] = value;
|
|
78
|
+
}
|
|
79
|
+
export { getOrSetGlobal, getOrSetUniversal, peekTransient, peekUniversalTransient, setTransient, setUniversalTransient };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { macroCondition, getGlobalConfig } from '@embroider/macros';
|
|
2
|
+
|
|
3
|
+
// provided for additional debuggability
|
|
4
|
+
const DEBUG_CLIENT_ORIGINATED = Symbol('record-originated-on-client');
|
|
5
|
+
const DEBUG_KEY_TYPE = Symbol('key-type');
|
|
6
|
+
const DEBUG_STALE_CACHE_OWNER = Symbol('warpDriveStaleCache');
|
|
7
|
+
function ProdSymbol(str, debugStr) {
|
|
8
|
+
return macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? Symbol(debugStr) : str;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// also present in production
|
|
12
|
+
const CACHE_OWNER = ProdSymbol('__$co', 'CACHE_OWNER');
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A referentially stable object with a unique string (lid) that can be used
|
|
16
|
+
* as a reference to request data in the cache.
|
|
17
|
+
*
|
|
18
|
+
* Only requests that are assigned a RequestKey are retrievable/replayable from
|
|
19
|
+
* the cache, though requests without RequestKeys may still update cache state.
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/** @deprecated use {@link RequestKey} */
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Used when an ResourceKey is known to be the stable version
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Used when a ResourceKey was not created locally as part
|
|
32
|
+
* of a call to store.createRecord
|
|
33
|
+
*
|
|
34
|
+
* Distinguishing between this ResourceKey and one for a client created
|
|
35
|
+
* resource that was created with an ID is generally speaking not possible
|
|
36
|
+
* at runtime, so anything with an ID typically narrows to this.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/** @deprecated use {@link PersistedResourceKey} */
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Used when a ResourceKey was created locally
|
|
43
|
+
* (by a call to store.createRecord).
|
|
44
|
+
*
|
|
45
|
+
* It is possible in rare circumstances to have a ResourceKey
|
|
46
|
+
* that is not for a new record but does not have an ID. This would
|
|
47
|
+
* happen if a user intentionally created one for use with a secondary-index
|
|
48
|
+
* prior to the record having been fully loaded.
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* A referentially stable object with a unique string (lid) that can be used
|
|
53
|
+
* as a reference to data in the cache.
|
|
54
|
+
*
|
|
55
|
+
* Every resource has a unique ResourceKey, and ResourceKeys may refer
|
|
56
|
+
* to data that has never been loaded (for instance, in an async relationship).
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/** @deprecated use {@link ResourceKey} */
|
|
62
|
+
|
|
63
|
+
export { CACHE_OWNER, DEBUG_CLIENT_ORIGINATED, DEBUG_KEY_TYPE, DEBUG_STALE_CACHE_OWNER };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records may be anything, They don't even
|
|
3
|
+
* have to be objects.
|
|
4
|
+
*
|
|
5
|
+
* Whatever they are, if they have a Type
|
|
6
|
+
* property, that property will be used by WarpDrive
|
|
7
|
+
* and WarpDrive to provide better type safety and
|
|
8
|
+
* intellisense.
|
|
9
|
+
*
|
|
10
|
+
* @class TypedRecordInstance
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A type utility that extracts the Type if available,
|
|
15
|
+
* otherwise it returns never.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A type utility that extracts the Type if available,
|
|
21
|
+
* otherwise it returns string
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Utility that extracts either resource types or resource paths from a TypedRecordInstance.
|
|
27
|
+
*
|
|
28
|
+
* Its limitations are mostly around its intentional non-recursiveness. It presumes that APIs which
|
|
29
|
+
* implement includes will not allow cyclical include paths, and will collapse includes by type.
|
|
30
|
+
*
|
|
31
|
+
* This follows closer to the JSON:API fields spec than to the includes spec in nature, but in
|
|
32
|
+
* practice it is so impracticle for an API to allow z-algo include paths that this is probably
|
|
33
|
+
* reasonable.
|
|
34
|
+
*
|
|
35
|
+
* We may need to revisit this in the future, opting to either make this restriction optional or
|
|
36
|
+
* to allow for other strategies.
|
|
37
|
+
*
|
|
38
|
+
* There's a 90% chance this particular implementation belongs being in the JSON:API package instead
|
|
39
|
+
* of core-types, but it's here for now.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A utility that provides the union of all ResourceName for all potential
|
|
45
|
+
* includes for the given TypedRecordInstance.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
// ToPaths<ExpandIgnore<T, true>, false>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* A utility that provides the union type of all valid include paths for the given
|
|
53
|
+
* TypedRecordInstance.
|
|
54
|
+
*
|
|
55
|
+
* Cyclical paths are filtered out.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
function createIncludeValidator() {
|
|
60
|
+
return function validateIncludes(includes) {
|
|
61
|
+
return includes;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* A utility that takes two types, K and T, and produces a new type that is a "mask" of T based on K.
|
|
67
|
+
*
|
|
68
|
+
* That's a mouthful, so let's break it down:
|
|
69
|
+
*
|
|
70
|
+
* Let's say you have a User type and an Address type.
|
|
71
|
+
*
|
|
72
|
+
* ```ts
|
|
73
|
+
* interface Address {
|
|
74
|
+
* street: string;
|
|
75
|
+
* city: string;
|
|
76
|
+
* state: string;
|
|
77
|
+
* zip: string;
|
|
78
|
+
* }
|
|
79
|
+
*
|
|
80
|
+
* interface User {
|
|
81
|
+
* name: string;
|
|
82
|
+
* title: string;
|
|
83
|
+
* address: Address;
|
|
84
|
+
* }
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* Now, imagine you want to load a preview of the user with some information about their address,
|
|
88
|
+
* but you don't want to load the entire user or address. You probably want to still ensure
|
|
89
|
+
* the type of the data you do load matches the underlying Address and User types, but doesn't
|
|
90
|
+
* include everything.
|
|
91
|
+
*
|
|
92
|
+
* If you did this manually, you might do something like this:
|
|
93
|
+
*
|
|
94
|
+
* ```ts
|
|
95
|
+
* interface UserPreview {
|
|
96
|
+
* name: string;
|
|
97
|
+
* address: AddressPreview;
|
|
98
|
+
* }
|
|
99
|
+
*
|
|
100
|
+
* interface AddressPreview {
|
|
101
|
+
* city: string;
|
|
102
|
+
* }
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* From a TypeScript performance perspective, this is the best way to approach these preview
|
|
106
|
+
* types, but this is also tedious and error-prone, especially if the User or Address types change.
|
|
107
|
+
*
|
|
108
|
+
* For Address, we could create a validated type using `Pick`:
|
|
109
|
+
*
|
|
110
|
+
* ```ts
|
|
111
|
+
* type AddressPreview = Pick<Address, 'city'>;
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* This ensures that if the Address type changes, our AddressPreview will still be valid.
|
|
115
|
+
* However, for UserPreview, we can't just use `Pick` because the `address` property is of type `Address`,
|
|
116
|
+
* not `AddressPreview`. This is where the `Mask` type comes in.
|
|
117
|
+
*
|
|
118
|
+
* With `Mask`, we define the `UserPreview` in two parts
|
|
119
|
+
* - first, we define the subset of fields we want to include from `User`, using `Pick` or an interface.
|
|
120
|
+
* - then, we use `Mask` to replace the related types of fields like Address with their more limited subset.
|
|
121
|
+
*
|
|
122
|
+
* Here's how we can do it:
|
|
123
|
+
*
|
|
124
|
+
* ```ts
|
|
125
|
+
* // First, we define the base of UserPreview with Pick
|
|
126
|
+
* type UserPreviewBase = Pick<User, 'name' | 'address'>;
|
|
127
|
+
* // Then, we use Mask to replace Address with AddressPreview
|
|
128
|
+
* type UserPreview = Mask<{ address: AddressPreview }, UserPreviewBase>;
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* Now, `UserPreview` will have the `name` field from `User` and the `address` field will be of type `AddressPreview`.
|
|
132
|
+
* This way, if the `User` or `Address` types change, TypeScript will ensure that our `UserPreview` and `AddressPreview`
|
|
133
|
+
* types remain valid and consistent with the underlying types.
|
|
134
|
+
*
|
|
135
|
+
* But what if your app has data with massive interfaces such that the TypeScript performance of this
|
|
136
|
+
* approach becomes a problem? In that case, see {@link Validate}
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* A utility that takes two types, K and T, and ensures that K is a valid subset of T.
|
|
141
|
+
*
|
|
142
|
+
* That's a mouthful, so let's break it down:
|
|
143
|
+
*
|
|
144
|
+
* Let's say you have a User type and an Address type.
|
|
145
|
+
*
|
|
146
|
+
* ```ts
|
|
147
|
+
* interface Address {
|
|
148
|
+
* street: string;
|
|
149
|
+
* city: string;
|
|
150
|
+
* state: string;
|
|
151
|
+
* zip: string;
|
|
152
|
+
* }
|
|
153
|
+
*
|
|
154
|
+
* interface User {
|
|
155
|
+
* name: string;
|
|
156
|
+
* title: string;
|
|
157
|
+
* address: Address;
|
|
158
|
+
* }
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* Now, imagine you want to load a preview of the user with some information about their address,
|
|
162
|
+
* but you don't want to load the entire user or address. You probably want to still ensure
|
|
163
|
+
* the type of the data you do load matches the underlying Address and User types, but doesn't
|
|
164
|
+
* include everything.
|
|
165
|
+
*
|
|
166
|
+
* You might do something like this:
|
|
167
|
+
*
|
|
168
|
+
* ```ts
|
|
169
|
+
* interface UserPreview {
|
|
170
|
+
* name: string;
|
|
171
|
+
* address: AddressPreview;
|
|
172
|
+
* }
|
|
173
|
+
*
|
|
174
|
+
* interface AddressPreview {
|
|
175
|
+
* city: string;
|
|
176
|
+
* }
|
|
177
|
+
* ```
|
|
178
|
+
*
|
|
179
|
+
* From a TypeScript performance perspective, this is the best way to approach these preview
|
|
180
|
+
* types, but this is also error-prone, especially if the User or Address types change.
|
|
181
|
+
*
|
|
182
|
+
* Validate can help ensure that your preview types remain valid.
|
|
183
|
+
*
|
|
184
|
+
* ```ts
|
|
185
|
+
* type IsValidUserPreview = Validate<UserPreview, User>; // This will be valid
|
|
186
|
+
* ```
|
|
187
|
+
*
|
|
188
|
+
* For help creating subsets of types, see {@link Mask}
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
export { createIncludeValidator };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { getOrSetUniversal, getOrSetGlobal } from './-private.js';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4
|
+
|
|
5
|
+
const SkipCache = getOrSetUniversal('SkipCache', Symbol.for('wd:skip-cache'));
|
|
6
|
+
const EnableHydration = getOrSetUniversal('EnableHydration', Symbol.for('wd:enable-hydration'));
|
|
7
|
+
const IS_FUTURE = getOrSetGlobal('IS_FUTURE', Symbol('IS_FUTURE'));
|
|
8
|
+
const STRUCTURED = getOrSetGlobal('DOC', Symbol('DOC'));
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Use these options to adjust {@link CacheHandler} behavior for a request
|
|
12
|
+
* via {@link RequestInfo.cacheOptions}.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* When a {@link Future} resolves, it returns an object
|
|
18
|
+
* containing the original {@link RequestInfo | request},
|
|
19
|
+
* the {@link Response | response} set by the handler chain (if any), and
|
|
20
|
+
* the processed content.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* When a {@link Future} rejects, it throws either an {@link Error}
|
|
25
|
+
* an {@link AggregateError} or a {@link DOMException} that maintains
|
|
26
|
+
* the `{ request, response, content }` shape but is also an Error instance
|
|
27
|
+
* itself.
|
|
28
|
+
*
|
|
29
|
+
* If using the error originates from the {@link Fetch | Fetch Handler}
|
|
30
|
+
* the error will be a {@link FetchError}
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* A union of the resolve/reject data types for the {@link Future}
|
|
35
|
+
* returned by {@link Store.request | request}
|
|
36
|
+
*
|
|
37
|
+
* See also the docs for:
|
|
38
|
+
*
|
|
39
|
+
* - {@link Future}
|
|
40
|
+
* - {@link StructuredDataDocument} (resolved/successful requests)
|
|
41
|
+
* - {@link StructuredErrorDocument} (rejected/failed requests)
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The {@link RequestInit} interface accepted by the native {@link fetch} API.
|
|
46
|
+
*
|
|
47
|
+
* WarpDrive provides our own typings due to incompleteness in the native typings.
|
|
48
|
+
*
|
|
49
|
+
* @privateRemarks
|
|
50
|
+
* - [MDN Reference (fetch)](https://developer.mozilla.org/docs/Web/API/Window/fetch)
|
|
51
|
+
* - [MDN Reference (RequestInit)](https://developer.mozilla.org/en-US/docs/Web/API/RequestInit)
|
|
52
|
+
* - [MDN Reference (Request)](https://developer.mozilla.org/docs/Web/API/Request)
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Extends JavaScript's native {@link fetch} {@link NativeRequestInit | RequestInit} with additional
|
|
58
|
+
* properties specific to the {@link RequestManager | RequestManager's} capabilities.
|
|
59
|
+
*
|
|
60
|
+
* This interface is used to define the shape of a request that can be made via
|
|
61
|
+
* either the {@link RequestManager.request} or {@link Store.request} methods.
|
|
62
|
+
*
|
|
63
|
+
* @privateRemarks
|
|
64
|
+
* - [MDN Reference (fetch)](https://developer.mozilla.org/docs/Web/API/Window/fetch)
|
|
65
|
+
* - [MDN Reference (RequestInit)](https://developer.mozilla.org/en-US/docs/Web/API/RequestInit)
|
|
66
|
+
* - [MDN Reference (Request)](https://developer.mozilla.org/docs/Web/API/Request)
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
* @since 4.12
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Immutable version of {@link RequestInfo}. This is what is passed to handlers.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
export { EnableHydration, IS_FUTURE, STRUCTURED, SkipCache };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getOrSetUniversal } from './-private.js';
|
|
2
|
+
const RuntimeConfig = getOrSetUniversal('WarpDriveRuntimeConfig', {
|
|
3
|
+
debug: {}
|
|
4
|
+
});
|
|
5
|
+
function trySessionStorage() {
|
|
6
|
+
// This works even when sessionStorage is not available.
|
|
7
|
+
// See https://github.com/warp-drive-data/warp-drive/issues/9784
|
|
8
|
+
try {
|
|
9
|
+
return globalThis.sessionStorage;
|
|
10
|
+
} catch {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
const storage = trySessionStorage();
|
|
15
|
+
const settings = storage?.getItem('WarpDriveRuntimeConfig');
|
|
16
|
+
if (settings) {
|
|
17
|
+
Object.assign(RuntimeConfig, JSON.parse(settings));
|
|
18
|
+
}
|
|
19
|
+
function getRuntimeConfig() {
|
|
20
|
+
return RuntimeConfig;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Upserts the specified logging configuration into the runtime
|
|
25
|
+
* config.
|
|
26
|
+
*
|
|
27
|
+
* globalThis.setWarpDriveLogging({ LOG_CACHE: true } });
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
function setLogging(config) {
|
|
31
|
+
Object.assign(RuntimeConfig.debug, config);
|
|
32
|
+
storage?.setItem('WarpDriveRuntimeConfig', JSON.stringify(RuntimeConfig));
|
|
33
|
+
}
|
|
34
|
+
export { getRuntimeConfig, setLogging };
|
|
File without changes
|