@warp-drive/build-config 0.0.0-alpha.7

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 (60) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/LICENSE.md +9 -0
  3. package/NCC-1701-a-blue.svg +4 -0
  4. package/NCC-1701-a.svg +4 -0
  5. package/README.md +101 -0
  6. package/dist/addon-shim.cjs +30 -0
  7. package/dist/addon-shim.cjs.map +1 -0
  8. package/dist/babel-macros.js +46 -0
  9. package/dist/babel-macros.js.map +1 -0
  10. package/dist/babel-plugin-transform-asserts.cjs +99 -0
  11. package/dist/babel-plugin-transform-asserts.cjs.map +1 -0
  12. package/dist/babel-plugin-transform-deprecations.cjs +59 -0
  13. package/dist/babel-plugin-transform-deprecations.cjs.map +1 -0
  14. package/dist/babel-plugin-transform-features.cjs +69 -0
  15. package/dist/babel-plugin-transform-features.cjs.map +1 -0
  16. package/dist/babel-plugin-transform-logging.cjs +60 -0
  17. package/dist/babel-plugin-transform-logging.cjs.map +1 -0
  18. package/dist/canary-features-BzGSGY5j.js +97 -0
  19. package/dist/canary-features-BzGSGY5j.js.map +1 -0
  20. package/dist/canary-features.js +2 -0
  21. package/dist/canary-features.js.map +1 -0
  22. package/dist/debugging-BzogyWJo.js +121 -0
  23. package/dist/debugging-BzogyWJo.js.map +1 -0
  24. package/dist/debugging.js +2 -0
  25. package/dist/debugging.js.map +1 -0
  26. package/dist/deprecations-BXAnWRDO.js +28 -0
  27. package/dist/deprecations-BXAnWRDO.js.map +1 -0
  28. package/dist/deprecations.js +2 -0
  29. package/dist/deprecations.js.map +1 -0
  30. package/dist/env.js +6 -0
  31. package/dist/env.js.map +1 -0
  32. package/dist/index.js +578 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/macros.js +8 -0
  35. package/dist/macros.js.map +1 -0
  36. package/package.json +66 -0
  37. package/unstable-preview-types/-private/utils/deprecations.d.ts +10 -0
  38. package/unstable-preview-types/-private/utils/deprecations.d.ts.map +1 -0
  39. package/unstable-preview-types/-private/utils/features.d.ts +9 -0
  40. package/unstable-preview-types/-private/utils/features.d.ts.map +1 -0
  41. package/unstable-preview-types/-private/utils/get-env.d.ts +8 -0
  42. package/unstable-preview-types/-private/utils/get-env.d.ts.map +1 -0
  43. package/unstable-preview-types/babel-macros.d.ts +24 -0
  44. package/unstable-preview-types/babel-macros.d.ts.map +1 -0
  45. package/unstable-preview-types/canary-features.d.ts +92 -0
  46. package/unstable-preview-types/canary-features.d.ts.map +1 -0
  47. package/unstable-preview-types/debugging.d.ts +108 -0
  48. package/unstable-preview-types/debugging.d.ts.map +1 -0
  49. package/unstable-preview-types/deprecation-versions.d.ts +400 -0
  50. package/unstable-preview-types/deprecation-versions.d.ts.map +1 -0
  51. package/unstable-preview-types/deprecations.d.ts +13 -0
  52. package/unstable-preview-types/deprecations.d.ts.map +1 -0
  53. package/unstable-preview-types/env.d.ts +6 -0
  54. package/unstable-preview-types/env.d.ts.map +1 -0
  55. package/unstable-preview-types/index.d.ts +43 -0
  56. package/unstable-preview-types/index.d.ts.map +1 -0
  57. package/unstable-preview-types/macros.d.ts +5 -0
  58. package/unstable-preview-types/macros.d.ts.map +1 -0
  59. package/unstable-preview-types/validate-exports.type-test.d.ts +4 -0
  60. package/unstable-preview-types/validate-exports.type-test.d.ts.map +1 -0
