@ember-data/store 5.5.0-alpha.9 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/LICENSE.md +19 -7
  2. package/README.md +21 -12
  3. package/addon-main.cjs +5 -0
  4. package/dist/-private.js +2 -0
  5. package/{addon → dist}/-private.js.map +1 -1
  6. package/dist/configure-BfLLW6GY.js +161 -0
  7. package/dist/configure-BfLLW6GY.js.map +1 -0
  8. package/dist/configure.js +1 -0
  9. package/dist/configure.js.map +1 -0
  10. package/dist/index.js +5 -0
  11. package/{addon → dist}/index.js.map +1 -1
  12. package/dist/request-state-uRtpn0Lc.js +7709 -0
  13. package/dist/request-state-uRtpn0Lc.js.map +1 -0
  14. package/dist/types.js +0 -0
  15. package/dist/types.js.map +1 -0
  16. package/logos/NCC-1701-a-blue.svg +4 -0
  17. package/logos/NCC-1701-a-gold.svg +4 -0
  18. package/logos/NCC-1701-a-gold_100.svg +1 -0
  19. package/logos/NCC-1701-a-gold_base-64.txt +1 -0
  20. package/logos/NCC-1701-a.svg +4 -0
  21. package/logos/README.md +4 -0
  22. package/logos/docs-badge.svg +2 -0
  23. package/logos/github-header.svg +444 -0
  24. package/logos/social1.png +0 -0
  25. package/logos/social2.png +0 -0
  26. package/logos/warp-drive-logo-dark.svg +4 -0
  27. package/logos/warp-drive-logo-gold.svg +4 -0
  28. package/package.json +66 -53
  29. package/unstable-preview-types/-private/cache-handler/handler.d.ts +62 -0
  30. package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +1 -0
  31. package/unstable-preview-types/-private/cache-handler/types.d.ts +107 -0
  32. package/unstable-preview-types/-private/cache-handler/types.d.ts.map +1 -0
  33. package/unstable-preview-types/-private/cache-handler/utils.d.ts +34 -0
  34. package/unstable-preview-types/-private/cache-handler/utils.d.ts.map +1 -0
  35. package/unstable-preview-types/-private/caches/cache-utils.d.ts +11 -0
  36. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +1 -0
  37. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +180 -0
  38. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +1 -0
  39. package/unstable-preview-types/-private/caches/instance-cache.d.ts +64 -0
  40. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +1 -0
  41. package/unstable-preview-types/-private/caches/resource-utils.d.ts +12 -0
  42. package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +1 -0
  43. package/unstable-preview-types/-private/debug/utils.d.ts +9 -0
  44. package/unstable-preview-types/-private/debug/utils.d.ts.map +1 -0
  45. package/unstable-preview-types/-private/document.d.ts +155 -0
  46. package/unstable-preview-types/-private/document.d.ts.map +1 -0
  47. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +179 -0
  48. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +1 -0
  49. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +19 -0
  50. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +1 -0
  51. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +31 -0
  52. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +1 -0
  53. package/unstable-preview-types/-private/managers/cache-manager.d.ts +463 -0
  54. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +1 -0
  55. package/unstable-preview-types/-private/managers/notification-manager.d.ts +101 -0
  56. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +1 -0
  57. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +101 -0
  58. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +1 -0
  59. package/unstable-preview-types/-private/network/request-cache.d.ts +109 -0
  60. package/unstable-preview-types/-private/network/request-cache.d.ts.map +1 -0
  61. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +289 -0
  62. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +1 -0
  63. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +92 -0
  64. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +1 -0
  65. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts +172 -0
  66. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts.map +1 -0
  67. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts +32 -0
  68. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts.map +1 -0
  69. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +276 -0
  70. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +1 -0
  71. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +145 -0
  72. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +1 -0
  73. package/unstable-preview-types/-private/record-arrays/many-array.d.ts +203 -0
  74. package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +1 -0
  75. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +118 -0
  76. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +1 -0
  77. package/unstable-preview-types/-private/store-service.d.ts +1601 -0
  78. package/unstable-preview-types/-private/store-service.d.ts.map +1 -0
  79. package/unstable-preview-types/-private/store-service.type-test.d.ts +4 -0
  80. package/unstable-preview-types/-private/store-service.type-test.d.ts.map +1 -0
  81. package/unstable-preview-types/-private/utils/coerce-id.d.ts +10 -0
  82. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +1 -0
  83. package/unstable-preview-types/-private/utils/construct-resource.d.ts +9 -0
  84. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +1 -0
  85. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +4 -0
  86. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +1 -0
  87. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +4 -0
  88. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +1 -0
  89. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +4 -0
  90. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +1 -0
  91. package/unstable-preview-types/-private.d.ts +33 -0
  92. package/unstable-preview-types/-private.d.ts.map +1 -0
  93. package/unstable-preview-types/-types/overview.d.ts +21 -0
  94. package/unstable-preview-types/-types/overview.d.ts.map +1 -0
  95. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +110 -0
  96. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +1 -0
  97. package/unstable-preview-types/-types/q/ds-model.d.ts +25 -0
  98. package/unstable-preview-types/-types/q/ds-model.d.ts.map +1 -0
  99. package/unstable-preview-types/-types/q/identifier.d.ts +193 -0
  100. package/unstable-preview-types/-types/q/identifier.d.ts.map +1 -0
  101. package/unstable-preview-types/-types/q/promise-proxies.d.ts +4 -0
  102. package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +1 -0
  103. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +36 -0
  104. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +1 -0
  105. package/unstable-preview-types/-types/q/record-instance.d.ts +29 -0
  106. package/unstable-preview-types/-types/q/record-instance.d.ts.map +1 -0
  107. package/unstable-preview-types/-types/q/schema-service.d.ts +354 -0
  108. package/unstable-preview-types/-types/q/schema-service.d.ts.map +1 -0
  109. package/unstable-preview-types/-types/q/store.d.ts +38 -0
  110. package/unstable-preview-types/-types/q/store.d.ts.map +1 -0
  111. package/unstable-preview-types/configure.d.ts +21 -0
  112. package/unstable-preview-types/configure.d.ts.map +1 -0
  113. package/unstable-preview-types/index.d.ts +229 -0
  114. package/unstable-preview-types/index.d.ts.map +1 -0
  115. package/unstable-preview-types/types.d.ts +7 -0
  116. package/unstable-preview-types/types.d.ts.map +1 -0
  117. package/addon/-private.js +0 -1
  118. package/addon/index.js +0 -1
  119. package/addon/store-service-45bbfe5a.js +0 -5619
  120. package/addon/store-service-45bbfe5a.js.map +0 -1
  121. package/addon-main.js +0 -93
  122. /package/{ember-data-logo-dark.svg → logos/ember-data-logo-dark.svg} +0 -0
  123. /package/{ember-data-logo-light.svg → logos/ember-data-logo-light.svg} +0 -0
