@warp-drive/core 5.8.0-alpha.37 → 5.8.0-alpha.40
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/declarations/index.d.ts +0 -4
- package/dist/{index-D4si_DxB.js → index-BKcD4JZK.js} +12 -8
- package/dist/index.js +1 -1
- package/dist/reactive.js +1 -1
- package/dist/store/-private.js +1 -1
- package/dist/types/-private.js +1 -1
- package/dist/unpkg/{prod-deprecated/symbols-sql1_mdx.js → dev/-private-3C1OkYtZ.js} +1 -1
- package/dist/unpkg/{dev-deprecated/configure-C3x8YXzL.js → dev/configure-BC66sfNO.js} +13 -11
- package/dist/unpkg/dev/configure.js +1 -1
- package/dist/unpkg/dev/graph/-private.js +206 -449
- package/dist/unpkg/dev/{index-D4si_DxB.js → index-DqhXrNZ_.js} +741 -1327
- package/dist/unpkg/dev/index.js +5 -7
- package/dist/unpkg/dev/reactive/-private.js +1 -1
- package/dist/unpkg/dev/reactive.js +4 -6
- package/dist/unpkg/{dev-deprecated/request-oqoLC9rz.js → dev/request-CA9K0gXq.js} +10 -16
- package/dist/unpkg/dev/request.js +1 -1
- package/dist/unpkg/dev/runtime-DGG4CvlW.js +135 -0
- package/dist/unpkg/dev/store/-private.js +56 -2
- package/dist/unpkg/dev/store.js +558 -1
- package/dist/unpkg/dev/types/-private.js +5 -15
- package/dist/unpkg/dev/types/identifier.js +1 -3
- package/dist/unpkg/dev/utils/string.js +5 -6
- package/dist/unpkg/dev-deprecated/{symbols-sql1_mdx.js → -private-3C1OkYtZ.js} +1 -1
- package/dist/unpkg/{prod-deprecated/configure-C3x8YXzL.js → dev-deprecated/configure-BC66sfNO.js} +13 -11
- package/dist/unpkg/dev-deprecated/configure.js +1 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js +216 -264
- package/dist/unpkg/dev-deprecated/{index-D4si_DxB.js → index-BBlq5is_.js} +834 -805
- package/dist/unpkg/dev-deprecated/index.js +4 -7
- package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/reactive.js +4 -6
- package/dist/unpkg/{prod-deprecated/request-oqoLC9rz.js → dev-deprecated/request-CA9K0gXq.js} +10 -16
- package/dist/unpkg/dev-deprecated/request.js +1 -1
- package/dist/unpkg/dev-deprecated/runtime-DfhJzpZH.js +135 -0
- package/dist/unpkg/dev-deprecated/store/-private.js +2 -2
- package/dist/unpkg/dev-deprecated/store.js +558 -1
- package/dist/unpkg/dev-deprecated/types/-private.js +5 -15
- package/dist/unpkg/dev-deprecated/types/identifier.js +1 -3
- package/dist/unpkg/dev-deprecated/utils/string.js +5 -6
- package/dist/unpkg/{dev/symbols-sql1_mdx.js → prod/-private-3C1OkYtZ.js} +1 -1
- package/dist/unpkg/prod/{configure-C3x8YXzL.js → configure-C0C1LpG6.js} +5 -28
- package/dist/unpkg/prod/configure.js +1 -1
- package/dist/unpkg/prod/graph/-private.js +4 -1144
- package/dist/unpkg/prod/handler-LAyD1Y5l.js +1619 -0
- package/dist/unpkg/prod/hooks-BfiqDg3O.js +26 -0
- package/dist/unpkg/prod/index.js +481 -8
- package/dist/unpkg/prod/promise-state-ipG60SdD.js +6738 -0
- package/dist/unpkg/prod/reactive/-private.js +1 -1
- package/dist/unpkg/prod/reactive.js +5 -7
- package/dist/unpkg/prod/request-CN2LxbYX.js +437 -0
- package/dist/unpkg/prod/request.js +1 -1
- package/dist/unpkg/prod/store/-private.js +127 -2
- package/dist/unpkg/prod/store.js +437 -1
- package/dist/unpkg/prod/types/-private.js +4 -34
- package/dist/unpkg/prod/types/identifier.js +2 -4
- package/dist/unpkg/prod/utils/string.js +0 -20
- package/dist/unpkg/{prod/symbols-sql1_mdx.js → prod-deprecated/-private-3C1OkYtZ.js} +1 -1
- package/dist/unpkg/{dev/configure-C3x8YXzL.js → prod-deprecated/configure-BQ8CpIcW.js} +4 -27
- package/dist/unpkg/prod-deprecated/configure.js +1 -1
- package/dist/unpkg/prod-deprecated/graph/-private.js +12 -979
- package/dist/unpkg/prod-deprecated/handler-D639oFvl.js +334 -0
- package/dist/unpkg/prod-deprecated/hooks-DGvi9teJ.js +26 -0
- package/dist/unpkg/prod-deprecated/index.js +481 -8
- package/dist/unpkg/prod-deprecated/{index-D4si_DxB.js → promise-state-CYvoIPna.js} +278 -3566
- package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/reactive.js +4 -7
- package/dist/unpkg/prod-deprecated/request-CN2LxbYX.js +437 -0
- package/dist/unpkg/prod-deprecated/request.js +1 -1
- package/dist/unpkg/prod-deprecated/store/-private.js +89 -2
- package/dist/unpkg/prod-deprecated/store.js +437 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +4 -34
- package/dist/unpkg/prod-deprecated/types/identifier.js +2 -4
- package/dist/unpkg/prod-deprecated/utils/string.js +0 -20
- package/package.json +11 -19
- package/dist/unpkg/dev/declarations/build-config/babel-macros.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/canary-features.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/debugging.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/deprecations.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/env.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/macros.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config.d.ts +0 -18
- package/dist/unpkg/dev/declarations/configure.d.ts +0 -7
- package/dist/unpkg/dev/declarations/graph/-private/-diff.d.ts +0 -19
- package/dist/unpkg/dev/declarations/graph/-private/-edge-definition.d.ts +0 -149
- package/dist/unpkg/dev/declarations/graph/-private/-state.d.ts +0 -9
- package/dist/unpkg/dev/declarations/graph/-private/-utils.d.ts +0 -25
- package/dist/unpkg/dev/declarations/graph/-private/coerce-id.d.ts +0 -4
- package/dist/unpkg/dev/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -6
- package/dist/unpkg/dev/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/dist/unpkg/dev/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/dist/unpkg/dev/declarations/graph/-private/edges/resource.d.ts +0 -23
- package/dist/unpkg/dev/declarations/graph/-private/graph.d.ts +0 -56
- package/dist/unpkg/dev/declarations/graph/-private/normalize-link.d.ts +0 -2
- package/dist/unpkg/dev/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/dist/unpkg/dev/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/dist/unpkg/dev/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/dist/unpkg/dev/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/dist/unpkg/dev/declarations/graph/-private/operations/replace-related-records.d.ts +0 -7
- package/dist/unpkg/dev/declarations/graph/-private/operations/update-relationship.d.ts +0 -9
- package/dist/unpkg/dev/declarations/graph/-private.d.ts +0 -13
- package/dist/unpkg/dev/declarations/index.d.ts +0 -100
- package/dist/unpkg/dev/declarations/reactive/-private/default-mode.d.ts +0 -73
- package/dist/unpkg/dev/declarations/reactive/-private/document.d.ts +0 -142
- package/dist/unpkg/dev/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/dist/unpkg/dev/declarations/reactive/-private/fields/get-field-key.d.ts +0 -8
- package/dist/unpkg/dev/declarations/reactive/-private/fields/managed-array.d.ts +0 -18
- package/dist/unpkg/dev/declarations/reactive/-private/fields/managed-object.d.ts +0 -17
- package/dist/unpkg/dev/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/dist/unpkg/dev/declarations/reactive/-private/hooks.d.ts +0 -5
- package/dist/unpkg/dev/declarations/reactive/-private/kind/alias-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/array-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/attribute-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/belongs-to-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/collection-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/derived-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/generic-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/has-many-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/hash-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/identity-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/local-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/object-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/resource-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/schema-array-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/schema-object-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/record.d.ts +0 -83
- package/dist/unpkg/dev/declarations/reactive/-private/schema.d.ts +0 -326
- package/dist/unpkg/dev/declarations/reactive/-private/symbols.d.ts +0 -5
- package/dist/unpkg/dev/declarations/reactive/-private.d.ts +0 -2
- package/dist/unpkg/dev/declarations/reactive.d.ts +0 -287
- package/dist/unpkg/dev/declarations/request/-private/context.d.ts +0 -39
- package/dist/unpkg/dev/declarations/request/-private/debug.d.ts +0 -4
- package/dist/unpkg/dev/declarations/request/-private/fetch.d.ts +0 -33
- package/dist/unpkg/dev/declarations/request/-private/future.d.ts +0 -7
- package/dist/unpkg/dev/declarations/request/-private/manager.d.ts +0 -158
- package/dist/unpkg/dev/declarations/request/-private/promise-cache.d.ts +0 -28
- package/dist/unpkg/dev/declarations/request/-private/types.d.ts +0 -234
- package/dist/unpkg/dev/declarations/request/-private/utils.d.ts +0 -57
- package/dist/unpkg/dev/declarations/request.d.ts +0 -52
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/handler.d.ts +0 -56
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/utils.d.ts +0 -31
- package/dist/unpkg/dev/declarations/store/-private/caches/instance-cache.d.ts +0 -58
- package/dist/unpkg/dev/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/dist/unpkg/dev/declarations/store/-private/debug/utils.d.ts +0 -7
- package/dist/unpkg/dev/declarations/store/-private/default-cache-policy.d.ts +0 -387
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -34
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-key-manager.d.ts +0 -304
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-manager.d.ts +0 -380
- package/dist/unpkg/dev/declarations/store/-private/managers/notification-manager.d.ts +0 -83
- package/dist/unpkg/dev/declarations/store/-private/managers/record-array-manager.d.ts +0 -100
- package/dist/unpkg/dev/declarations/store/-private/network/request-cache.d.ts +0 -103
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +0 -24
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -264
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -138
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -154
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -56
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -372
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -177
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/-utils.d.ts +0 -80
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-live-array.d.ts +0 -81
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-many-array.d.ts +0 -133
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-query.d.ts +0 -81
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -3
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/resource-array.d.ts +0 -67
- package/dist/unpkg/dev/declarations/store/-private/store-service.d.ts +0 -874
- package/dist/unpkg/dev/declarations/store/-private/utils/coerce-id.d.ts +0 -4
- package/dist/unpkg/dev/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/dist/unpkg/dev/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/dist/unpkg/dev/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/dist/unpkg/dev/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/dist/unpkg/dev/declarations/store/-private.d.ts +0 -29
- package/dist/unpkg/dev/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -90
- package/dist/unpkg/dev/declarations/store/-types/q/identifier.d.ts +0 -23
- package/dist/unpkg/dev/declarations/store/-types/q/record-instance.d.ts +0 -22
- package/dist/unpkg/dev/declarations/store/-types/q/store.d.ts +0 -31
- package/dist/unpkg/dev/declarations/store/deprecated/-private.d.ts +0 -223
- package/dist/unpkg/dev/declarations/store/deprecated/store.d.ts +0 -784
- package/dist/unpkg/dev/declarations/store.d.ts +0 -2
- package/dist/unpkg/dev/declarations/types/-private.d.ts +0 -22
- package/dist/unpkg/dev/declarations/types/cache/aliases.d.ts +0 -1
- package/dist/unpkg/dev/declarations/types/cache/change.d.ts +0 -6
- package/dist/unpkg/dev/declarations/types/cache/mutations.d.ts +0 -38
- package/dist/unpkg/dev/declarations/types/cache/operations.d.ts +0 -168
- package/dist/unpkg/dev/declarations/types/cache/relationship.d.ts +0 -13
- package/dist/unpkg/dev/declarations/types/cache.d.ts +0 -429
- package/dist/unpkg/dev/declarations/types/graph.d.ts +0 -47
- package/dist/unpkg/dev/declarations/types/identifier.d.ts +0 -86
- package/dist/unpkg/dev/declarations/types/json/raw.d.ts +0 -6
- package/dist/unpkg/dev/declarations/types/params.d.ts +0 -8
- package/dist/unpkg/dev/declarations/types/record.d.ts +0 -269
- package/dist/unpkg/dev/declarations/types/request.d.ts +0 -367
- package/dist/unpkg/dev/declarations/types/runtime.d.ts +0 -14
- package/dist/unpkg/dev/declarations/types/schema/concepts.d.ts +0 -23
- package/dist/unpkg/dev/declarations/types/schema/fields.d.ts +0 -2200
- package/dist/unpkg/dev/declarations/types/schema/fields.type-test.d.ts +0 -1
- package/dist/unpkg/dev/declarations/types/schema/schema-service.d.ts +0 -380
- package/dist/unpkg/dev/declarations/types/spec/document.d.ts +0 -67
- package/dist/unpkg/dev/declarations/types/spec/error.d.ts +0 -18
- package/dist/unpkg/dev/declarations/types/spec/json-api-raw.d.ts +0 -139
- package/dist/unpkg/dev/declarations/types/symbols.d.ts +0 -78
- package/dist/unpkg/dev/declarations/types/utils.d.ts +0 -5
- package/dist/unpkg/dev/declarations/types.d.ts +0 -11
- package/dist/unpkg/dev/declarations/utils/string.d.ts +0 -47
- package/dist/unpkg/dev/default-cache-policy-D7_u4YRH.js +0 -572
- package/dist/unpkg/dev/request-oqoLC9rz.js +0 -725
- package/dist/unpkg/dev-deprecated/declarations/build-config/babel-macros.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/canary-features.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/debugging.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/deprecations.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/env.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/macros.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config.d.ts +0 -18
- package/dist/unpkg/dev-deprecated/declarations/configure.d.ts +0 -7
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-diff.d.ts +0 -19
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-edge-definition.d.ts +0 -149
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-state.d.ts +0 -9
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-utils.d.ts +0 -25
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/coerce-id.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -6
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/resource.d.ts +0 -23
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/graph.d.ts +0 -56
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/normalize-link.d.ts +0 -2
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/replace-related-records.d.ts +0 -7
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/update-relationship.d.ts +0 -9
- package/dist/unpkg/dev-deprecated/declarations/graph/-private.d.ts +0 -13
- package/dist/unpkg/dev-deprecated/declarations/index.d.ts +0 -100
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/default-mode.d.ts +0 -73
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/document.d.ts +0 -142
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/get-field-key.d.ts +0 -8
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/managed-array.d.ts +0 -18
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/managed-object.d.ts +0 -17
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/hooks.d.ts +0 -5
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/alias-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/array-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/attribute-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/belongs-to-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/collection-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/derived-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/generic-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/has-many-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/hash-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/identity-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/local-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/object-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/resource-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/schema-array-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/schema-object-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/record.d.ts +0 -83
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/schema.d.ts +0 -326
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/symbols.d.ts +0 -5
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private.d.ts +0 -2
- package/dist/unpkg/dev-deprecated/declarations/reactive.d.ts +0 -287
- package/dist/unpkg/dev-deprecated/declarations/request/-private/context.d.ts +0 -39
- package/dist/unpkg/dev-deprecated/declarations/request/-private/debug.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/request/-private/fetch.d.ts +0 -33
- package/dist/unpkg/dev-deprecated/declarations/request/-private/future.d.ts +0 -7
- package/dist/unpkg/dev-deprecated/declarations/request/-private/manager.d.ts +0 -158
- package/dist/unpkg/dev-deprecated/declarations/request/-private/promise-cache.d.ts +0 -28
- package/dist/unpkg/dev-deprecated/declarations/request/-private/types.d.ts +0 -234
- package/dist/unpkg/dev-deprecated/declarations/request/-private/utils.d.ts +0 -57
- package/dist/unpkg/dev-deprecated/declarations/request.d.ts +0 -52
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/handler.d.ts +0 -56
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/utils.d.ts +0 -31
- package/dist/unpkg/dev-deprecated/declarations/store/-private/caches/instance-cache.d.ts +0 -58
- package/dist/unpkg/dev-deprecated/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/dist/unpkg/dev-deprecated/declarations/store/-private/debug/utils.d.ts +0 -7
- package/dist/unpkg/dev-deprecated/declarations/store/-private/default-cache-policy.d.ts +0 -387
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -34
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-key-manager.d.ts +0 -304
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-manager.d.ts +0 -380
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/notification-manager.d.ts +0 -83
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/record-array-manager.d.ts +0 -100
- package/dist/unpkg/dev-deprecated/declarations/store/-private/network/request-cache.d.ts +0 -103
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +0 -24
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -264
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -138
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -154
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -56
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -372
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -177
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/-utils.d.ts +0 -80
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-live-array.d.ts +0 -81
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-many-array.d.ts +0 -133
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-query.d.ts +0 -81
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -3
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/resource-array.d.ts +0 -67
- package/dist/unpkg/dev-deprecated/declarations/store/-private/store-service.d.ts +0 -874
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/coerce-id.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/store/-private.d.ts +0 -29
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -90
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/identifier.d.ts +0 -23
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/record-instance.d.ts +0 -22
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/store.d.ts +0 -31
- package/dist/unpkg/dev-deprecated/declarations/store/deprecated/-private.d.ts +0 -223
- package/dist/unpkg/dev-deprecated/declarations/store/deprecated/store.d.ts +0 -784
- package/dist/unpkg/dev-deprecated/declarations/store.d.ts +0 -2
- package/dist/unpkg/dev-deprecated/declarations/types/-private.d.ts +0 -22
- package/dist/unpkg/dev-deprecated/declarations/types/cache/aliases.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/types/cache/change.d.ts +0 -6
- package/dist/unpkg/dev-deprecated/declarations/types/cache/mutations.d.ts +0 -38
- package/dist/unpkg/dev-deprecated/declarations/types/cache/operations.d.ts +0 -168
- package/dist/unpkg/dev-deprecated/declarations/types/cache/relationship.d.ts +0 -13
- package/dist/unpkg/dev-deprecated/declarations/types/cache.d.ts +0 -429
- package/dist/unpkg/dev-deprecated/declarations/types/graph.d.ts +0 -47
- package/dist/unpkg/dev-deprecated/declarations/types/identifier.d.ts +0 -86
- package/dist/unpkg/dev-deprecated/declarations/types/json/raw.d.ts +0 -6
- package/dist/unpkg/dev-deprecated/declarations/types/params.d.ts +0 -8
- package/dist/unpkg/dev-deprecated/declarations/types/record.d.ts +0 -269
- package/dist/unpkg/dev-deprecated/declarations/types/request.d.ts +0 -367
- package/dist/unpkg/dev-deprecated/declarations/types/runtime.d.ts +0 -14
- package/dist/unpkg/dev-deprecated/declarations/types/schema/concepts.d.ts +0 -23
- package/dist/unpkg/dev-deprecated/declarations/types/schema/fields.d.ts +0 -2200
- package/dist/unpkg/dev-deprecated/declarations/types/schema/fields.type-test.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/types/schema/schema-service.d.ts +0 -380
- package/dist/unpkg/dev-deprecated/declarations/types/spec/document.d.ts +0 -67
- package/dist/unpkg/dev-deprecated/declarations/types/spec/error.d.ts +0 -18
- package/dist/unpkg/dev-deprecated/declarations/types/spec/json-api-raw.d.ts +0 -139
- package/dist/unpkg/dev-deprecated/declarations/types/symbols.d.ts +0 -78
- package/dist/unpkg/dev-deprecated/declarations/types/utils.d.ts +0 -5
- package/dist/unpkg/dev-deprecated/declarations/types.d.ts +0 -11
- package/dist/unpkg/dev-deprecated/declarations/utils/string.d.ts +0 -47
- package/dist/unpkg/dev-deprecated/default-cache-policy-D7_u4YRH.js +0 -572
- package/dist/unpkg/prod/declarations/build-config/babel-macros.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/canary-features.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/debugging.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/deprecations.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/env.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/macros.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config.d.ts +0 -18
- package/dist/unpkg/prod/declarations/configure.d.ts +0 -7
- package/dist/unpkg/prod/declarations/graph/-private/-diff.d.ts +0 -19
- package/dist/unpkg/prod/declarations/graph/-private/-edge-definition.d.ts +0 -149
- package/dist/unpkg/prod/declarations/graph/-private/-state.d.ts +0 -9
- package/dist/unpkg/prod/declarations/graph/-private/-utils.d.ts +0 -25
- package/dist/unpkg/prod/declarations/graph/-private/coerce-id.d.ts +0 -4
- package/dist/unpkg/prod/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -6
- package/dist/unpkg/prod/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/dist/unpkg/prod/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/dist/unpkg/prod/declarations/graph/-private/edges/resource.d.ts +0 -23
- package/dist/unpkg/prod/declarations/graph/-private/graph.d.ts +0 -56
- package/dist/unpkg/prod/declarations/graph/-private/normalize-link.d.ts +0 -2
- package/dist/unpkg/prod/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/dist/unpkg/prod/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/dist/unpkg/prod/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/dist/unpkg/prod/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/dist/unpkg/prod/declarations/graph/-private/operations/replace-related-records.d.ts +0 -7
- package/dist/unpkg/prod/declarations/graph/-private/operations/update-relationship.d.ts +0 -9
- package/dist/unpkg/prod/declarations/graph/-private.d.ts +0 -13
- package/dist/unpkg/prod/declarations/index.d.ts +0 -100
- package/dist/unpkg/prod/declarations/reactive/-private/default-mode.d.ts +0 -73
- package/dist/unpkg/prod/declarations/reactive/-private/document.d.ts +0 -142
- package/dist/unpkg/prod/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/dist/unpkg/prod/declarations/reactive/-private/fields/get-field-key.d.ts +0 -8
- package/dist/unpkg/prod/declarations/reactive/-private/fields/managed-array.d.ts +0 -18
- package/dist/unpkg/prod/declarations/reactive/-private/fields/managed-object.d.ts +0 -17
- package/dist/unpkg/prod/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/dist/unpkg/prod/declarations/reactive/-private/hooks.d.ts +0 -5
- package/dist/unpkg/prod/declarations/reactive/-private/kind/alias-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/array-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/attribute-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/belongs-to-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/collection-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/derived-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/generic-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/has-many-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/hash-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/identity-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/local-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/object-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/resource-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/schema-array-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/schema-object-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/record.d.ts +0 -83
- package/dist/unpkg/prod/declarations/reactive/-private/schema.d.ts +0 -326
- package/dist/unpkg/prod/declarations/reactive/-private/symbols.d.ts +0 -5
- package/dist/unpkg/prod/declarations/reactive/-private.d.ts +0 -2
- package/dist/unpkg/prod/declarations/reactive.d.ts +0 -287
- package/dist/unpkg/prod/declarations/request/-private/context.d.ts +0 -39
- package/dist/unpkg/prod/declarations/request/-private/debug.d.ts +0 -4
- package/dist/unpkg/prod/declarations/request/-private/fetch.d.ts +0 -33
- package/dist/unpkg/prod/declarations/request/-private/future.d.ts +0 -7
- package/dist/unpkg/prod/declarations/request/-private/manager.d.ts +0 -158
- package/dist/unpkg/prod/declarations/request/-private/promise-cache.d.ts +0 -28
- package/dist/unpkg/prod/declarations/request/-private/types.d.ts +0 -234
- package/dist/unpkg/prod/declarations/request/-private/utils.d.ts +0 -57
- package/dist/unpkg/prod/declarations/request.d.ts +0 -52
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/handler.d.ts +0 -56
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/utils.d.ts +0 -31
- package/dist/unpkg/prod/declarations/store/-private/caches/instance-cache.d.ts +0 -58
- package/dist/unpkg/prod/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/dist/unpkg/prod/declarations/store/-private/debug/utils.d.ts +0 -7
- package/dist/unpkg/prod/declarations/store/-private/default-cache-policy.d.ts +0 -387
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -34
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-key-manager.d.ts +0 -304
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-manager.d.ts +0 -380
- package/dist/unpkg/prod/declarations/store/-private/managers/notification-manager.d.ts +0 -83
- package/dist/unpkg/prod/declarations/store/-private/managers/record-array-manager.d.ts +0 -100
- package/dist/unpkg/prod/declarations/store/-private/network/request-cache.d.ts +0 -103
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +0 -24
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -264
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -138
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -154
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -56
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -372
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -177
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/-utils.d.ts +0 -80
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-live-array.d.ts +0 -81
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-many-array.d.ts +0 -133
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-query.d.ts +0 -81
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -3
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/resource-array.d.ts +0 -67
- package/dist/unpkg/prod/declarations/store/-private/store-service.d.ts +0 -874
- package/dist/unpkg/prod/declarations/store/-private/utils/coerce-id.d.ts +0 -4
- package/dist/unpkg/prod/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/dist/unpkg/prod/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/dist/unpkg/prod/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/dist/unpkg/prod/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/dist/unpkg/prod/declarations/store/-private.d.ts +0 -29
- package/dist/unpkg/prod/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -90
- package/dist/unpkg/prod/declarations/store/-types/q/identifier.d.ts +0 -23
- package/dist/unpkg/prod/declarations/store/-types/q/record-instance.d.ts +0 -22
- package/dist/unpkg/prod/declarations/store/-types/q/store.d.ts +0 -31
- package/dist/unpkg/prod/declarations/store/deprecated/-private.d.ts +0 -223
- package/dist/unpkg/prod/declarations/store/deprecated/store.d.ts +0 -784
- package/dist/unpkg/prod/declarations/store.d.ts +0 -2
- package/dist/unpkg/prod/declarations/types/-private.d.ts +0 -22
- package/dist/unpkg/prod/declarations/types/cache/aliases.d.ts +0 -1
- package/dist/unpkg/prod/declarations/types/cache/change.d.ts +0 -6
- package/dist/unpkg/prod/declarations/types/cache/mutations.d.ts +0 -38
- package/dist/unpkg/prod/declarations/types/cache/operations.d.ts +0 -168
- package/dist/unpkg/prod/declarations/types/cache/relationship.d.ts +0 -13
- package/dist/unpkg/prod/declarations/types/cache.d.ts +0 -429
- package/dist/unpkg/prod/declarations/types/graph.d.ts +0 -47
- package/dist/unpkg/prod/declarations/types/identifier.d.ts +0 -86
- package/dist/unpkg/prod/declarations/types/json/raw.d.ts +0 -6
- package/dist/unpkg/prod/declarations/types/params.d.ts +0 -8
- package/dist/unpkg/prod/declarations/types/record.d.ts +0 -269
- package/dist/unpkg/prod/declarations/types/request.d.ts +0 -367
- package/dist/unpkg/prod/declarations/types/runtime.d.ts +0 -14
- package/dist/unpkg/prod/declarations/types/schema/concepts.d.ts +0 -23
- package/dist/unpkg/prod/declarations/types/schema/fields.d.ts +0 -2200
- package/dist/unpkg/prod/declarations/types/schema/fields.type-test.d.ts +0 -1
- package/dist/unpkg/prod/declarations/types/schema/schema-service.d.ts +0 -380
- package/dist/unpkg/prod/declarations/types/spec/document.d.ts +0 -67
- package/dist/unpkg/prod/declarations/types/spec/error.d.ts +0 -18
- package/dist/unpkg/prod/declarations/types/spec/json-api-raw.d.ts +0 -139
- package/dist/unpkg/prod/declarations/types/symbols.d.ts +0 -78
- package/dist/unpkg/prod/declarations/types/utils.d.ts +0 -5
- package/dist/unpkg/prod/declarations/types.d.ts +0 -11
- package/dist/unpkg/prod/declarations/utils/string.d.ts +0 -47
- package/dist/unpkg/prod/default-cache-policy-D7_u4YRH.js +0 -572
- package/dist/unpkg/prod/index-D4si_DxB.js +0 -11746
- package/dist/unpkg/prod/request-oqoLC9rz.js +0 -725
- package/dist/unpkg/prod-deprecated/declarations/build-config/babel-macros.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/canary-features.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/debugging.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/deprecations.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/env.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/macros.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config.d.ts +0 -18
- package/dist/unpkg/prod-deprecated/declarations/configure.d.ts +0 -7
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-diff.d.ts +0 -19
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-edge-definition.d.ts +0 -149
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-state.d.ts +0 -9
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-utils.d.ts +0 -25
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/coerce-id.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -6
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/resource.d.ts +0 -23
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/graph.d.ts +0 -56
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/normalize-link.d.ts +0 -2
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/replace-related-records.d.ts +0 -7
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/update-relationship.d.ts +0 -9
- package/dist/unpkg/prod-deprecated/declarations/graph/-private.d.ts +0 -13
- package/dist/unpkg/prod-deprecated/declarations/index.d.ts +0 -100
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/default-mode.d.ts +0 -73
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/document.d.ts +0 -142
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/get-field-key.d.ts +0 -8
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/managed-array.d.ts +0 -18
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/managed-object.d.ts +0 -17
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/hooks.d.ts +0 -5
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/alias-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/array-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/attribute-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/belongs-to-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/collection-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/derived-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/generic-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/has-many-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/hash-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/identity-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/local-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/object-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/resource-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/schema-array-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/schema-object-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/record.d.ts +0 -83
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/schema.d.ts +0 -326
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/symbols.d.ts +0 -5
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private.d.ts +0 -2
- package/dist/unpkg/prod-deprecated/declarations/reactive.d.ts +0 -287
- package/dist/unpkg/prod-deprecated/declarations/request/-private/context.d.ts +0 -39
- package/dist/unpkg/prod-deprecated/declarations/request/-private/debug.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/request/-private/fetch.d.ts +0 -33
- package/dist/unpkg/prod-deprecated/declarations/request/-private/future.d.ts +0 -7
- package/dist/unpkg/prod-deprecated/declarations/request/-private/manager.d.ts +0 -158
- package/dist/unpkg/prod-deprecated/declarations/request/-private/promise-cache.d.ts +0 -28
- package/dist/unpkg/prod-deprecated/declarations/request/-private/types.d.ts +0 -234
- package/dist/unpkg/prod-deprecated/declarations/request/-private/utils.d.ts +0 -57
- package/dist/unpkg/prod-deprecated/declarations/request.d.ts +0 -52
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/handler.d.ts +0 -56
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/utils.d.ts +0 -31
- package/dist/unpkg/prod-deprecated/declarations/store/-private/caches/instance-cache.d.ts +0 -58
- package/dist/unpkg/prod-deprecated/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/dist/unpkg/prod-deprecated/declarations/store/-private/debug/utils.d.ts +0 -7
- package/dist/unpkg/prod-deprecated/declarations/store/-private/default-cache-policy.d.ts +0 -387
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -34
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-key-manager.d.ts +0 -304
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-manager.d.ts +0 -380
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/notification-manager.d.ts +0 -83
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/record-array-manager.d.ts +0 -100
- package/dist/unpkg/prod-deprecated/declarations/store/-private/network/request-cache.d.ts +0 -103
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +0 -24
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -264
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -138
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -154
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -56
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -372
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -177
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/-utils.d.ts +0 -80
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-live-array.d.ts +0 -81
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-many-array.d.ts +0 -133
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-query.d.ts +0 -81
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -3
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/resource-array.d.ts +0 -67
- package/dist/unpkg/prod-deprecated/declarations/store/-private/store-service.d.ts +0 -874
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/coerce-id.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/store/-private.d.ts +0 -29
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -90
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/identifier.d.ts +0 -23
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/record-instance.d.ts +0 -22
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/store.d.ts +0 -31
- package/dist/unpkg/prod-deprecated/declarations/store/deprecated/-private.d.ts +0 -223
- package/dist/unpkg/prod-deprecated/declarations/store/deprecated/store.d.ts +0 -784
- package/dist/unpkg/prod-deprecated/declarations/store.d.ts +0 -2
- package/dist/unpkg/prod-deprecated/declarations/types/-private.d.ts +0 -22
- package/dist/unpkg/prod-deprecated/declarations/types/cache/aliases.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/types/cache/change.d.ts +0 -6
- package/dist/unpkg/prod-deprecated/declarations/types/cache/mutations.d.ts +0 -38
- package/dist/unpkg/prod-deprecated/declarations/types/cache/operations.d.ts +0 -168
- package/dist/unpkg/prod-deprecated/declarations/types/cache/relationship.d.ts +0 -13
- package/dist/unpkg/prod-deprecated/declarations/types/cache.d.ts +0 -429
- package/dist/unpkg/prod-deprecated/declarations/types/graph.d.ts +0 -47
- package/dist/unpkg/prod-deprecated/declarations/types/identifier.d.ts +0 -86
- package/dist/unpkg/prod-deprecated/declarations/types/json/raw.d.ts +0 -6
- package/dist/unpkg/prod-deprecated/declarations/types/params.d.ts +0 -8
- package/dist/unpkg/prod-deprecated/declarations/types/record.d.ts +0 -269
- package/dist/unpkg/prod-deprecated/declarations/types/request.d.ts +0 -367
- package/dist/unpkg/prod-deprecated/declarations/types/runtime.d.ts +0 -14
- package/dist/unpkg/prod-deprecated/declarations/types/schema/concepts.d.ts +0 -23
- package/dist/unpkg/prod-deprecated/declarations/types/schema/fields.d.ts +0 -2200
- package/dist/unpkg/prod-deprecated/declarations/types/schema/fields.type-test.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/types/schema/schema-service.d.ts +0 -380
- package/dist/unpkg/prod-deprecated/declarations/types/spec/document.d.ts +0 -67
- package/dist/unpkg/prod-deprecated/declarations/types/spec/error.d.ts +0 -18
- package/dist/unpkg/prod-deprecated/declarations/types/spec/json-api-raw.d.ts +0 -139
- package/dist/unpkg/prod-deprecated/declarations/types/symbols.d.ts +0 -78
- package/dist/unpkg/prod-deprecated/declarations/types/utils.d.ts +0 -5
- package/dist/unpkg/prod-deprecated/declarations/types.d.ts +0 -11
- package/dist/unpkg/prod-deprecated/declarations/utils/string.d.ts +0 -47
- package/dist/unpkg/prod-deprecated/default-cache-policy-D7_u4YRH.js +0 -572
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type StructuredDocument } from "../../types/request.js";
|
|
2
|
-
import type { ContextOwner } from "./context.js";
|
|
3
|
-
import type { Deferred, DeferredFuture, Future } from "./types.js";
|
|
4
|
-
export declare function isFuture<T>(maybe: unknown): maybe is Future<T>;
|
|
5
|
-
export declare function createDeferred<T>(): Deferred<T>;
|
|
6
|
-
export declare function upgradePromise<T>(promise: Promise<StructuredDocument<T>>, future: Future<T>): Future<T>;
|
|
7
|
-
export declare function createFuture<T>(owner: ContextOwner): DeferredFuture<T>;
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import type { RequestKey } from "../../types/identifier.js";
|
|
2
|
-
import { type RequestInfo } from "../../types/request.js";
|
|
3
|
-
import type { CacheHandler, Future, GenericCreateArgs, Handler, ManagedRequestPriority } from "./types.js";
|
|
4
|
-
import { IS_CACHE_HANDLER } from "./utils.js";
|
|
5
|
-
/**
|
|
6
|
-
* ## Import
|
|
7
|
-
*
|
|
8
|
-
* ```js
|
|
9
|
-
* import { RequestManager } from '@warp-drive/core';
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* For complete usage guide see the [RequestManager Documentation](/guides/).
|
|
13
|
-
*
|
|
14
|
-
* ## How It Works
|
|
15
|
-
*
|
|
16
|
-
* ```ts
|
|
17
|
-
* interface RequestManager {
|
|
18
|
-
* request<T>(req: RequestInfo): Future<T>;
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* A RequestManager provides a request/response flow in which configured
|
|
23
|
-
* handlers are successively given the opportunity to handle, modify, or
|
|
24
|
-
* pass-along a request.
|
|
25
|
-
*
|
|
26
|
-
* <img src="/images/handlers-all-labeled.gif" alt="RequestManager Flow Animation" width="100%" />
|
|
27
|
-
*
|
|
28
|
-
* For example:
|
|
29
|
-
*
|
|
30
|
-
* ::: code-group
|
|
31
|
-
*
|
|
32
|
-
* ```ts [Setup.ts]
|
|
33
|
-
* import { RequestManager, Fetch } from '@warp-drive/core';
|
|
34
|
-
* import { AutoCompress } from '@warp-drive/utilities/handlers';
|
|
35
|
-
* import Auth from 'ember-simple-auth/handler';
|
|
36
|
-
*
|
|
37
|
-
* // ... create manager
|
|
38
|
-
* const manager = new RequestManager()
|
|
39
|
-
* .use([Auth, new AutoCompress(), Fetch]); // [!code focus]
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* ```ts [Usage.ts]
|
|
43
|
-
* import Config from './config';
|
|
44
|
-
*
|
|
45
|
-
* const { apiUrl } = Config;
|
|
46
|
-
*
|
|
47
|
-
* // ... execute a request
|
|
48
|
-
* const response = await manager.request({
|
|
49
|
-
* url: `${apiUrl}/users`
|
|
50
|
-
* });
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* :::
|
|
54
|
-
*
|
|
55
|
-
* ### Futures
|
|
56
|
-
*
|
|
57
|
-
* The return value of `manager.request` is a `Future`, which allows
|
|
58
|
-
* access to limited information about the request while it is still
|
|
59
|
-
* pending and fulfills with the final state when the request completes.
|
|
60
|
-
*
|
|
61
|
-
* A `Future` is cancellable via `abort`.
|
|
62
|
-
*
|
|
63
|
-
* Handlers may optionally expose a `ReadableStream` to the `Future` for
|
|
64
|
-
* streaming data; however, when doing so the future should not resolve
|
|
65
|
-
* until the response stream is fully read.
|
|
66
|
-
*
|
|
67
|
-
* ```ts
|
|
68
|
-
* interface Future<T> extends Promise<StructuredDocument<T>> {
|
|
69
|
-
* abort(): void;
|
|
70
|
-
*
|
|
71
|
-
* async getStream(): ReadableStream | null;
|
|
72
|
-
* }
|
|
73
|
-
* ```
|
|
74
|
-
*
|
|
75
|
-
* ### StructuredDocuments
|
|
76
|
-
*
|
|
77
|
-
* A Future resolves with a `StructuredDataDocument` or rejects with a `StructuredErrorDocument`.
|
|
78
|
-
*
|
|
79
|
-
* ```ts
|
|
80
|
-
* interface StructuredDataDocument<T> {
|
|
81
|
-
* request: ImmutableRequestInfo;
|
|
82
|
-
* response: ImmutableResponseInfo;
|
|
83
|
-
* content: T;
|
|
84
|
-
* }
|
|
85
|
-
* interface StructuredErrorDocument extends Error {
|
|
86
|
-
* request: ImmutableRequestInfo;
|
|
87
|
-
* response: ImmutableResponseInfo;
|
|
88
|
-
* error: string | object;
|
|
89
|
-
* }
|
|
90
|
-
* type StructuredDocument<T> = StructuredDataDocument<T> | StructuredErrorDocument;
|
|
91
|
-
* ```
|
|
92
|
-
*
|
|
93
|
-
* @public
|
|
94
|
-
*/
|
|
95
|
-
export declare class RequestManager {
|
|
96
|
-
constructor(options?: GenericCreateArgs);
|
|
97
|
-
/**
|
|
98
|
-
* Register a handler to use for primary cache intercept.
|
|
99
|
-
*
|
|
100
|
-
* Only one such handler may exist. If using the same
|
|
101
|
-
* RequestManager as the Store instance the Store
|
|
102
|
-
* registers itself as a Cache handler.
|
|
103
|
-
*
|
|
104
|
-
* @public
|
|
105
|
-
*/
|
|
106
|
-
useCache(cacheHandler: CacheHandler & {
|
|
107
|
-
[IS_CACHE_HANDLER]?: true;
|
|
108
|
-
}): this;
|
|
109
|
-
/**
|
|
110
|
-
* Register handler(s) to use when a request is issued.
|
|
111
|
-
*
|
|
112
|
-
* Handlers will be invoked in the order they are registered.
|
|
113
|
-
* Each Handler is given the opportunity to handle the request,
|
|
114
|
-
* curry the request, or pass along a modified request.
|
|
115
|
-
*
|
|
116
|
-
* @public
|
|
117
|
-
*/
|
|
118
|
-
use(newHandlers: Handler[]): this;
|
|
119
|
-
/**
|
|
120
|
-
* Issue a Request.
|
|
121
|
-
*
|
|
122
|
-
* Returns a Future that fulfills with a StructuredDocument
|
|
123
|
-
*
|
|
124
|
-
* @public
|
|
125
|
-
*/
|
|
126
|
-
request<RT>(request: RequestInfo<RT>): Future<RT>;
|
|
127
|
-
/**
|
|
128
|
-
* This method exists so that the RequestManager can be created
|
|
129
|
-
* can be created by container/factory systems that expect to
|
|
130
|
-
* call a static `create` method to instantiate the class.
|
|
131
|
-
*
|
|
132
|
-
* Using `new RequestManager()` directly is preferred.
|
|
133
|
-
*
|
|
134
|
-
* @private
|
|
135
|
-
*/
|
|
136
|
-
static create(options?: GenericCreateArgs): RequestManager;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* This type exists for internal use only for
|
|
140
|
-
* where intimate contracts still exist either for
|
|
141
|
-
* the Test Suite or for Legacy code.
|
|
142
|
-
*
|
|
143
|
-
* @private
|
|
144
|
-
*/
|
|
145
|
-
export interface PrivateRequestManager extends RequestManager {
|
|
146
|
-
/**
|
|
147
|
-
* A map of pending requests from request.id to their
|
|
148
|
-
* associated CacheHandler promise.
|
|
149
|
-
*
|
|
150
|
-
* This queue is managed by the CacheHandler
|
|
151
|
-
*
|
|
152
|
-
*/
|
|
153
|
-
_pending: Map<number, Promise<unknown>>;
|
|
154
|
-
_deduped: Map<RequestKey, {
|
|
155
|
-
priority: ManagedRequestPriority;
|
|
156
|
-
promise: Promise<unknown>;
|
|
157
|
-
}>;
|
|
158
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export type CacheResult<
|
|
2
|
-
T = unknown,
|
|
3
|
-
E = unknown
|
|
4
|
-
> = {
|
|
5
|
-
isError: true;
|
|
6
|
-
result: E;
|
|
7
|
-
} | {
|
|
8
|
-
isError: false;
|
|
9
|
-
result: T;
|
|
10
|
-
};
|
|
11
|
-
export type Awaitable<
|
|
12
|
-
T = unknown,
|
|
13
|
-
E = unknown
|
|
14
|
-
> = {
|
|
15
|
-
then: (onFulfilled: (value: T) => unknown, onRejected: (reason: E) => unknown) => unknown;
|
|
16
|
-
catch: (onRejected: (reason: E) => unknown) => unknown;
|
|
17
|
-
finally: (onFinally: () => unknown) => unknown;
|
|
18
|
-
};
|
|
19
|
-
export declare const PromiseCache: WeakMap<Awaitable, CacheResult>;
|
|
20
|
-
export declare const RequestMap: Map<number, CacheResult>;
|
|
21
|
-
export declare function setRequestResult(requestId: number, result: CacheResult): void;
|
|
22
|
-
export declare function clearRequestResult(requestId: number): void;
|
|
23
|
-
export declare function getRequestResult(requestId: number): CacheResult | undefined;
|
|
24
|
-
export declare function setPromiseResult(promise: Promise<unknown> | Awaitable, result: CacheResult): void;
|
|
25
|
-
export declare function getPromiseResult<
|
|
26
|
-
T,
|
|
27
|
-
E
|
|
28
|
-
>(promise: Promise<T> | Awaitable<T, E>): CacheResult<T, E> | undefined;
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import type { Store } from "../../store/-private.js";
|
|
2
|
-
import type { RequestKey } from "../../types/identifier.js";
|
|
3
|
-
import type { RequestContext, RequestInfo, ResponseInfo, StructuredDataDocument } from "../../types/request.js";
|
|
4
|
-
import type { RequestManager } from "./manager.js";
|
|
5
|
-
export interface GodContext {
|
|
6
|
-
controller: AbortController;
|
|
7
|
-
response: ResponseInfo | null;
|
|
8
|
-
stream: ReadableStream | Promise<ReadableStream | null> | null;
|
|
9
|
-
hasRequestedStream: boolean;
|
|
10
|
-
id: number;
|
|
11
|
-
identifier: RequestKey | null;
|
|
12
|
-
requester: RequestManager | Store;
|
|
13
|
-
}
|
|
14
|
-
export type Deferred<T> = {
|
|
15
|
-
resolve(v: T): void;
|
|
16
|
-
reject(v: unknown): void;
|
|
17
|
-
promise: Promise<T>;
|
|
18
|
-
};
|
|
19
|
-
export type ManagedRequestPriority = {
|
|
20
|
-
blocking: boolean;
|
|
21
|
-
};
|
|
22
|
-
export type DeferredStream = {
|
|
23
|
-
resolve(v: ReadableStream | null): void;
|
|
24
|
-
reject(v: unknown): void;
|
|
25
|
-
promise: Promise<ReadableStream | null> & {
|
|
26
|
-
sizeHint?: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* A Future is a {@link Promise} which resolves or rejects with a {@link StructuredDocument}
|
|
31
|
-
* while providing the ability to {@link Future.abort | abort} the underlying request, and
|
|
32
|
-
* {@link Future.getStream | access the response stream} before the outer promise resolves;
|
|
33
|
-
*
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
export interface Future<T> extends Promise<StructuredDataDocument<T>> {
|
|
37
|
-
/**
|
|
38
|
-
* Cancel this request by firing the {@link AbortController}'s signal.
|
|
39
|
-
*
|
|
40
|
-
* This method can be used as an action or event handler as its
|
|
41
|
-
* context is bound to the Future instance.
|
|
42
|
-
*
|
|
43
|
-
* @privateRemarks
|
|
44
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
|
|
45
|
-
*
|
|
46
|
-
* @param reason optional reason for aborting the request
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
abort(reason?: string): void;
|
|
50
|
-
/**
|
|
51
|
-
* Get the response stream, if any, once made available.
|
|
52
|
-
*
|
|
53
|
-
* This method can be used as an action or event handler as its
|
|
54
|
-
* context is bound to the Future instance.
|
|
55
|
-
*
|
|
56
|
-
* @public
|
|
57
|
-
*/
|
|
58
|
-
getStream(): Promise<ReadableStream | null>;
|
|
59
|
-
/**
|
|
60
|
-
* Run a callback when this request completes. Use sparingly,
|
|
61
|
-
* mostly useful for instrumentation and infrastructure.
|
|
62
|
-
*
|
|
63
|
-
* @param cb the callback to run
|
|
64
|
-
*/
|
|
65
|
-
onFinalize(cb: () => void): void;
|
|
66
|
-
/**
|
|
67
|
-
* The identifier of the associated request, if any, as
|
|
68
|
-
* assigned by the CacheHandler.
|
|
69
|
-
*/
|
|
70
|
-
lid: RequestKey | null;
|
|
71
|
-
/**
|
|
72
|
-
* The id of the associated request, if any, as assigned
|
|
73
|
-
* by the RequestManager
|
|
74
|
-
*
|
|
75
|
-
* This is not unique across Manager instances and cannot
|
|
76
|
-
* be used to identify or dedupe requests.
|
|
77
|
-
*/
|
|
78
|
-
id: number;
|
|
79
|
-
/**
|
|
80
|
-
* The RequestManager or Store that initiated this request.
|
|
81
|
-
*
|
|
82
|
-
* @private
|
|
83
|
-
*/
|
|
84
|
-
requester: RequestManager | Store;
|
|
85
|
-
}
|
|
86
|
-
export type DeferredFuture<T> = {
|
|
87
|
-
resolve(v: StructuredDataDocument<T>): void;
|
|
88
|
-
reject(v: unknown): void;
|
|
89
|
-
promise: Future<T>;
|
|
90
|
-
};
|
|
91
|
-
export type NextFn<P = unknown> = (req: RequestInfo) => Future<P>;
|
|
92
|
-
/**
|
|
93
|
-
* Requests are fulfilled by handlers. A handler receives the request context
|
|
94
|
-
as well as a `next` function with which to pass along a request to the next
|
|
95
|
-
handler if it so chooses.
|
|
96
|
-
|
|
97
|
-
A handler may be any object with a `request` method. This allows both stateful and non-stateful
|
|
98
|
-
handlers to be utilized.
|
|
99
|
-
|
|
100
|
-
If a handler calls `next`, it receives a `Future` which resolves to a `StructuredDocument`
|
|
101
|
-
that it can then compose how it sees fit with its own response.
|
|
102
|
-
|
|
103
|
-
```ts
|
|
104
|
-
type NextFn<P> = (req: RequestInfo) => Future<P>;
|
|
105
|
-
|
|
106
|
-
interface Handler {
|
|
107
|
-
async request<T>(context: RequestContext, next: NextFn<P>): T;
|
|
108
|
-
}
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
`RequestContext` contains a readonly version of the RequestInfo as well as a few methods for building up the `StructuredDocument` and `Future` that will be part of the response.
|
|
112
|
-
|
|
113
|
-
```ts
|
|
114
|
-
interface RequestContext<T> {
|
|
115
|
-
readonly request: RequestInfo;
|
|
116
|
-
|
|
117
|
-
setStream(stream: ReadableStream | Promise<ReadableStream>): void;
|
|
118
|
-
setResponse(response: Response | ResponseInfo): void;
|
|
119
|
-
}
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
A basic `fetch` handler with support for streaming content updates while
|
|
123
|
-
the download is still underway might look like the following, where we use
|
|
124
|
-
[`response.clone()`](https://developer.mozilla.org/en-US/docs/Web/API/Response/clone) to `tee` the `ReadableStream` into two streams.
|
|
125
|
-
|
|
126
|
-
A more efficient handler might read from the response stream, building up the
|
|
127
|
-
response content before passing along the chunk downstream.
|
|
128
|
-
|
|
129
|
-
```ts
|
|
130
|
-
const FetchHandler = {
|
|
131
|
-
async request(context) {
|
|
132
|
-
const response = await fetch(context.request);
|
|
133
|
-
context.setResponse(reponse);
|
|
134
|
-
context.setStream(response.clone().body);
|
|
135
|
-
|
|
136
|
-
return response.json();
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### Stream Currying
|
|
142
|
-
|
|
143
|
-
`RequestManager.request` and `next` differ from `fetch` in one **crucial detail** in that the outer Promise resolves only once the response stream has been processed.
|
|
144
|
-
|
|
145
|
-
For context, it helps to understand a few of the use-cases that RequestManager
|
|
146
|
-
is intended to allow.
|
|
147
|
-
|
|
148
|
-
- to manage and return streaming content (such as video files)
|
|
149
|
-
- to fulfill a request from multiple sources or by splitting one request into multiple requests
|
|
150
|
-
- for instance one API call for a user and another for the user's friends
|
|
151
|
-
- or e.g. fulfilling part of the request from one source (one API, in-memory, localStorage, IndexedDB etc.) and the rest from another source (a different API, a WebWorker, etc.)
|
|
152
|
-
- to coalesce multiple requests
|
|
153
|
-
- to decorate a request with additional info
|
|
154
|
-
- e.g. an Auth handler that ensures the correct tokens or headers or cookies are attached.
|
|
155
|
-
|
|
156
|
-
----
|
|
157
|
-
|
|
158
|
-
`await fetch(<req>)` resolves at the moment headers are received. This allows for the body of the request to be processed as a stream by application
|
|
159
|
-
code *while chunks are still being received by the browser*.
|
|
160
|
-
|
|
161
|
-
When an app chooses to `await response.json()` what occurs is the browser reads the stream to completion and then returns the result. Additionally, this stream may only be read **once**.
|
|
162
|
-
|
|
163
|
-
The `RequestManager` preserves this ability to subscribe to and utilize the stream by either the application or the handler – thereby delivering the full power and flexibility of native APIs – without restricting developers in ways that lead to complicated workarounds.
|
|
164
|
-
|
|
165
|
-
Each handler may call `setStream` only once, but may do so *at any time* until the promise that the handler returns has resolved. The associated promise returned by calling `future.getStream` will resolve with the stream set by `setStream` if that method is called, or `null` if that method
|
|
166
|
-
has not been called by the time that the handler's request method has resolved.
|
|
167
|
-
|
|
168
|
-
Handlers that do not create a stream of their own, but which call `next`, should defensively pipe the stream forward. While this is not required (see automatic currying below) it is better to do so in most cases as otherwise the stream may not become available to downstream handlers or the application until the upstream handler has fully read it.
|
|
169
|
-
|
|
170
|
-
```ts
|
|
171
|
-
context.setStream(future.getStream());
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
Handlers that either call `next` multiple times or otherwise have reason to create multiple fetch requests should either choose to return no stream, meaningfully combine the streams, or select a single prioritized stream.
|
|
175
|
-
|
|
176
|
-
Of course, any handler may choose to read and handle the stream, and return either no stream or a different stream in the process.
|
|
177
|
-
|
|
178
|
-
### Automatic Currying of Stream and Response
|
|
179
|
-
|
|
180
|
-
In order to simplify the common case for handlers which decorate a request, if `next` is called only a single time and `setResponse` was never called by the handler, the response set by the next handler in the chain will be applied to that handler's outcome. For instance, this makes the following pattern possible `return (await next(<req>)).content;`.
|
|
181
|
-
|
|
182
|
-
Similarly, if `next` is called only a single time and neither `setStream` nor `getStream` was called, we automatically curry the stream from the future returned by `next` onto the future returned by the handler.
|
|
183
|
-
|
|
184
|
-
Finally, if the return value of a handler is a `Future`, we curry `content` and `errors` as well, thus enabling the simplest form `return next(<req>)`.
|
|
185
|
-
|
|
186
|
-
In the case of the `Future` being returned, `Stream` proxying is automatic and immediate and does not wait for the `Future` to resolve.
|
|
187
|
-
|
|
188
|
-
### Handler Order
|
|
189
|
-
|
|
190
|
-
Request handlers are registered by configuring the manager via `use`
|
|
191
|
-
|
|
192
|
-
```ts
|
|
193
|
-
const manager = new RequestManager()
|
|
194
|
-
.use([Handler1, Handler2]);
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
Handlers will be invoked in the order they are registered ("fifo", first-in first-out), and may only be registered up until the first request is made. It is recommended but not required to register all handlers at one time in order to ensure explicitly visible handler ordering.
|
|
198
|
-
|
|
199
|
-
@public
|
|
200
|
-
*/
|
|
201
|
-
export interface Handler {
|
|
202
|
-
/**
|
|
203
|
-
* Method to implement to handle requests. Receives the request
|
|
204
|
-
* context and a nextFn to call to pass-along the request to
|
|
205
|
-
* other handlers.
|
|
206
|
-
*
|
|
207
|
-
* @public
|
|
208
|
-
*/
|
|
209
|
-
request<T = unknown>(context: RequestContext, next: NextFn<T>): Promise<T | StructuredDataDocument<T>> | Future<T>;
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* The CacheHandler is identical to other handlers except that it
|
|
213
|
-
* is allowed to return a value synchronously. This is useful for
|
|
214
|
-
* features like reducing microtask queueing when de-duping.
|
|
215
|
-
*
|
|
216
|
-
* A RequestManager may only have one CacheHandler, registered via
|
|
217
|
-
* `manager.useCache(CacheHandler)`.
|
|
218
|
-
*
|
|
219
|
-
* @public
|
|
220
|
-
*/
|
|
221
|
-
export interface CacheHandler {
|
|
222
|
-
/**
|
|
223
|
-
* Method to implement to handle requests. Receives the request
|
|
224
|
-
* context and a nextFn to call to pass-along the request to
|
|
225
|
-
* other handlers.
|
|
226
|
-
*
|
|
227
|
-
* @public
|
|
228
|
-
*/
|
|
229
|
-
request<T = unknown>(context: RequestContext, next: NextFn<T>): Promise<T | StructuredDataDocument<T>> | Future<T> | T;
|
|
230
|
-
}
|
|
231
|
-
export interface RequestResponse<T> {
|
|
232
|
-
result: T;
|
|
233
|
-
}
|
|
234
|
-
export type GenericCreateArgs = Record<string | symbol, unknown>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { RequestInfo, StructuredDataDocument } from "../../types/request.js";
|
|
2
|
-
import { ContextOwner } from "./context.js";
|
|
3
|
-
import type { DeferredFuture, Future, GodContext, Handler } from "./types.js";
|
|
4
|
-
export declare const IS_CACHE_HANDLER: "___(unique) Symbol(IS_CACHE_HANDLER)";
|
|
5
|
-
export declare function curryFuture<T>(owner: ContextOwner, inbound: Future<T>, outbound: DeferredFuture<T>): Future<T>;
|
|
6
|
-
/**
|
|
7
|
-
* Additional properties exposed on errors thrown by the
|
|
8
|
-
* {@link Fetch | Fetch Handler}.
|
|
9
|
-
*
|
|
10
|
-
* In the case of an Abort or system/browser level issue,
|
|
11
|
-
* this extends {@link DOMException}.
|
|
12
|
-
*
|
|
13
|
-
* Else it extends from {@link AggregateError} if the
|
|
14
|
-
* response includes an array of errors, falling back
|
|
15
|
-
* to {@link Error} as its base.
|
|
16
|
-
*/
|
|
17
|
-
export interface FetchError extends DOMException {
|
|
18
|
-
/**
|
|
19
|
-
* Alias for {@link FetchError.status | status}.
|
|
20
|
-
*
|
|
21
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
|
|
22
|
-
*/
|
|
23
|
-
code: number;
|
|
24
|
-
/**
|
|
25
|
-
* The name associated to the {@link FetchError.status | status code}.
|
|
26
|
-
*
|
|
27
|
-
* Typically this will be of the formula `StatusTextError` for instance
|
|
28
|
-
* a 404 status with status text of `Not Found` would have the name
|
|
29
|
-
* `NotFoundError`.
|
|
30
|
-
*/
|
|
31
|
-
name: string;
|
|
32
|
-
/**
|
|
33
|
-
* The http status code associated to the returned error.
|
|
34
|
-
*
|
|
35
|
-
* Browser/System level network errors will often have an error code of `0` or `5`.
|
|
36
|
-
* Aborted requests will have an error code of `20`.
|
|
37
|
-
*
|
|
38
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
|
|
39
|
-
*/
|
|
40
|
-
status: number;
|
|
41
|
-
/**
|
|
42
|
-
* The Status Text associated to the {@link FetchError.status | status code}
|
|
43
|
-
* for the error.
|
|
44
|
-
*
|
|
45
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
statusText: string;
|
|
49
|
-
/**
|
|
50
|
-
* A property signifying that an Error uses the {@link FetchError}
|
|
51
|
-
* interface.
|
|
52
|
-
*/
|
|
53
|
-
isRequestError: true;
|
|
54
|
-
}
|
|
55
|
-
export declare function enhanceReason(reason?: string): DOMException;
|
|
56
|
-
export declare function handleOutcome<T>(owner: ContextOwner, inbound: Promise<T | StructuredDataDocument<T>>, outbound: DeferredFuture<T>): Future<T>;
|
|
57
|
-
export declare function executeNextHandler<T>(wares: Readonly<Handler[]>, request: RequestInfo, i: number, god: GodContext): Future<T>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { ReactiveDataDocument } from "./reactive.js";
|
|
2
|
-
import type { RequestInfo } from "./types/request.js";
|
|
3
|
-
import type { RequestSignature } from "./types/symbols.js";
|
|
4
|
-
export { createDeferred } from "./request/-private/future.js";
|
|
5
|
-
export type { Future, Handler, CacheHandler, NextFn, Deferred, ManagedRequestPriority } from "./request/-private/types.js";
|
|
6
|
-
export { setPromiseResult, getPromiseResult } from "./request/-private/promise-cache.js";
|
|
7
|
-
export type { Awaitable } from "./request/-private/promise-cache.js";
|
|
8
|
-
export type { Context } from "./request/-private/context.js";
|
|
9
|
-
/**
|
|
10
|
-
* Brands the supplied object with the supplied response type.
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* import type { ReactiveDataDocument } from '@warp-drive/core/reactive';
|
|
14
|
-
* import { withResponseType } from '@warp-drive/core/request';
|
|
15
|
-
* import type { User } from '#/data/user.ts'
|
|
16
|
-
*
|
|
17
|
-
* const result = await store.request(
|
|
18
|
-
* withResponseType<ReactiveDataDocument<User>>({ url: '/users/1' })
|
|
19
|
-
* );
|
|
20
|
-
*
|
|
21
|
-
* result.content.data; // will have type User
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
export declare function withResponseType<T>(obj: RequestInfo): RequestInfo<T> & {
|
|
26
|
-
[RequestSignature]: T;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Brands the supplied object with the supplied response type
|
|
30
|
-
* wrapped in {@link ReactiveDataDocument}. This is a convenience for
|
|
31
|
-
* the common case of using {@link withResponseType} with `ReactiveDataDocument`.
|
|
32
|
-
*
|
|
33
|
-
* ```ts
|
|
34
|
-
* import { withReactiveResponse } from '@warp-drive/core/request';
|
|
35
|
-
* import type { User } from '#/data/user.ts'
|
|
36
|
-
*
|
|
37
|
-
* const result = await store.request(
|
|
38
|
-
* withReactiveResponse<User>({ url: '/users/1' })
|
|
39
|
-
* );
|
|
40
|
-
*
|
|
41
|
-
* result.content.data; // will have type User
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
export declare function withReactiveResponse<T>(obj: RequestInfo): RequestInfo<ReactiveDataDocument<T>> & {
|
|
47
|
-
[RequestSignature]: ReactiveDataDocument<T>;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated use {@link withResponseType} instead
|
|
51
|
-
*/
|
|
52
|
-
export declare const withBrand: typeof withResponseType;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { CacheHandler as CacheHandlerType } from "../../../request.js";
|
|
2
|
-
import type { ImmutableRequestInfo, RequestContext } from "../../../types/request.js";
|
|
3
|
-
import type { ResourceIdentifierObject } from "../../../types/spec/json-api-raw.js";
|
|
4
|
-
import type { RequestSignature } from "../../../types/symbols.js";
|
|
5
|
-
import type { Store } from "../store-service.js";
|
|
6
|
-
export type LooseStoreRequestInfo<RT = unknown> = Omit<ImmutableRequestInfo<RT>, "records" | "headers" | typeof RequestSignature> & {
|
|
7
|
-
records?: ResourceIdentifierObject[];
|
|
8
|
-
headers?: Headers;
|
|
9
|
-
};
|
|
10
|
-
export type StoreRequestInput<RT = unknown> = ImmutableRequestInfo<RT> | LooseStoreRequestInfo<RT>;
|
|
11
|
-
export interface StoreRequestContext extends RequestContext {
|
|
12
|
-
request: ImmutableRequestInfo & {
|
|
13
|
-
store: Store;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* A CacheHandler that adds support for using an WarpDrive Cache with a RequestManager.
|
|
18
|
-
*
|
|
19
|
-
* This handler will only run when a request has supplied a `store` instance. Requests
|
|
20
|
-
* issued by the store via `store.request()` will automatically have the `store` instance
|
|
21
|
-
* attached to the request.
|
|
22
|
-
*
|
|
23
|
-
* ```ts
|
|
24
|
-
* requestManager.request({
|
|
25
|
-
* store: store,
|
|
26
|
-
* url: '/api/posts',
|
|
27
|
-
* method: 'GET'
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* When this handler elects to handle a request, it will return the raw `StructuredDocument`
|
|
32
|
-
* unless the request has `[EnableHydration]` set to `true`. In this case, the handler will
|
|
33
|
-
* return a `Document` instance that will automatically update the UI when the cache is updated
|
|
34
|
-
* in the future and will hydrate any identifiers in the StructuredDocument into Record instances.
|
|
35
|
-
*
|
|
36
|
-
* When issuing a request via the store, [EnableHydration] is automatically set to `true`. This
|
|
37
|
-
* means that if desired you can issue requests that utilize the cache without needing to also
|
|
38
|
-
* utilize Record instances if desired.
|
|
39
|
-
*
|
|
40
|
-
* Said differently, you could elect to issue all requests via a RequestManager, without ever using
|
|
41
|
-
* the store directly, by setting [EnableHydration] to `true` and providing a store instance. Not
|
|
42
|
-
* necessarily the most useful thing, but the decoupled nature of the RequestManager and incremental-feature
|
|
43
|
-
* approach of WarpDrive allows for this flexibility.
|
|
44
|
-
*
|
|
45
|
-
* ```ts
|
|
46
|
-
* import { EnableHydration } from '@warp-drive/core/types/request';
|
|
47
|
-
*
|
|
48
|
-
* requestManager.request({
|
|
49
|
-
* store: store,
|
|
50
|
-
* url: '/api/posts',
|
|
51
|
-
* method: 'GET',
|
|
52
|
-
* [EnableHydration]: true
|
|
53
|
-
* });
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
export declare const CacheHandler: CacheHandlerType;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { RequestKey } from "../../../types/identifier.js";
|
|
2
|
-
import type { ImmutableRequestInfo, ResponseInfo } from "../../../types/request.js";
|
|
3
|
-
import type { Store } from "../store-service.js";
|
|
4
|
-
/**
|
|
5
|
-
* A service which an application may provide to the store via
|
|
6
|
-
* the store's `lifetimes` property to configure the behavior
|
|
7
|
-
* of the CacheHandler.
|
|
8
|
-
*
|
|
9
|
-
* The default behavior for request lifetimes is to never expire
|
|
10
|
-
* unless manually refreshed via `cacheOptions.reload` or `cacheOptions.backgroundReload`.
|
|
11
|
-
*
|
|
12
|
-
* Implementing this service allows you to programatically define
|
|
13
|
-
* when a request should be considered expired.
|
|
14
|
-
*
|
|
15
|
-
* @class (Interface) CachePolicy
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
export interface CachePolicy {
|
|
19
|
-
/**
|
|
20
|
-
* Invoked to determine if the request may be fulfilled from cache
|
|
21
|
-
* if possible.
|
|
22
|
-
*
|
|
23
|
-
* Note, this is only invoked if the request has a cache-key.
|
|
24
|
-
*
|
|
25
|
-
* If no cache entry is found or the entry is hard expired,
|
|
26
|
-
* the request will be fulfilled from the configured request handlers
|
|
27
|
-
* and the cache will be updated before returning the response.
|
|
28
|
-
*
|
|
29
|
-
* @public
|
|
30
|
-
* @param {RequestKey} identifier
|
|
31
|
-
* @param {Store} store
|
|
32
|
-
* @return {Boolean} true if the request is considered hard expired
|
|
33
|
-
*/
|
|
34
|
-
isHardExpired(identifier: RequestKey, store: Store): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Invoked if `isHardExpired` is false to determine if the request
|
|
37
|
-
* should be update behind the scenes if cache data is already available.
|
|
38
|
-
*
|
|
39
|
-
* Note, this is only invoked if the request has a cache-key.
|
|
40
|
-
*
|
|
41
|
-
* If true, the request will be fulfilled from cache while a backgrounded
|
|
42
|
-
* request is made to update the cache via the configured request handlers.
|
|
43
|
-
*
|
|
44
|
-
* @public
|
|
45
|
-
* @param {RequestKey} identifier
|
|
46
|
-
* @param {Store} store
|
|
47
|
-
* @return {Boolean} true if the request is considered soft expired
|
|
48
|
-
*/
|
|
49
|
-
isSoftExpired(identifier: RequestKey, store: Store): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Invoked when a request will be sent to the configured request handlers.
|
|
52
|
-
* This is invoked for both foreground and background requests.
|
|
53
|
-
*
|
|
54
|
-
* Note, this is invoked regardless of whether the request has a cache-key.
|
|
55
|
-
*
|
|
56
|
-
* @public
|
|
57
|
-
* @param {ImmutableRequestInfo} request
|
|
58
|
-
* @param {RequestKey | null} identifier
|
|
59
|
-
* @param {Store} store
|
|
60
|
-
* @return {void}
|
|
61
|
-
*/
|
|
62
|
-
willRequest?(request: ImmutableRequestInfo, identifier: RequestKey | null, store: Store): void;
|
|
63
|
-
/**
|
|
64
|
-
* Invoked when a request has been fulfilled from the configured request handlers.
|
|
65
|
-
* This is invoked for both foreground and background requests once the cache has
|
|
66
|
-
* been updated.
|
|
67
|
-
*
|
|
68
|
-
* Note, this is invoked regardless of whether the request has a cache-key.
|
|
69
|
-
*
|
|
70
|
-
* It is best practice to notify the store of any requests marked as invalidated
|
|
71
|
-
* so that request subscriptions can reload when needed.
|
|
72
|
-
*
|
|
73
|
-
* ```ts
|
|
74
|
-
* store.notifications.notify(identifier, 'invalidated', null);
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* This allows anything subscribed to the request to be notified of the change
|
|
78
|
-
*
|
|
79
|
-
* e.g.
|
|
80
|
-
*
|
|
81
|
-
* ```ts
|
|
82
|
-
* store.notifications.subscribe(identifier, (_, type) => {
|
|
83
|
-
* if (type === 'invalidated') {
|
|
84
|
-
* // do update
|
|
85
|
-
* }
|
|
86
|
-
* });
|
|
87
|
-
* ```
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* @public
|
|
91
|
-
* @param {ImmutableRequestInfo} request
|
|
92
|
-
* @param {ImmutableResponse} response
|
|
93
|
-
* @param {RequestKey | null} identifier
|
|
94
|
-
* @param {Store} store
|
|
95
|
-
* @return {void}
|
|
96
|
-
*/
|
|
97
|
-
didRequest?(request: ImmutableRequestInfo, response: Response | ResponseInfo | null, identifier: RequestKey | null, store: Store): void;
|
|
98
|
-
}
|