@@ -0,0 +1,400 @@
1
+ declare module '@warp-drive/build-config/deprecation-versions' {
2
+ /**
3
+ * ## Deprecations
4
+ *
5
+ * EmberData allows users to opt-in and remove code that exists to support deprecated
6
+ * behaviors.
7
+ *
8
+ * If your app has resolved all deprecations present in a given version,
9
+ * you may specify that version as your "compatibility" version to remove
10
+ * the code that supported the deprecated behavior from your app.
11
+ *
12
+ * For instance, if a deprecation was introduced in 3.13, and the app specifies
13
+ * 3.13 as its minimum version compatibility, any deprecations introduced before
14
+ * or during 3.13 would be stripped away.
15
+ *
16
+ * An app can use a different version than what it specifies as it's compatibility
17
+ * version. For instance, an App could be using `3.16` while specifying compatibility
18
+ * with `3.12`. This would remove any deprecations that were present in or before `3.12`
19
+ * but keep support for anything deprecated in or above `3.13`.
20
+ *
21
+ * ### Configuring Compatibility
22
+ *
23
+ * To configure your compatibility version, set the `compatWith` to the version you
24
+ * are compatible with on the `emberData` config in your `ember-cli-build.js` file.
25
+ *
26
+ * ```js
27
+ * let app = new EmberApp(defaults, {
28
+ * emberData: {
29
+ * compatWith: '3.12',
30
+ * },
31
+ * });
32
+ * ```
33
+ *
34
+ * Alternatively, individual deprecations can be resolved (and thus have its support stripped)
35
+ * via one of the flag names listed below. For instance, given a flag named `DEPRECATE_FOO_BEHAVIOR`.
36
+ *
37
+ * This capability is interopable with `compatWith`. You may set `compatWith` and then selectively resolve
38
+ * additional deprecations, or set compatWith and selectively un-resolve specific deprecations.
39
+ *
40
+ * Note: EmberData does not test against permutations of deprecations being stripped, our tests run against
41
+ * "all deprecated code included" and "all deprecated code removed". Unspecified behavior may sometimes occur
42
+ * when removing code for only some deprecations associated to a version number.
43
+ *
44
+ * ```js
45
+ * let app = new EmberApp(defaults, {
46
+ * emberData: {
47
+ * deprecations: {
48
+ * DEPRECATE_FOO_BEHAVIOR: false // set to false to strip this code
49
+ * DEPRECATE_BAR_BEHAVIOR: true // force to true to not strip this code
50
+ * }
51
+ * }
52
+ * })
53
+ * ```
54
+ *
55
+ * The complete list of which versions specific deprecations will be removed in
56
+ * can be found [here](https://github.com/emberjs/data/blob/main/packages/build-config/src/virtual/deprecation-versions.ts "List of EmberData Deprecations")
57
+ *
58
+ * @module @warp-drive/build-config/deprecations
59
+ * @main @warp-drive/build-config/deprecations
60
+ */
61
+ /**
62
+ * The following list represents deprecations currently active.
63
+ *
64
+ * Some deprecation flags guard multiple deprecation IDs. All
65
+ * associated IDs are listed.
66
+ *
67
+ * @class CurrentDeprecations
68
+ * @public
69
+ */
70
+ export const DEPRECATE_CATCH_ALL = "99.0";
71
+ /**
72
+ * **id: ember-data:deprecate-non-strict-types**
73
+ *
74
+ * Currently, EmberData expects that the `type` property associated with
75
+ * a resource follows several conventions.
76
+ *
77
+ * - The `type` property must be a non-empty string
78
+ * - The `type` property must be singular
79
+ * - The `type` property must be dasherized
80
+ *
81
+ * We are deprecating support for types that do not match this pattern
82
+ * in order to unlock future improvements in which we can support `type`
83
+ * being any string of your choosing.
84
+ *
85
+ * The goal is that in the future, you will be able to use any string
86
+ * so long as it matches what your configured cache, identifier generation,
87
+ * and schemas expect.
88
+ *
89
+ * E.G. It will matter not that your string is in a specific format like
90
+ * singular, dasherized, etc. so long as everywhere you refer to the type
91
+ * you use the same string.
92
+ *
93
+ * If using @ember-data/model, there will always be a restriction that the
94
+ * `type` must match the path on disk where the model is defined.
95
+ *
96
+ * e.g. `app/models/foo/bar-bem.js` must have a type of `foo/bar-bem`
97
+ *
98
+ * @property DEPRECATE_NON_STRICT_TYPES
99
+ * @since 5.3
100
+ * @until 6.0
101
+ * @public
102
+ */
103
+ export const DEPRECATE_NON_STRICT_TYPES = "5.3";
104
+ /**
105
+ * **id: ember-data:deprecate-non-strict-id**
106
+ *
107
+ * Currently, EmberData expects that the `id` property associated with
108
+ * a resource is a string.
109
+ *
110
+ * However, for legacy support in many locations we would accept a number
111
+ * which would then immediately be coerced into a string.
112
+ *
113
+ * We are deprecating this legacy support for numeric IDs.
114
+ *
115
+ * The goal is that in the future, you will be able to use any ID format
116
+ * so long as everywhere you refer to the ID you use the same format.
117
+ *
118
+ * However, for identifiers we will always use string IDs and so any
119
+ * custom identifier configuration should provide a string ID.
120
+ *
121
+ * @property DEPRECATE_NON_STRICT_ID
122
+ * @since 5.3
123
+ * @until 6.0
124
+ * @public
125
+ */
126
+ export const DEPRECATE_NON_STRICT_ID = "5.3";
127
+ /**
128
+ * **id: <none yet assigned>**
129
+ *
130
+ * This is a planned deprecation which will trigger when observer or computed
131
+ * chains are used to watch for changes on any EmberData LiveArray, CollectionRecordArray,
132
+ * ManyArray or PromiseManyArray.
133
+ *
134
+ * Support for these chains is currently guarded by the deprecation flag
135
+ * listed here, enabling removal of the behavior if desired.
136
+ *
137
+ * @property DEPRECATE_COMPUTED_CHAINS
138
+ * @since 5.0
139
+ * @until 6.0
140
+ * @public
141
+ */
142
+ export const DEPRECATE_COMPUTED_CHAINS = "5.0";
143
+ /**
144
+ * **id: ember-data:deprecate-legacy-imports**
145
+ *
146
+ * Deprecates when importing from `ember-data/*` instead of `@ember-data/*`
147
+ * in order to prepare for the eventual removal of the legacy `ember-data/*`
148
+ *
149
+ * All imports from `ember-data/*` should be updated to `@ember-data/*`
150
+ * except for `ember-data/store`. When you are using `ember-data` (as opposed to
151
+ * installing the indivudal packages) you should import from `ember-data/store`
152
+ * instead of `@ember-data/store` in order to receive the appropriate configuration
153
+ * of defaults.
154
+ *
155
+ * @property DEPRECATE_LEGACY_IMPORTS
156
+ * @since 5.3
157
+ * @until 6.0
158
+ * @public
159
+ */
160
+ export const DEPRECATE_LEGACY_IMPORTS = "5.3";
161
+ /**
162
+ * **id: ember-data:deprecate-non-unique-collection-payloads**
163
+ *
164
+ * Deprecates when the data for a hasMany relationship contains
165
+ * duplicate identifiers.
166
+ *
167
+ * Previously, relationships would silently de-dupe the data
168
+ * when received, but this behavior is being removed in favor
169
+ * of erroring if the same related record is included multiple
170
+ * times.
171
+ *
172
+ * For instance, in JSON:API the below relationship data would
173
+ * be considered invalid:
174
+ *
175
+ * ```json
176
+ * {
177
+ * "data": {
178
+ * "type": "article",
179
+ * "id": "1",
180
+ * "relationships": {
181
+ * "comments": {
182
+ * "data": [
183
+ * { "type": "comment", "id": "1" },
184
+ * { "type": "comment", "id": "2" },
185
+ * { "type": "comment", "id": "1" } // duplicate
186
+ * ]
187
+ * }
188
+ * }
189
+ * }
190
+ * ```
191
+ *
192
+ * To resolve this deprecation, either update your server to
193
+ * not include duplicate data, or implement normalization logic
194
+ * in either a request handler or serializer which removes
195
+ * duplicate data from relationship payloads.
196
+ *
197
+ * @property DEPRECATE_NON_UNIQUE_PAYLOADS
198
+ * @since 5.3
199
+ * @until 6.0
200
+ * @public
201
+ */
202
+ export const DEPRECATE_NON_UNIQUE_PAYLOADS = "5.3";
203
+ /**
204
+ * **id: ember-data:deprecate-relationship-remote-update-clearing-local-state**
205
+ *
206
+ * Deprecates when a relationship is updated remotely and the local state
207
+ * is cleared of all changes except for "new" records.
208
+ *
209
+ * Instead, any records not present in the new payload will be considered
210
+ * "removed" while any records present in the new payload will be considered "added".
211
+ *
212
+ * This allows us to "commit" local additions and removals, preserving any additions
213
+ * or removals that are not yet reflected in the remote state.
214
+ *
215
+ * For instance, given the following initial state:
216
+ *
217
+ * remote: A, B, C
218
+ * local: add D, E
219
+ * remove B, C
220
+ * => A, D, E
221
+ *
222
+ *
223
+ * If after an update, the remote state is now A, B, D, F then the new state will be
224
+ *
225
+ * remote: A, B, D, F
226
+ * local: add E
227
+ * remove B
228
+ * => A, D, E, F
229
+ *
230
+ * Under the old behavior the updated local state would instead have been
231
+ * => A, B, D, F
232
+ *
233
+ * Similarly, if a belongsTo remote State was A while its local state was B,
234
+ * then under the old behavior if the remote state changed to C, the local state
235
+ * would be updated to C. Under the new behavior, the local state would remain B.
236
+ *
237
+ * If the remote state was A while its local state was `null`, then under the old
238
+ * behavior if the remote state changed to C, the local state would be updated to C.
239
+ * Under the new behavior, the local state would remain `null`.
240
+ *
241
+ * Thus the new correct mental model is that the state of the relationship at any point
242
+ * in time is whatever the most recent remote state is, plus any local additions or removals
243
+ * you have made that have not yet been reflected by the remote state.
244
+ *
245
+ * > Note: The old behavior extended to modifying the inverse of a relationship. So if
246
+ * > you had local state not reflected in the new remote state, inverses would be notified
247
+ * > and their state reverted as well when "resetting" the relationship.
248
+ * > Under the new behavior, since the local state is preserved the inverses will also
249
+ * > not be reverted.
250
+ *
251
+ * ### Resolving this deprecation
252
+ *
253
+ * Resolving this deprecation can be done individually for each relationship
254
+ * or globally for all relationships.
255
+ *
256
+ * To resolve it globally, set the `DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE`
257
+ * to `false` in ember-cli-build.js
258
+ *
259
+ * ```js
260
+ * let app = new EmberApp(defaults, {
261
+ * emberData: {
262
+ * deprecations: {
263
+ * // set to false to strip the deprecated code (thereby opting into the new behavior)
264
+ * DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE: false
265
+ * }
266
+ * }
267
+ * })
268
+ * ```
269
+ *
270
+ * To resolve this deprecation on an individual relationship, adjust the `options` passed to
271
+ * the relationship. For relationships with inverses, both sides MUST be migrated to the new
272
+ * behavior at the same time.
273
+ *
274
+ * ```js
275
+ * class Person extends Model {
276
+ * @hasMany('person', {
277
+ * async: false,
278
+ * inverse: null,
279
+ * resetOnRemoteUpdate: false
280
+ * }) children;
281
+ *
282
+ * @belongsTo('person', {
283
+ * async: false,
284
+ * inverse: null,
285
+ * resetOnRemoteUpdate: false
286
+ * }) parent;
287
+ * }
288
+ * ```
289
+ *
290
+ * > Note: false is the only valid value here, all other values (including missing)
291
+ * > will be treated as true, where `true` is the legacy behavior that is now deprecated.
292
+ *
293
+ * Once you have migrated all relationships, you can remove the the resetOnRemoteUpdate
294
+ * option and set the deprecation flag to false in ember-cli-build.
295
+ *
296
+ * ### What if I don't want the new behavior?
297
+ *
298
+ * EmberData's philosophy is to not make assumptions about your application. Where possible
299
+ * we seek out "100%" solutions – solutions that work for all use cases - and where that is
300
+ * not possible we default to "90%" solutions – solutions that work for the vast majority of use
301
+ * cases. In the case of "90%" solutions we look for primitives that allow you to resolve the
302
+ * 10% case in your application. If no such primitives exist, we provide an escape hatch that
303
+ * ensures you can build the behavior you need without adopting the cost of the default solution.
304
+ *
305
+ * In this case, the old behavior was a "40%" solution. The inability for an application developer
306
+ * to determine what changes were made locally, and thus what changes should be preserved, made
307
+ * it impossible to build certain features easily, or in some cases at all. The proliferation of
308
+ * feature requests, bug reports (from folks surprised by the prior behavior) and addon attempts
309
+ * in this space are all evidence of this.
310
+ *
311
+ * We believe the new behavior is a "90%" solution. It works for the vast majority of use cases,
312
+ * often without noticeable changes to existing application behavior, and provides primitives that
313
+ * allow you to build the behavior you need for the remaining 10%.
314
+ *
315
+ * The great news is that this behavior defaults to trusting your API similar to the old behavior.
316
+ * If your API is correct, you will not need to make any changes to your application to adopt
317
+ * the new behavior.
318
+ *
319
+ * This means the 10% cases are those where you can't trust your API to provide the correct
320
+ * information. In these cases, because you now have cheap access to a diff of the relationship
321
+ * state, there are a few options that weren't available before:
322
+ *
323
+ * - you can adjust returned API payloads to contain the expected changes that it doesn't include
324
+ * - you can modify local state by adding or removing records on the HasMany record array to remove
325
+ * any local changes that were not returned by the API.
326
+ * - you can use `<Cache>.mutate(mutation)` to directly modify the local cache state of the relationship
327
+ * to match the expected state.
328
+ *
329
+ * What this version (5.3) does not yet provide is a way to directly modify the cache's remote state
330
+ * for the relationship via public APIs other than via the broader action of upserting a response via
331
+ * `<Cache>.put(document)`. However, such an API was sketched in the Cache 2.1 RFC
332
+ * `<Cache>.patch(operation)` and is likely to be added in a future 5.x release of EmberData.
333
+ *
334
+ * This version (5.3) also does not yet provide a way to directly modify the graph (a general purpose
335
+ * subset of cache behaviors specific to relationships) via public APIs. However, during the
336
+ * 5.x release series we will be working on finalizing the Graph API and making it public.
337
+ *
338
+ * If none of these options work for you, you can always opt-out more broadly by implementing
339
+ * a custom Cache with the relationship behaviors you need.
340
+ *
341
+ * @property DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE
342
+ * @since 5.3
343
+ * @until 6.0
344
+ * @public
345
+ */
346
+ export const DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE = "5.3";
347
+ /**
348
+ * **id: ember-data:deprecate-many-array-duplicates**
349
+ *
350
+ * When the flag is `true` (default), adding duplicate records to a `ManyArray`
351
+ * is deprecated in non-production environments. In production environments,
352
+ * duplicate records added to a `ManyArray` will be deduped and no error will
353
+ * be thrown.
354
+ *
355
+ * When the flag is `false`, an error will be thrown when duplicates are added.
356
+ *
357
+ * @property DEPRECATE_MANY_ARRAY_DUPLICATES
358
+ * @since 5.3
359
+ * @until 6.0
360
+ * @public
361
+ */
362
+ export const DEPRECATE_MANY_ARRAY_DUPLICATES = "5.3";
363
+ /**
364
+ * **id: ember-data:deprecate-store-extends-ember-object**
365
+ *
366
+ * When the flag is `true` (default), the Store class will extend from `@ember/object`.
367
+ * When the flag is `false` or `ember-source` is not present, the Store will not extend
368
+ * from EmberObject.
369
+ *
370
+ * @property DEPRECATE_STORE_EXTENDS_EMBER_OBJECT
371
+ * @since 5.4
372
+ * @until 6.0
373
+ * @public
374
+ */
375
+ export const DEPRECATE_STORE_EXTENDS_EMBER_OBJECT = "5.4";
376
+ /**
377
+ * **id: ember-data:schema-service-updates**
378
+ *
379
+ * When the flag is `true` (default), the legacy schema
380
+ * service features will be enabled on the store and
381
+ * the service, and deprecations will be thrown when
382
+ * they are used.
383
+ *
384
+ * Deprecated features include:
385
+ *
386
+ * - `Store.registerSchema` method is deprecated in favor of the `Store.createSchemaService` hook
387
+ * - `Store.registerSchemaDefinitionService` method is deprecated in favor of the `Store.createSchemaService` hook
388
+ * - `Store.getSchemaDefinitionService` method is deprecated in favor of `Store.schema` property
389
+ * - `SchemaService.doesTypeExist` method is deprecated in favor of the `SchemaService.hasResource` method
390
+ * - `SchemaService.attributesDefinitionFor` method is deprecated in favor of the `SchemaService.fields` method
391
+ * - `SchemaService.relationshipsDefinitionFor` method is deprecated in favor of the `SchemaService.fields` method
392
+ *
393
+ * @property ENABLE_LEGACY_SCHEMA_SERVICE
394
+ * @since 5.4
395
+ * @until 6.0
396
+ * @public
397
+ */
398
+ export const ENABLE_LEGACY_SCHEMA_SERVICE = "5.4";
399
+ }
400
+ //# sourceMappingURL=deprecation-versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecation-versions.d.ts","sourceRoot":"","sources":["../src/deprecation-versions.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAE7C;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAE/C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8IG;AACH,eAAO,MAAM,yDAAyD,QAAQ,CAAC;AAE/E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,+BAA+B,QAAQ,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oCAAoC,QAAQ,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,4BAA4B,QAAQ,CAAC"}
@@ -0,0 +1,13 @@
1
+ declare module '@warp-drive/build-config/deprecations' {
2
+ export const DEPRECATE_CATCH_ALL: boolean;
3
+ export const DEPRECATE_COMPUTED_CHAINS: boolean;
4
+ export const DEPRECATE_NON_STRICT_TYPES: boolean;
5
+ export const DEPRECATE_NON_STRICT_ID: boolean;
6
+ export const DEPRECATE_LEGACY_IMPORTS: boolean;
7
+ export const DEPRECATE_NON_UNIQUE_PAYLOADS: boolean;
8
+ export const DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE: boolean;
9
+ export const DEPRECATE_MANY_ARRAY_DUPLICATES: boolean;
10
+ export const DEPRECATE_STORE_EXTENDS_EMBER_OBJECT: boolean;
11
+ export const ENABLE_LEGACY_SCHEMA_SERVICE: boolean;
12
+ }
13
+ //# sourceMappingURL=deprecations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecations.d.ts","sourceRoot":"","sources":["../src/deprecations.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,EAAE,OAAc,CAAC;AACjD,eAAO,MAAM,yBAAyB,EAAE,OAAc,CAAC;AACvD,eAAO,MAAM,0BAA0B,EAAE,OAAc,CAAC;AACxD,eAAO,MAAM,uBAAuB,EAAE,OAAc,CAAC;AACrD,eAAO,MAAM,wBAAwB,EAAE,OAAc,CAAC;AACtD,eAAO,MAAM,6BAA6B,EAAE,OAAc,CAAC;AAC3D,eAAO,MAAM,yDAAyD,EAAE,OAAc,CAAC;AACvF,eAAO,MAAM,+BAA+B,EAAE,OAAc,CAAC;AAC7D,eAAO,MAAM,oCAAoC,EAAE,OAAc,CAAC;AAClE,eAAO,MAAM,4BAA4B,EAAE,OAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare module '@warp-drive/build-config/env' {
2
+ export const DEBUG: boolean;
3
+ export const PRODUCTION: boolean;
4
+ export const TESTING: boolean;
5
+ }
6
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,EAAE,OAAc,CAAC;AACnC,eAAO,MAAM,UAAU,EAAE,OAAc,CAAC;AACxC,eAAO,MAAM,OAAO,EAAE,OAAc,CAAC"}
@@ -0,0 +1,43 @@
1
+ /// <reference path="./macros.d.ts" />
2
+ /// <reference path="./validate-exports.type-test.d.ts" />
3
+ /// <reference path="./deprecation-versions.d.ts" />
4
+ /// <reference path="./canary-features.d.ts" />
5
+ /// <reference path="./deprecations.d.ts" />
6
+ /// <reference path="./env.d.ts" />
7
+ /// <reference path="./babel-macros.d.ts" />
8
+ /// <reference path="./debugging.d.ts" />
9
+ /// <reference path="./-private/utils/get-env.d.ts" />
10
+ /// <reference path="./-private/utils/features.d.ts" />
11
+ /// <reference path="./-private/utils/deprecations.d.ts" />
12
+ declare module '@warp-drive/build-config' {
13
+ import { getDeprecations } from '@warp-drive/build-config/-private/utils/deprecations.ts';
14
+ import { getFeatures } from '@warp-drive/build-config/-private/utils/features.ts';
15
+ import * as LOGGING from '@warp-drive/build-config/debugging.ts';
16
+ type LOG_CONFIG_KEY = keyof typeof LOGGING;
17
+ export type WarpDriveConfig = {
18
+ debug?: Partial<InternalWarpDriveConfig['debug']>;
19
+ polyfillUUID?: boolean;
20
+ includeDataAdapterInProduction?: boolean;
21
+ compatWith?: `${number}.${number}`;
22
+ deprecations?: Partial<InternalWarpDriveConfig['deprecations']>;
23
+ features?: Partial<InternalWarpDriveConfig['features']>;
24
+ };
25
+ type InternalWarpDriveConfig = {
26
+ debug: {
27
+ [key in LOG_CONFIG_KEY]: boolean;
28
+ };
29
+ polyfillUUID: boolean;
30
+ includeDataAdapter: boolean;
31
+ compatWith: `${number}.${number}` | null;
32
+ deprecations: ReturnType<typeof getDeprecations>;
33
+ features: ReturnType<typeof getFeatures>;
34
+ env: {
35
+ TESTING: boolean;
36
+ PRODUCTION: boolean;
37
+ DEBUG: boolean;
38
+ };
39
+ };
40
+ export function setConfig(context: object, appRoot: string, config: WarpDriveConfig): void;
41
+ export {};
42
+ }
43
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,KAAK,cAAc,GAAG,MAAM,OAAO,OAAO,CAAC;AAE3C,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,UAAU,CAAC,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC,CAAC;CACzD,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE;SAAG,GAAG,IAAI,cAAc,GAAG,OAAO;KAAE,CAAC;IAC5C,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,GAAG,IAAI,CAAC;IACzC,YAAY,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACzC,GAAG,EAAE;QACH,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,CAAC;KAChB,CAAC;CACH,CAAC;AAWF,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,QA4BlF"}
@@ -0,0 +1,5 @@
1
+ declare module '@warp-drive/build-config/macros' {
2
+ export function assert(message: string, condition: unknown): asserts condition;
3
+ export function assert(message: string): never;
4
+ }
5
+ //# sourceMappingURL=macros.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"macros.d.ts","sourceRoot":"","sources":["../src/macros.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC;AAC/E,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC"}
@@ -0,0 +1,4 @@
1
+ declare module '@warp-drive/build-config/validate-exports.type-test' {
2
+ export {};
3
+ }
4
+ //# sourceMappingURL=validate-exports.type-test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-exports.type-test.d.ts","sourceRoot":"","sources":["../src/validate-exports.type-test.ts"],"names":[],"mappings":""}