package/addon-main.js DELETED
@@ -1,93 +0,0 @@
1
- const requireModule = require('@ember-data/private-build-infra/src/utilities/require-module');
2
- const getEnv = require('@ember-data/private-build-infra/src/utilities/get-env');
3
- const detectModule = require('@ember-data/private-build-infra/src/utilities/detect-module');
4
-
5
- const pkg = require('./package.json');
6
-
7
- module.exports = {
8
- name: pkg.name,
9
-
10
- options: {
11
- '@embroider/macros': {
12
- setOwnConfig: {},
13
- },
14
- },
15
-
16
- _emberDataConfig: null,
17
- configureEmberData() {
18
- if (this._emberDataConfig) {
19
- return this._emberDataConfig;
20
- }
21
- const app = this._findHost();
22
- const isProd = /production/.test(process.env.EMBER_ENV);
23
- const hostOptions = app.options?.emberData || {};
24
- const debugOptions = Object.assign(
25
- {
26
- LOG_PAYLOADS: false,
27
- LOG_OPERATIONS: false,
28
- LOG_MUTATIONS: false,
29
- LOG_NOTIFICATIONS: false,
30
- LOG_REQUESTS: false,
31
- LOG_REQUEST_STATUS: false,
32
- LOG_IDENTIFIERS: false,
33
- LOG_GRAPH: false,
34
- LOG_INSTANCE_CACHE: false,
35
- },
36
- hostOptions.debug || {}
37
- );
38
-
39
- const HAS_DEBUG_PACKAGE = detectModule(require, '@ember-data/debug', __dirname, pkg);
40
- const HAS_META_PACKAGE = detectModule(require, 'ember-data', __dirname, pkg);
41
-
42
- const includeDataAdapterInProduction =
43
- typeof hostOptions.includeDataAdapterInProduction === 'boolean'
44
- ? hostOptions.includeDataAdapterInProduction
45
- : HAS_META_PACKAGE;
46
-
47
- const includeDataAdapter = HAS_DEBUG_PACKAGE ? (isProd ? includeDataAdapterInProduction : true) : false;
48
- const DEPRECATIONS = require('@ember-data/private-build-infra/src/deprecations')(hostOptions.compatWith || null);
49
- const FEATURES = require('@ember-data/private-build-infra/src/features')(isProd);
50
-
51
- const ALL_PACKAGES = requireModule('@ember-data/private-build-infra/virtual-packages/packages.js');
52
- const MACRO_PACKAGE_FLAGS = Object.assign({}, ALL_PACKAGES.default);
53
- delete MACRO_PACKAGE_FLAGS['HAS_DEBUG_PACKAGE'];
54
-
55
- Object.keys(MACRO_PACKAGE_FLAGS).forEach((key) => {
56
- MACRO_PACKAGE_FLAGS[key] = detectModule(require, MACRO_PACKAGE_FLAGS[key], __dirname, pkg);
57
- });
58
-
59
- // copy configs forward
60
- const ownConfig = this.options['@embroider/macros'].setOwnConfig;
61
- ownConfig.compatWith = hostOptions.compatWith || null;
62
- ownConfig.debug = debugOptions;
63
- ownConfig.deprecations = Object.assign(DEPRECATIONS, ownConfig.deprecations || {}, hostOptions.deprecations || {});
64
- ownConfig.features = Object.assign({}, FEATURES, ownConfig.features || {}, hostOptions.features || {});
65
- ownConfig.includeDataAdapter = includeDataAdapter;
66
- ownConfig.packages = MACRO_PACKAGE_FLAGS;
67
- ownConfig.env = getEnv(ownConfig);
68
-
69
- this._emberDataConfig = ownConfig;
70
- return ownConfig;
71
- },
72
-
73
- included() {
74
- this.configureEmberData();
75
- return this._super.included.call(this, ...arguments);
76
- },
77
-
78
- treeForVendor() {
79
- return;
80
- },
81
- treeForPublic() {
82
- return;
83
- },
84
- treeForStyles() {
85
- return;
86
- },
87
- treeForAddonStyles() {
88
- return;
89
- },
90
- treeForApp() {
91
- return;
92
- },
93
- };