@warp-drive-mirror/build-config 5.6.0-alpha.3 → 5.6.0-alpha.5

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 (49) hide show
  1. package/dist/babel-macros.js +45 -12
  2. package/dist/babel-macros.js.map +1 -1
  3. package/dist/babel-plugin-transform-asserts.cjs +2 -2
  4. package/dist/babel-plugin-transform-asserts.cjs.map +1 -1
  5. package/dist/babel-plugin-transform-deprecations.cjs +2 -2
  6. package/dist/babel-plugin-transform-deprecations.cjs.map +1 -1
  7. package/dist/babel-plugin-transform-features.cjs +2 -2
  8. package/dist/babel-plugin-transform-features.cjs.map +1 -1
  9. package/dist/babel-plugin-transform-logging.cjs +2 -2
  10. package/dist/babel-plugin-transform-logging.cjs.map +1 -1
  11. package/dist/canary-features-DF5hbs2w.js +170 -0
  12. package/dist/canary-features-DF5hbs2w.js.map +1 -0
  13. package/dist/canary-features.js +1 -1
  14. package/dist/cjs-set-config.cjs +174 -602
  15. package/dist/cjs-set-config.cjs.map +1 -1
  16. package/dist/{debugging-BtpYr1v0.js → debugging-VdsvkNjX.js} +80 -62
  17. package/dist/debugging-VdsvkNjX.js.map +1 -0
  18. package/dist/debugging.js +1 -1
  19. package/dist/deprecations-BVxAmwe9.js +549 -0
  20. package/dist/deprecations-BVxAmwe9.js.map +1 -0
  21. package/dist/deprecations.js +1 -1
  22. package/dist/env.js +124 -0
  23. package/dist/env.js.map +1 -1
  24. package/dist/index.js +12 -515
  25. package/dist/index.js.map +1 -1
  26. package/dist/macros.js +18 -0
  27. package/dist/macros.js.map +1 -1
  28. package/package.json +2 -5
  29. package/unstable-preview-types/babel-macros.d.ts +10 -0
  30. package/unstable-preview-types/babel-macros.d.ts.map +1 -1
  31. package/unstable-preview-types/canary-features.d.ts +97 -40
  32. package/unstable-preview-types/canary-features.d.ts.map +1 -1
  33. package/unstable-preview-types/debugging.d.ts +59 -48
  34. package/unstable-preview-types/debugging.d.ts.map +1 -1
  35. package/unstable-preview-types/deprecation-versions.d.ts +0 -469
  36. package/unstable-preview-types/deprecation-versions.d.ts.map +1 -1
  37. package/unstable-preview-types/deprecations.d.ts +504 -1
  38. package/unstable-preview-types/deprecations.d.ts.map +1 -1
  39. package/unstable-preview-types/env.d.ts +123 -0
  40. package/unstable-preview-types/env.d.ts.map +1 -1
  41. package/unstable-preview-types/index.d.ts +77 -13
  42. package/unstable-preview-types/index.d.ts.map +1 -1
  43. package/unstable-preview-types/macros.d.ts +16 -0
  44. package/unstable-preview-types/macros.d.ts.map +1 -1
  45. package/dist/canary-features-D1wplYmb.js +0 -113
  46. package/dist/canary-features-D1wplYmb.js.map +0 -1
  47. package/dist/debugging-BtpYr1v0.js.map +0 -1
  48. package/dist/deprecations-D_dBAPC9.js +0 -34
  49. package/dist/deprecations-D_dBAPC9.js.map +0 -1
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ import semver from 'semver';
3
3
  import fs from 'fs';
4
4
  import path from 'path';
5
5
  import { fileURLToPath } from 'url';
6
- import { C as CURRENT_FEATURES } from './canary-features-D1wplYmb.js';
7
- import { L as LOGGING } from './debugging-BtpYr1v0.js';
6
+ import { C as CURRENT_FEATURES } from './canary-features-DF5hbs2w.js';
7
+ import { L as LOGGING } from './debugging-VdsvkNjX.js';
8
8
 
9
9
  function getEnv() {
10
10
  const {
@@ -29,9 +29,6 @@ function getEnv() {
29
29
  };
30
30
  }
31
31
 
32
- /**
33
- * @module @warp-drive-mirror/build-config
34
- */
35
32
  // ========================
36
33
  // FOR CONTRIBUTING AUTHORS
37
34
  //
@@ -49,496 +46,18 @@ function getEnv() {
49
46
  //
50
47
  // ========================
51
48
  //
52
-
53
- /**
54
- * ## Deprecation Management
55
- *
56
- * EmberData allows users to opt-in and remove code that exists to support deprecated
57
- * behaviors.
58
- *
59
- * If your app has resolved all deprecations present in a given version,
60
- * you may specify that version as your "compatibility" version to remove
61
- * the code that supported the deprecated behavior from your app.
62
- *
63
- * For instance, if a deprecation was introduced in 3.13, and the app specifies
64
- * 3.13 as its minimum version compatibility, any deprecations introduced before
65
- * or during 3.13 would be stripped away.
66
- *
67
- * An app can use a different version than what it specifies as it's compatibility
68
- * version. For instance, an App could be using `3.16` while specifying compatibility
69
- * with `3.12`. This would remove any deprecations that were present in or before `3.12`
70
- * but keep support for anything deprecated in or above `3.13`.
71
- *
72
- * You may also specify that specific deprecations are resolved. These approaches
73
- * may be used together.
74
- *
75
- * ```ts
76
- * setConfig(app, __dirname, {
77
- * // declare that all deprecations through "5.0" have been fully resolved
78
- * compatWith: '5.0',
79
- *
80
- * // mark individual deprecations as resolved by setting them to `false`
81
- * deprecations: {
82
- * // resolve individual deprecations here
83
- * },
84
- * });
85
- * ```
86
- *
87
- * > [!TIP]
88
- * > EmberData does not test against permutations of deprecations
89
- * > being stripped, our tests run against "all deprecated code included"
90
- * > and "all deprecated code removed". Unspecified behavior may sometimes occur
91
- * > when removing code for only some deprecations associated to a version number.
92
- *
93
- * @class CurrentDeprecations
94
- * @public
95
- */
96
49
  const DEPRECATE_CATCH_ALL = '99.0';
97
- /**
98
- * **id: ember-data:deprecate-non-strict-types**
99
- *
100
- * Currently, EmberData expects that the `type` property associated with
101
- * a resource follows several conventions.
102
- *
103
- * - The `type` property must be a non-empty string
104
- * - The `type` property must be singular
105
- * - The `type` property must be dasherized
106
- *
107
- * We are deprecating support for types that do not match this pattern
108
- * in order to unlock future improvements in which we can support `type`
109
- * being any string of your choosing.
110
- *
111
- * The goal is that in the future, you will be able to use any string
112
- * so long as it matches what your configured cache, identifier generation,
113
- * and schemas expect.
114
- *
115
- * E.G. It will matter not that your string is in a specific format like
116
- * singular, dasherized, etc. so long as everywhere you refer to the type
117
- * you use the same string.
118
- *
119
- * If using @ember-data-mirror/model, there will always be a restriction that the
120
- * `type` must match the path on disk where the model is defined.
121
- *
122
- * e.g. `app/models/foo/bar-bem.js` must have a type of `foo/bar-bem`
123
- *
124
- * @property DEPRECATE_NON_STRICT_TYPES
125
- * @type {Boolean}
126
- * @since 5.3
127
- * @until 6.0
128
- * @public
129
- */
130
50
  const DEPRECATE_NON_STRICT_TYPES = '5.3';
131
-
132
- /**
133
- * **id: ember-data:deprecate-non-strict-id**
134
- *
135
- * Currently, EmberData expects that the `id` property associated with
136
- * a resource is a string.
137
- *
138
- * However, for legacy support in many locations we would accept a number
139
- * which would then immediately be coerced into a string.
140
- *
141
- * We are deprecating this legacy support for numeric IDs.
142
- *
143
- * The goal is that in the future, you will be able to use any ID format
144
- * so long as everywhere you refer to the ID you use the same format.
145
- *
146
- * However, for identifiers we will always use string IDs and so any
147
- * custom identifier configuration should provide a string ID.
148
- *
149
- * @property DEPRECATE_NON_STRICT_ID
150
- * @type {Boolean}
151
- * @since 5.3
152
- * @until 6.0
153
- * @public
154
- */
155
51
  const DEPRECATE_NON_STRICT_ID = '5.3';
156
-
157
- /**
158
- * **id: <none yet assigned>**
159
- *
160
- * This is a planned deprecation which will trigger when observer or computed
161
- * chains are used to watch for changes on any EmberData LiveArray, CollectionRecordArray,
162
- * ManyArray or PromiseManyArray.
163
- *
164
- * Support for these chains is currently guarded by the deprecation flag
165
- * listed here, enabling removal of the behavior if desired.
166
- *
167
- * The instrumentation was added in 5.0 but the version number
168
- * is set to 7.0 as we do not want to strip support without
169
- * adding a deprecation message.
170
- *
171
- * Once we've added the deprecation message, we will
172
- * update this version number to the proper version.
173
- *
174
- * @property DEPRECATE_COMPUTED_CHAINS
175
- * @type {Boolean}
176
- * @since 5.0
177
- * @until 8.0
178
- * @public
179
- */
180
52
  const DEPRECATE_COMPUTED_CHAINS = '7.0';
181
-
182
- /**
183
- * **id: ember-data:deprecate-legacy-imports**
184
- *
185
- * Deprecates when importing from `ember-data/*` instead of `@ember-data/*`
186
- * in order to prepare for the eventual removal of the legacy `ember-data/*`
187
- *
188
- * All imports from `ember-data/*` should be updated to `@ember-data/*`
189
- * except for `ember-data/store`. When you are using `ember-data` (as opposed to
190
- * installing the indivudal packages) you should import from `ember-data/store`
191
- * instead of `@ember-data-mirror/store` in order to receive the appropriate configuration
192
- * of defaults.
193
- *
194
- * @property DEPRECATE_LEGACY_IMPORTS
195
- * @type {Boolean}
196
- * @since 5.3
197
- * @until 6.0
198
- * @public
199
- */
200
53
  const DEPRECATE_LEGACY_IMPORTS = '5.3';
201
-
202
- /**
203
- * **id: ember-data:deprecate-non-unique-collection-payloads**
204
- *
205
- * Deprecates when the data for a hasMany relationship contains
206
- * duplicate identifiers.
207
- *
208
- * Previously, relationships would silently de-dupe the data
209
- * when received, but this behavior is being removed in favor
210
- * of erroring if the same related record is included multiple
211
- * times.
212
- *
213
- * For instance, in JSON:API the below relationship data would
214
- * be considered invalid:
215
- *
216
- * ```json
217
- * {
218
- * "data": {
219
- * "type": "article",
220
- * "id": "1",
221
- * "relationships": {
222
- * "comments": {
223
- * "data": [
224
- * { "type": "comment", "id": "1" },
225
- * { "type": "comment", "id": "2" },
226
- * { "type": "comment", "id": "1" } // duplicate
227
- * ]
228
- * }
229
- * }
230
- * }
231
- * ```
232
- *
233
- * To resolve this deprecation, either update your server to
234
- * not include duplicate data, or implement normalization logic
235
- * in either a request handler or serializer which removes
236
- * duplicate data from relationship payloads.
237
- *
238
- * @property DEPRECATE_NON_UNIQUE_PAYLOADS
239
- * @type {Boolean}
240
- * @since 5.3
241
- * @until 6.0
242
- * @public
243
- */
244
54
  const DEPRECATE_NON_UNIQUE_PAYLOADS = '5.3';
245
-
246
- /**
247
- * **id: ember-data:deprecate-relationship-remote-update-clearing-local-state**
248
- *
249
- * Deprecates when a relationship is updated remotely and the local state
250
- * is cleared of all changes except for "new" records.
251
- *
252
- * Instead, any records not present in the new payload will be considered
253
- * "removed" while any records present in the new payload will be considered "added".
254
- *
255
- * This allows us to "commit" local additions and removals, preserving any additions
256
- * or removals that are not yet reflected in the remote state.
257
- *
258
- * For instance, given the following initial state:
259
- *
260
- * remote: A, B, C
261
- * local: add D, E
262
- * remove B, C
263
- * => A, D, E
264
- *
265
- *
266
- * If after an update, the remote state is now A, B, D, F then the new state will be
267
- *
268
- * remote: A, B, D, F
269
- * local: add E
270
- * remove B
271
- * => A, D, E, F
272
- *
273
- * Under the old behavior the updated local state would instead have been
274
- * => A, B, D, F
275
- *
276
- * Similarly, if a belongsTo remote State was A while its local state was B,
277
- * then under the old behavior if the remote state changed to C, the local state
278
- * would be updated to C. Under the new behavior, the local state would remain B.
279
- *
280
- * If the remote state was A while its local state was `null`, then under the old
281
- * behavior if the remote state changed to C, the local state would be updated to C.
282
- * Under the new behavior, the local state would remain `null`.
283
- *
284
- * Thus the new correct mental model is that the state of the relationship at any point
285
- * in time is whatever the most recent remote state is, plus any local additions or removals
286
- * you have made that have not yet been reflected by the remote state.
287
- *
288
- * > Note: The old behavior extended to modifying the inverse of a relationship. So if
289
- * > you had local state not reflected in the new remote state, inverses would be notified
290
- * > and their state reverted as well when "resetting" the relationship.
291
- * > Under the new behavior, since the local state is preserved the inverses will also
292
- * > not be reverted.
293
- *
294
- * ### Resolving this deprecation
295
- *
296
- * Resolving this deprecation can be done individually for each relationship
297
- * or globally for all relationships.
298
- *
299
- * To resolve it globally, set the `DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE`
300
- * to `false` in ember-cli-build.js
301
- *
302
- * ```js
303
- * const { setConfig } = await import('@warp-drive-mirror/build-config');
304
- *
305
- * let app = new EmberApp(defaults, {});
306
- *
307
- * setConfig(app, __dirname, {
308
- * deprecations: {
309
- * // set to false to strip the deprecated code (thereby opting into the new behavior)
310
- * DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE: false
311
- * }
312
- * });
313
- * ```
314
- *
315
- * To resolve this deprecation on an individual relationship, adjust the `options` passed to
316
- * the relationship. For relationships with inverses, both sides MUST be migrated to the new
317
- * behavior at the same time.
318
- *
319
- * ```js
320
- * class Person extends Model {
321
- * @hasMany('person', {
322
- * async: false,
323
- * inverse: null,
324
- * resetOnRemoteUpdate: false
325
- * }) children;
326
- *
327
- * @belongsTo('person', {
328
- * async: false,
329
- * inverse: null,
330
- * resetOnRemoteUpdate: false
331
- * }) parent;
332
- * }
333
- * ```
334
- *
335
- * > Note: false is the only valid value here, all other values (including missing)
336
- * > will be treated as true, where `true` is the legacy behavior that is now deprecated.
337
- *
338
- * Once you have migrated all relationships, you can remove the the resetOnRemoteUpdate
339
- * option and set the deprecation flag to false in ember-cli-build.
340
- *
341
- * ### What if I don't want the new behavior?
342
- *
343
- * EmberData's philosophy is to not make assumptions about your application. Where possible
344
- * we seek out "100%" solutions – solutions that work for all use cases - and where that is
345
- * not possible we default to "90%" solutions – solutions that work for the vast majority of use
346
- * cases. In the case of "90%" solutions we look for primitives that allow you to resolve the
347
- * 10% case in your application. If no such primitives exist, we provide an escape hatch that
348
- * ensures you can build the behavior you need without adopting the cost of the default solution.
349
- *
350
- * In this case, the old behavior was a "40%" solution. The inability for an application developer
351
- * to determine what changes were made locally, and thus what changes should be preserved, made
352
- * it impossible to build certain features easily, or in some cases at all. The proliferation of
353
- * feature requests, bug reports (from folks surprised by the prior behavior) and addon attempts
354
- * in this space are all evidence of this.
355
- *
356
- * We believe the new behavior is a "90%" solution. It works for the vast majority of use cases,
357
- * often without noticeable changes to existing application behavior, and provides primitives that
358
- * allow you to build the behavior you need for the remaining 10%.
359
- *
360
- * The great news is that this behavior defaults to trusting your API similar to the old behavior.
361
- * If your API is correct, you will not need to make any changes to your application to adopt
362
- * the new behavior.
363
- *
364
- * This means the 10% cases are those where you can't trust your API to provide the correct
365
- * information. In these cases, because you now have cheap access to a diff of the relationship
366
- * state, there are a few options that weren't available before:
367
- *
368
- * - you can adjust returned API payloads to contain the expected changes that it doesn't include
369
- * - you can modify local state by adding or removing records on the HasMany record array to remove
370
- * any local changes that were not returned by the API.
371
- * - you can use `<Cache>.mutate(mutation)` to directly modify the local cache state of the relationship
372
- * to match the expected state.
373
- *
374
- * What this version (5.3) does not yet provide is a way to directly modify the cache's remote state
375
- * for the relationship via public APIs other than via the broader action of upserting a response via
376
- * `<Cache>.put(document)`. However, such an API was sketched in the Cache 2.1 RFC
377
- * `<Cache>.patch(operation)` and is likely to be added in a future 5.x release of EmberData.
378
- *
379
- * This version (5.3) also does not yet provide a way to directly modify the graph (a general purpose
380
- * subset of cache behaviors specific to relationships) via public APIs. However, during the
381
- * 5.x release series we will be working on finalizing the Graph API and making it public.
382
- *
383
- * If none of these options work for you, you can always opt-out more broadly by implementing
384
- * a custom Cache with the relationship behaviors you need.
385
- *
386
- * @property DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE
387
- * @type {Boolean}
388
- * @since 5.3
389
- * @until 6.0
390
- * @public
391
- */
392
55
  const DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE = '5.3';
393
-
394
- /**
395
- * **id: ember-data:deprecate-many-array-duplicates**
396
- *
397
- * When the flag is `true` (default), adding duplicate records to a `ManyArray`
398
- * is deprecated in non-production environments. In production environments,
399
- * duplicate records added to a `ManyArray` will be deduped and no error will
400
- * be thrown.
401
- *
402
- * When the flag is `false`, an error will be thrown when duplicates are added.
403
- *
404
- * @property DEPRECATE_MANY_ARRAY_DUPLICATES
405
- * @type {Boolean}
406
- * @since 5.3
407
- * @until 6.0
408
- * @public
409
- */
410
56
  const DEPRECATE_MANY_ARRAY_DUPLICATES = '5.3';
411
-
412
- /**
413
- * **id: ember-data:deprecate-store-extends-ember-object**
414
- *
415
- * When the flag is `true` (default), the Store class will extend from `@ember/object`.
416
- * When the flag is `false` or `ember-source` is not present, the Store will not extend
417
- * from EmberObject.
418
- *
419
- * @property DEPRECATE_STORE_EXTENDS_EMBER_OBJECT
420
- * @type {Boolean}
421
- * @since 5.4
422
- * @until 6.0
423
- * @public
424
- */
425
57
  const DEPRECATE_STORE_EXTENDS_EMBER_OBJECT = '5.4';
426
-
427
- /**
428
- * **id: ember-data:schema-service-updates**
429
- *
430
- * When the flag is `true` (default), the legacy schema
431
- * service features will be enabled on the store and
432
- * the service, and deprecations will be thrown when
433
- * they are used.
434
- *
435
- * Deprecated features include:
436
- *
437
- * - `Store.registerSchema` method is deprecated in favor of the `Store.createSchemaService` hook
438
- * - `Store.registerSchemaDefinitionService` method is deprecated in favor of the `Store.createSchemaService` hook
439
- * - `Store.getSchemaDefinitionService` method is deprecated in favor of `Store.schema` property
440
- * - `SchemaService.doesTypeExist` method is deprecated in favor of the `SchemaService.hasResource` method
441
- * - `SchemaService.attributesDefinitionFor` method is deprecated in favor of the `SchemaService.fields` method
442
- * - `SchemaService.relationshipsDefinitionFor` method is deprecated in favor of the `SchemaService.fields` method
443
- *
444
- * @property ENABLE_LEGACY_SCHEMA_SERVICE
445
- * @type {Boolean}
446
- * @since 5.4
447
- * @until 6.0
448
- * @public
449
- */
450
58
  const ENABLE_LEGACY_SCHEMA_SERVICE = '5.4';
451
-
452
- /**
453
- * **id: warp-drive.ember-inflector**
454
- *
455
- * Deprecates the use of ember-inflector for pluralization and singularization in favor
456
- * of the `@ember-data-mirror/request-utils` package.
457
- *
458
- * Rule configuration methods (singular, plural, uncountable, irregular) and
459
- * usage methods (singularize, pluralize) are are available as imports from
460
- * `@ember-data-mirror/request-utils/string`
461
- *
462
- * Notable differences with ember-inflector:
463
- * - there cannot be multiple inflector instances with separate rules
464
- * - pluralization does not support a count argument
465
- * - string caches now default to 10k entries instead of 1k, and this
466
- * size is now configurable. Additionally, the cache is now a LRU cache
467
- * instead of a first-N cache.
468
- *
469
- * This deprecation can be resolved by removing usage of ember-inflector or by using
470
- * both ember-inflector and @ember-data-mirror/request-utils in parallel and updating your
471
- * EmberData/WarpDrive build config to mark the deprecation as resolved
472
- * in ember-cli-build
473
- *
474
- * ```js
475
- * setConfig(app, __dirname, { deprecations: { DEPRECATE_EMBER_INFLECTOR: false }});
476
- * ```
477
- *
478
- * @property DEPRECATE_EMBER_INFLECTOR
479
- * @type {Boolean}
480
- * @since 5.3
481
- * @until 6.0
482
- * @public
483
- */
484
59
  const DEPRECATE_EMBER_INFLECTOR = '5.3';
485
-
486
- /**
487
- * This is a special flag that can be used to opt-in early to receiving deprecations introduced in 6.x
488
- * which have had their infra backported to 5.x versions of EmberData.
489
- *
490
- * When this flag is not present or set to `true`, the deprecations from the 6.x branch
491
- * will not print their messages and the deprecation cannot be resolved.
492
- *
493
- * When this flag is present and set to `false`, the deprecations from the 6.x branch will
494
- * print and can be resolved.
495
- *
496
- * @property DISABLE_7X_DEPRECATIONS
497
- * @type {Boolean}
498
- * @since 5.3
499
- * @until 7.0
500
- * @public
501
- */
502
60
  const DISABLE_7X_DEPRECATIONS = '7.0';
503
-
504
- /**
505
- * **id: warp-drive:deprecate-tracking-package**
506
- *
507
- * Deprecates the use of the @ember-data-mirror/tracking package which
508
- * historically provided bindings into Ember's reactivity system.
509
- *
510
- * This package is no longer needed as the configuration is now
511
- * provided by the @warp-drive-mirror/ember package.
512
- *
513
- * This deprecation can be resolved by removing the
514
- * @ember-data-mirror/tracking package from your project and ensuring
515
- * that your app.js file has the following import:
516
- *
517
- * ```js
518
- * import '@warp-drive-mirror/ember/install';
519
- * ```
520
- *
521
- * Once this import is present, you can remove the deprecation
522
- * by setting the deprecation to `false` in your build config:
523
- *
524
- * ```js
525
- * // inside of ember-cli-build.js
526
- *
527
- * const { setConfig } = await import('@warp-drive-mirror/build-config');
528
- *
529
- * setConfig(app, __dirname, {
530
- * deprecations: {
531
- * DEPRECATE_TRACKING_PACKAGE: false
532
- * }
533
- * });
534
- * ```
535
- *
536
- * @property DEPRECATE_TRACKING_PACKAGE
537
- * @type {Boolean}
538
- * @since 5.5
539
- * @until 6.0
540
- * @public
541
- */
542
61
  const DEPRECATE_TRACKING_PACKAGE = '5.5';
543
62
 
544
63
  const CURRENT_DEPRECATIONS = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
@@ -674,17 +193,17 @@ function createLoggingConfig(env, debug) {
674
193
  *
675
194
  * This configuration is done using `setConfig` in `ember-cli-build`.
676
195
  *
677
- * ```ts
196
+ * ```ts [ember-cli-build.js]
678
197
  * 'use strict';
679
198
  *
680
199
  * const EmberApp = require('ember-cli/lib/broccoli/ember-app');
681
200
  *
682
201
  * module.exports = async function (defaults) {
683
- * const { setConfig } = await import('@warp-drive-mirror/build-config');
202
+ * const { setConfig } = await import('@warp-drive-mirror/build-config'); // [!code focus]
684
203
  *
685
204
  * const app = new EmberApp(defaults, {});
686
205
  *
687
- * setConfig(app, __dirname, {
206
+ * setConfig(app, __dirname, { // [!code focus:3]
688
207
  * // settings here
689
208
  * });
690
209
  *
@@ -696,38 +215,16 @@ function createLoggingConfig(env, debug) {
696
215
  *
697
216
  * Available settings include:
698
217
  *
699
- * - [Debug Logging](../classes/DebugLogging)
700
- * - [Deprecated Code Removal](../classes/CurrentDeprecations)
701
- * - [Canary Feature Activation](../classes/CanaryFeatures)
702
- *
703
- * As well as:
218
+ * - {@link LOGGING | debugging}
219
+ * - {@link DEPRECATIONS | deprecations}
220
+ * - {@link FEATURES | features}
221
+ * - {@link WarpDriveConfig.polyfillUUID | polyfillUUID}
222
+ * - {@link WarpDriveConfig.includeDataAdapterInProduction | includeDataAdapterInProduction}
223
+ * - {@link WarpDriveConfig.compatWith | compatWith}
704
224
  *
705
- * ### polyfillUUID
706
225
  *
707
- * If you are using the library in an environment that does not support `window.crypto.randomUUID`
708
- * you can enable a polyfill for it.
709
- *
710
- * ```ts
711
- * setConfig(app, __dirname, {
712
- * polyfillUUID: true
713
- * });
714
- * ```
715
- *
716
- * ### includeDataAdapterInProduction
717
- *
718
- * By default, the integration required to support the ember inspector browser extension
719
- * is included in production builds only when using the `ember-data` package. Otherwise
720
- * the default is to exclude it. This setting allows to explicitly enable/disable it in
721
- * production builds.
722
- *
723
- * ```ts
724
- * setConfig(app, __dirname, {
725
- * includeDataAdapterInProduction: true
726
- * });
727
- * ```
728
226
  *
729
- * @module @warp-drive-mirror/build-config
730
- * @main @warp-drive-mirror/build-config
227
+ * @module
731
228
  */
732
229
  const _MacrosConfig = EmbroiderMacros.MacrosConfig;
733
230
  function recastMacrosConfig(macros) {