@warp-drive-mirror/build-config 5.6.0-alpha.3 → 5.6.0-alpha.4
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/dist/babel-macros.js +45 -12
- package/dist/babel-macros.js.map +1 -1
- package/dist/babel-plugin-transform-asserts.cjs +2 -2
- package/dist/babel-plugin-transform-asserts.cjs.map +1 -1
- package/dist/babel-plugin-transform-deprecations.cjs +2 -2
- package/dist/babel-plugin-transform-deprecations.cjs.map +1 -1
- package/dist/babel-plugin-transform-features.cjs +2 -2
- package/dist/babel-plugin-transform-features.cjs.map +1 -1
- package/dist/babel-plugin-transform-logging.cjs +2 -2
- package/dist/babel-plugin-transform-logging.cjs.map +1 -1
- package/dist/canary-features-DF5hbs2w.js +170 -0
- package/dist/canary-features-DF5hbs2w.js.map +1 -0
- package/dist/canary-features.js +1 -1
- package/dist/cjs-set-config.cjs +174 -602
- package/dist/cjs-set-config.cjs.map +1 -1
- package/dist/{debugging-BtpYr1v0.js → debugging-VdsvkNjX.js} +80 -62
- package/dist/debugging-VdsvkNjX.js.map +1 -0
- package/dist/debugging.js +1 -1
- package/dist/deprecations-BVxAmwe9.js +549 -0
- package/dist/deprecations-BVxAmwe9.js.map +1 -0
- package/dist/deprecations.js +1 -1
- package/dist/env.js +124 -0
- package/dist/env.js.map +1 -1
- package/dist/index.js +12 -515
- package/dist/index.js.map +1 -1
- package/dist/macros.js +18 -0
- package/dist/macros.js.map +1 -1
- package/package.json +2 -5
- package/unstable-preview-types/babel-macros.d.ts +10 -0
- package/unstable-preview-types/babel-macros.d.ts.map +1 -1
- package/unstable-preview-types/canary-features.d.ts +97 -40
- package/unstable-preview-types/canary-features.d.ts.map +1 -1
- package/unstable-preview-types/debugging.d.ts +59 -48
- package/unstable-preview-types/debugging.d.ts.map +1 -1
- package/unstable-preview-types/deprecation-versions.d.ts +0 -469
- package/unstable-preview-types/deprecation-versions.d.ts.map +1 -1
- package/unstable-preview-types/deprecations.d.ts +504 -1
- package/unstable-preview-types/deprecations.d.ts.map +1 -1
- package/unstable-preview-types/env.d.ts +123 -0
- package/unstable-preview-types/env.d.ts.map +1 -1
- package/unstable-preview-types/index.d.ts +77 -13
- package/unstable-preview-types/index.d.ts.map +1 -1
- package/unstable-preview-types/macros.d.ts +16 -0
- package/unstable-preview-types/macros.d.ts.map +1 -1
- package/dist/canary-features-D1wplYmb.js +0 -113
- package/dist/canary-features-D1wplYmb.js.map +0 -1
- package/dist/debugging-BtpYr1v0.js.map +0 -1
- package/dist/deprecations-D_dBAPC9.js +0 -34
- package/dist/deprecations-D_dBAPC9.js.map +0 -1
|
@@ -1,41 +1,105 @@
|
|
|
1
|
-
/// <reference path="./deprecations.d.ts" />
|
|
2
|
-
/// <reference path="./babel-macros.d.ts" />
|
|
3
1
|
/// <reference path="./canary-features.d.ts" />
|
|
4
|
-
/// <reference path="./env.d.ts" />
|
|
5
|
-
/// <reference path="./cjs-set-config.d.ts" />
|
|
6
2
|
/// <reference path="./deprecation-versions.d.ts" />
|
|
3
|
+
/// <reference path="./babel-macros.d.ts" />
|
|
4
|
+
/// <reference path="./cjs-set-config.d.ts" />
|
|
7
5
|
/// <reference path="./validate-exports.type-test.d.ts" />
|
|
8
6
|
/// <reference path="./debugging.d.ts" />
|
|
7
|
+
/// <reference path="./env.d.ts" />
|
|
9
8
|
/// <reference path="./macros.d.ts" />
|
|
10
|
-
/// <reference path="
|
|
9
|
+
/// <reference path="./deprecations.d.ts" />
|
|
11
10
|
/// <reference path="./-private/utils/get-env.d.ts" />
|
|
12
|
-
/// <reference path="./-private/utils/features.d.ts" />
|
|
13
11
|
/// <reference path="./-private/utils/logging.d.ts" />
|
|
12
|
+
/// <reference path="./-private/utils/features.d.ts" />
|
|
13
|
+
/// <reference path="./-private/utils/deprecations.d.ts" />
|
|
14
14
|
declare module '@warp-drive-mirror/build-config' {
|
|
15
15
|
import { getDeprecations } from '@warp-drive-mirror/build-config/-private/utils/deprecations.ts';
|
|
16
16
|
import { getFeatures } from '@warp-drive-mirror/build-config/-private/utils/features.ts';
|
|
17
17
|
import * as LOGGING from '@warp-drive-mirror/build-config/debugging.ts';
|
|
18
|
-
type LOG_CONFIG_KEY = keyof typeof LOGGING;
|
|
19
18
|
export type WarpDriveConfig = {
|
|
19
|
+
/**
|
|
20
|
+
* An object of key/value pairs of logging flags
|
|
21
|
+
*
|
|
22
|
+
* see {@link LOGGING | debugging} for the available flags.
|
|
23
|
+
*
|
|
24
|
+
* ```ts
|
|
25
|
+
* {
|
|
26
|
+
* LOG_CACHE: true,
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
20
32
|
debug?: Partial<InternalWarpDriveConfig['debug']>;
|
|
33
|
+
/**
|
|
34
|
+
* If you are using the library in an environment that does not
|
|
35
|
+
* support `window.crypto.randomUUID` you can enable a polyfill
|
|
36
|
+
* for it.
|
|
37
|
+
*
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
21
40
|
polyfillUUID?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* By default, the integration required to support the ember-inspector
|
|
43
|
+
* browser extension is included in production builds only when using
|
|
44
|
+
* the `ember-data` package.
|
|
45
|
+
*
|
|
46
|
+
* Otherwise the default is to exclude it. This setting allows to explicitly
|
|
47
|
+
* enable/disable it in production builds.
|
|
48
|
+
*
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
22
51
|
includeDataAdapterInProduction?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The most recent version of the library from which all
|
|
54
|
+
* deprecations have been resolved.
|
|
55
|
+
*
|
|
56
|
+
* For instance if all deprecations released prior to or
|
|
57
|
+
* within `5.3` have been resolved, then setting this to
|
|
58
|
+
* `5.3` will remove all the support for the deprecated
|
|
59
|
+
* features for associated deprecations.
|
|
60
|
+
*
|
|
61
|
+
* See {@link DEPRECATIONS | deprecations} for more details.
|
|
62
|
+
*/
|
|
23
63
|
compatWith?: `${number}.${number}`;
|
|
64
|
+
/**
|
|
65
|
+
* An object of key/value pairs of logging flags
|
|
66
|
+
*
|
|
67
|
+
* see {@link DEPRECATIONS | deprecations} for the available flags.
|
|
68
|
+
*
|
|
69
|
+
* ```ts
|
|
70
|
+
* {
|
|
71
|
+
* DEPRECATE_THING: false,
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
24
77
|
deprecations?: Partial<InternalWarpDriveConfig['deprecations']>;
|
|
78
|
+
/**
|
|
79
|
+
* An object of key/value pairs of canary feature flags
|
|
80
|
+
* for use when testing new features gated behind a flag
|
|
81
|
+
* in a canary release version.
|
|
82
|
+
*
|
|
83
|
+
* see {@link FEATURES | features} for the available flags.
|
|
84
|
+
*
|
|
85
|
+
* ```ts
|
|
86
|
+
* {
|
|
87
|
+
* FEATURE_A: true,
|
|
88
|
+
* }
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
25
93
|
features?: Partial<InternalWarpDriveConfig['features']>;
|
|
26
94
|
};
|
|
27
95
|
type InternalWarpDriveConfig = {
|
|
28
|
-
debug:
|
|
29
|
-
[key in LOG_CONFIG_KEY]: boolean;
|
|
30
|
-
};
|
|
96
|
+
debug: typeof LOGGING;
|
|
31
97
|
polyfillUUID: boolean;
|
|
32
98
|
includeDataAdapter: boolean;
|
|
33
99
|
compatWith: `${number}.${number}` | null;
|
|
34
100
|
deprecations: ReturnType<typeof getDeprecations>;
|
|
35
101
|
features: ReturnType<typeof getFeatures>;
|
|
36
|
-
activeLogging:
|
|
37
|
-
[key in LOG_CONFIG_KEY]: boolean;
|
|
38
|
-
};
|
|
102
|
+
activeLogging: typeof LOGGING;
|
|
39
103
|
env: {
|
|
40
104
|
TESTING: boolean;
|
|
41
105
|
PRODUCTION: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAyCA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAQ1C,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC;IAElD;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;OASG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;IAEnC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC,CAAC;IAEhE;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC,CAAC;CACzD,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,OAAO,OAAO,CAAC;IACtB,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,aAAa,EAAE,OAAO,OAAO,CAAC;IAC9B,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,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;AACzE,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC"}
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
declare module '@warp-drive-mirror/build-config/macros' {
|
|
2
|
+
/**
|
|
3
|
+
* Internal functions for instrumenting the library's code with behaviors
|
|
4
|
+
* that are removed from production builds.
|
|
5
|
+
*
|
|
6
|
+
* @hidden
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* A type-narrowing assertion function that throws an error with the supplied
|
|
11
|
+
* message if the condition is falsy.
|
|
12
|
+
*
|
|
13
|
+
* Asserts are removed from production builds, making this a "zero cost abstraction"
|
|
14
|
+
* so liberal usage of this function to ensure runtime correctness is encouraged.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
2
18
|
export function assert(message: string, condition: unknown): asserts condition;
|
|
3
19
|
export function assert(message: string): never;
|
|
4
20
|
}
|
|
@@ -1 +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"}
|
|
1
|
+
{"version":3,"file":"macros.d.ts","sourceRoot":"","sources":["../src/macros.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;GAQG;AACH,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"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @module @warp-drive-mirror/build-config
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* ## Canary Features
|
|
9
|
-
*
|
|
10
|
-
* EmberData allows users to test features that are implemented but not yet
|
|
11
|
-
* available even in canary.
|
|
12
|
-
*
|
|
13
|
-
* Typically these features represent work that might introduce a new concept,
|
|
14
|
-
* new API, change an API, or risk an unintended change in behavior to consuming
|
|
15
|
-
* applications.
|
|
16
|
-
*
|
|
17
|
-
* Such features have their implementations guarded by a "feature flag", and the
|
|
18
|
-
* flag is only activated once the core-data team is prepared to ship the work
|
|
19
|
-
* in a canary release.
|
|
20
|
-
*
|
|
21
|
-
* ### Installing Canary
|
|
22
|
-
*
|
|
23
|
-
* To test a feature you MUST be using a canary build. Canary builds are published
|
|
24
|
-
* to `npm` and can be installed using a precise tag (such as `ember-data@3.16.0-alpha.1`)
|
|
25
|
-
* or by installing the latest dist-tag published to the `canary` channel using your javascript
|
|
26
|
-
* package manager of choice. For instance with [pnpm](https://pnpm.io/)
|
|
27
|
-
|
|
28
|
-
```cli
|
|
29
|
-
pnpm add ember-data@canary
|
|
30
|
-
```
|
|
31
|
-
*
|
|
32
|
-
* ### Activating a Canary Feature
|
|
33
|
-
*
|
|
34
|
-
* Once you have installed canary, feature-flags can be activated at build-time
|
|
35
|
-
*
|
|
36
|
-
* by setting an environment variable:
|
|
37
|
-
*
|
|
38
|
-
* ```cli
|
|
39
|
-
* # Activate a single flag
|
|
40
|
-
* WARP_DRIVE_FEATURE_OVERRIDE=SOME_FLAG ember build
|
|
41
|
-
*
|
|
42
|
-
* # Activate multiple flags by separating with commas
|
|
43
|
-
* WARP_DRIVE_FEATURE_OVERRIDE=SOME_FLAG,OTHER_FLAG ember build
|
|
44
|
-
*
|
|
45
|
-
* # Activate all flags
|
|
46
|
-
* WARP_DRIVE_FEATURE_OVERRIDE=ENABLE_ALL_OPTIONAL ember build
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* or by setting the appropriate flag in your `ember-cli-build` file:
|
|
50
|
-
*
|
|
51
|
-
* ```ts
|
|
52
|
-
* setConfig(app, __dirname, {
|
|
53
|
-
* features: {
|
|
54
|
-
* SAMPLE_FEATURE_FLAG: false // utliize existing behavior, strip code for the new feature
|
|
55
|
-
* OTHER_FEATURE_FLAG: true // utilize this new feature, strip code for the older behavior
|
|
56
|
-
* }
|
|
57
|
-
* })
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* **The "off" branch of feature-flagged code is always stripped from production builds.**
|
|
61
|
-
*
|
|
62
|
-
* The list of available feature-flags is located [here](https://github.com/emberjs/data/tree/main/packages/build-config/src/virtual/canary-features.ts "List of EmberData FeatureFlags")
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* ### Preparing a Project to use a Canary Feature
|
|
66
|
-
*
|
|
67
|
-
* For most projects, simple version detection should be enough.
|
|
68
|
-
* Using the provided version compatibility helpers from [embroider-macros](https://github.com/embroider-build/embroider/tree/main/packages/macros#readme)
|
|
69
|
-
* the following can be done:
|
|
70
|
-
*
|
|
71
|
-
* ```js
|
|
72
|
-
* if (macroCondition(dependencySatisfies('@ember-data-mirror/store', '5.0'))) {
|
|
73
|
-
* // do thing
|
|
74
|
-
* }
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* The current list of features used at build time for canary releases is defined below.
|
|
78
|
-
* If empty there are no features currently gated by feature flags.
|
|
79
|
-
*
|
|
80
|
-
* The valid values are:
|
|
81
|
-
*
|
|
82
|
-
* - `true` | The feature is **enabled** at all times, and cannot be disabled.
|
|
83
|
-
* - `false` | The feature is **disabled** at all times, and cannot be enabled.
|
|
84
|
-
* - `null` | The feature is **disabled by default**, but can be enabled via configuration.
|
|
85
|
-
*
|
|
86
|
-
* @class CanaryFeatures
|
|
87
|
-
* @public
|
|
88
|
-
*/
|
|
89
|
-
const SAMPLE_FEATURE_FLAG = null;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* This upcoming feature adds a validation step to payloads received
|
|
93
|
-
* by the JSONAPICache implementation.
|
|
94
|
-
*
|
|
95
|
-
* When a request completes and the result is given to the cache via
|
|
96
|
-
* `cache.put`, the cache will validate the payload against registered
|
|
97
|
-
* schemas as well as the JSON:API spec.
|
|
98
|
-
*
|
|
99
|
-
* @property JSON_API_CACHE_VALIDATION_ERRORS
|
|
100
|
-
* @type {Boolean|null}
|
|
101
|
-
* @since 5.4
|
|
102
|
-
* @public
|
|
103
|
-
*/
|
|
104
|
-
const JSON_API_CACHE_VALIDATION_ERRORS = false;
|
|
105
|
-
|
|
106
|
-
const CURRENT_FEATURES = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
107
|
-
__proto__: null,
|
|
108
|
-
JSON_API_CACHE_VALIDATION_ERRORS,
|
|
109
|
-
SAMPLE_FEATURE_FLAG
|
|
110
|
-
}, Symbol.toStringTag, { value: 'Module' }));
|
|
111
|
-
|
|
112
|
-
export { CURRENT_FEATURES as C, JSON_API_CACHE_VALIDATION_ERRORS as J, SAMPLE_FEATURE_FLAG as S };
|
|
113
|
-
//# sourceMappingURL=canary-features-D1wplYmb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canary-features-D1wplYmb.js","sources":["../src/canary-features.ts"],"sourcesContent":["/**\n *\n * @module @warp-drive-mirror/build-config\n */\n\n/**\n *\n * ## Canary Features\n *\n * EmberData allows users to test features that are implemented but not yet\n * available even in canary.\n *\n * Typically these features represent work that might introduce a new concept,\n * new API, change an API, or risk an unintended change in behavior to consuming\n * applications.\n *\n * Such features have their implementations guarded by a \"feature flag\", and the\n * flag is only activated once the core-data team is prepared to ship the work\n * in a canary release.\n *\n * ### Installing Canary\n *\n * To test a feature you MUST be using a canary build. Canary builds are published\n * to `npm` and can be installed using a precise tag (such as `ember-data@3.16.0-alpha.1`)\n * or by installing the latest dist-tag published to the `canary` channel using your javascript\n * package manager of choice. For instance with [pnpm](https://pnpm.io/)\n\n ```cli\n pnpm add ember-data@canary\n ```\n *\n * ### Activating a Canary Feature\n *\n * Once you have installed canary, feature-flags can be activated at build-time\n *\n * by setting an environment variable:\n *\n * ```cli\n * # Activate a single flag\n * WARP_DRIVE_FEATURE_OVERRIDE=SOME_FLAG ember build\n *\n * # Activate multiple flags by separating with commas\n * WARP_DRIVE_FEATURE_OVERRIDE=SOME_FLAG,OTHER_FLAG ember build\n *\n * # Activate all flags\n * WARP_DRIVE_FEATURE_OVERRIDE=ENABLE_ALL_OPTIONAL ember build\n * ```\n *\n * or by setting the appropriate flag in your `ember-cli-build` file:\n *\n * ```ts\n * setConfig(app, __dirname, {\n * features: {\n * SAMPLE_FEATURE_FLAG: false // utliize existing behavior, strip code for the new feature\n * OTHER_FEATURE_FLAG: true // utilize this new feature, strip code for the older behavior\n * }\n * })\n * ```\n *\n * **The \"off\" branch of feature-flagged code is always stripped from production builds.**\n *\n * The list of available feature-flags is located [here](https://github.com/emberjs/data/tree/main/packages/build-config/src/virtual/canary-features.ts \"List of EmberData FeatureFlags\")\n *\n *\n * ### Preparing a Project to use a Canary Feature\n *\n * For most projects, simple version detection should be enough.\n * Using the provided version compatibility helpers from [embroider-macros](https://github.com/embroider-build/embroider/tree/main/packages/macros#readme)\n * the following can be done:\n *\n * ```js\n * if (macroCondition(dependencySatisfies('@ember-data-mirror/store', '5.0'))) {\n * // do thing\n * }\n * ```\n *\n * The current list of features used at build time for canary releases is defined below.\n * If empty there are no features currently gated by feature flags.\n *\n * The valid values are:\n *\n * - `true` | The feature is **enabled** at all times, and cannot be disabled.\n * - `false` | The feature is **disabled** at all times, and cannot be enabled.\n * - `null` | The feature is **disabled by default**, but can be enabled via configuration.\n *\n * @class CanaryFeatures\n * @public\n*/\nexport const SAMPLE_FEATURE_FLAG: boolean | null = null;\n\n/**\n * This upcoming feature adds a validation step to payloads received\n * by the JSONAPICache implementation.\n *\n * When a request completes and the result is given to the cache via\n * `cache.put`, the cache will validate the payload against registered\n * schemas as well as the JSON:API spec.\n *\n * @property JSON_API_CACHE_VALIDATION_ERRORS\n * @type {Boolean|null}\n * @since 5.4\n * @public\n */\nexport const JSON_API_CACHE_VALIDATION_ERRORS: boolean | null = false;\n"],"names":["SAMPLE_FEATURE_FLAG","JSON_API_CACHE_VALIDATION_ERRORS"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,mBAAmC,GAAG;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,gCAAgD,GAAG;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debugging-BtpYr1v0.js","sources":["../src/debugging.ts"],"sourcesContent":["/**\n @module @warp-drive-mirror/build-config\n */\n/**\n * ## Debug Logging\n *\n * Many portions of the internals are helpfully instrumented with logging.\n * This instrumentation is always removed from production builds.\n *\n * Log instrumentation is \"regionalized\" to specific concepts and concerns\n * to enable you to enable/disable just the areas you are interested in.\n *\n * To activate a particular group of logs set the appropriate flag to `true`\n * either in your build config or via the runtime helper.\n *\n *\n * ### Activation Via Runtime Helper\n *\n * A runtime helper is attached to `globalThis` to enable activation of the logs\n * from anywhere in your application including from the devtools panel.\n *\n * The runtime helper overrides any build config settings for the given flag\n * for the current browser tab. It stores the configuration you give it in\n * `sessionStorage` so that it persists across page reloads of the current tab,\n * but not across browser tabs or windows. Thus if you need to deactivate the\n * logging, you can call the helper again with the same flag set to `false` or\n * just open a new tab/window.\n *\n * Example Usage:\n *\n * ```ts\n * setWarpDriveLogging({\n * LOG_CACHE: true,\n * LOG_REQUESTS: true,\n * })\n * ```\n *\n * ### Activation Via Build Config\n *\n * ```ts\n * setConfig(__dirname, app, {\n * debug: {\n * LOG_CACHE: false, // data store received to update cache with\n * LOG_NOTIFICATIONS: false,\n * LOG_REQUESTS: false,\n * LOG_REQUEST_STATUS: false,\n * LOG_IDENTIFIERS: false,\n * LOG_GRAPH: false,\n * LOG_INSTANCE_CACHE: false,\n * LOG_METRIC_COUNTS: false,\n * DEBUG_RELATIONSHIP_NOTIFICATIONS: false,\n * }\n * });\n * ```\n *\n * @class DebugLogging\n * @public\n */\n/**\n * log cache updates for both local\n * and remote state. Note in some older versions\n * this was called `LOG_PAYLOADS` and was one\n * of three flags that controlled logging of\n * cache updates. This is now the only flag.\n *\n * The others were `LOG_OPERATIONS` and `LOG_MUTATIONS`.\n *\n * @property LOG_CACHE\n * @type {Boolean}\n * @public\n */\nexport const LOG_CACHE: boolean = false;\n/**\n * Log decisions made by the Basic CachePolicy\n *\n * @property LOG_CACHE_POLICY\n * @type {Boolean}\n * @public\n */\nexport const LOG_CACHE_POLICY: boolean = false;\n\n/**\n * log notifications received by the NotificationManager\n *\n * @property LOG_NOTIFICATIONS\n * @type {Boolean}\n * @public\n */\nexport const LOG_NOTIFICATIONS: boolean = false;\n/**\n * log requests issued by the RequestManager\n *\n * @property LOG_REQUESTS\n * @type {Boolean}\n * @public\n */\nexport const LOG_REQUESTS: boolean = false;\n/**\n * log updates to requests the store has issued to\n * the network (adapter) to fulfill.\n *\n * @property LOG_REQUEST_STATUS\n * @type {Boolean}\n * @public\n */\nexport const LOG_REQUEST_STATUS: boolean = false;\n/**\n * log peek, generation and updates to\n * Record Identifiers.\n *\n * @property LOG_IDENTIFIERS\n * @type {Boolean}\n\n * @public\n */\nexport const LOG_IDENTIFIERS: boolean = false;\n/**\n * log updates received by the graph (relationship pointer storage)\n *\n * @property LOG_GRAPH\n * @type {Boolean}\n * @public\n */\nexport const LOG_GRAPH: boolean = false;\n/**\n * log creation/removal of RecordData and Record\n * instances.\n *\n * @property LOG_INSTANCE_CACHE\n * @type {Boolean}\n * @public\n */\nexport const LOG_INSTANCE_CACHE: boolean = false;\n/**\n * Log key count metrics, useful for performance\n * debugging.\n *\n * @property LOG_METRIC_COUNTS\n * @type {Boolean}\n * @public\n */\nexport const LOG_METRIC_COUNTS: boolean = false;\n/**\n * Helps when debugging causes of a change notification\n * when processing an update to a hasMany relationship.\n *\n * @property DEBUG_RELATIONSHIP_NOTIFICATIONS\n * @type {Boolean}\n * @public\n */\nexport const DEBUG_RELATIONSHIP_NOTIFICATIONS: boolean = false;\n\n/**\n * A private flag to enable logging of the native Map/Set\n * constructor and method calls.\n *\n * EXTREMELY MALPERFORMANT\n *\n * LOG_METRIC_COUNTS must also be enabled.\n *\n * @typedoc\n */\nexport const __INTERNAL_LOG_NATIVE_MAP_SET_COUNTS: boolean = false;\n"],"names":["LOG_CACHE","LOG_CACHE_POLICY","LOG_NOTIFICATIONS","LOG_REQUESTS","LOG_REQUEST_STATUS","LOG_IDENTIFIERS","LOG_GRAPH","LOG_INSTANCE_CACHE","LOG_METRIC_COUNTS","DEBUG_RELATIONSHIP_NOTIFICATIONS","__INTERNAL_LOG_NATIVE_MAP_SET_COUNTS"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,SAAkB,GAAG;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,gBAAyB,GAAG;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,iBAA0B,GAAG;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,YAAqB,GAAG;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,kBAA2B,GAAG;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACO,MAAMC,eAAwB,GAAG;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,SAAkB,GAAG;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,kBAA2B,GAAG;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,iBAA0B,GAAG;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,gCAAyC,GAAG;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,oCAA6C,GAAG;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// deprecations
|
|
2
|
-
const DEPRECATE_CATCH_ALL = true;
|
|
3
|
-
const DEPRECATE_COMPUTED_CHAINS = true;
|
|
4
|
-
const DEPRECATE_NON_STRICT_TYPES = true;
|
|
5
|
-
const DEPRECATE_NON_STRICT_ID = true;
|
|
6
|
-
const DEPRECATE_LEGACY_IMPORTS = true;
|
|
7
|
-
const DEPRECATE_NON_UNIQUE_PAYLOADS = true;
|
|
8
|
-
const DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE = true;
|
|
9
|
-
const DEPRECATE_MANY_ARRAY_DUPLICATES = true;
|
|
10
|
-
const DEPRECATE_STORE_EXTENDS_EMBER_OBJECT = true;
|
|
11
|
-
const ENABLE_LEGACY_SCHEMA_SERVICE = true;
|
|
12
|
-
const DEPRECATE_EMBER_INFLECTOR = true;
|
|
13
|
-
const DISABLE_7X_DEPRECATIONS = true;
|
|
14
|
-
const DEPRECATE_TRACKING_PACKAGE = true;
|
|
15
|
-
|
|
16
|
-
const CURRENT_DEPRECATIONS = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
17
|
-
__proto__: null,
|
|
18
|
-
DEPRECATE_CATCH_ALL,
|
|
19
|
-
DEPRECATE_COMPUTED_CHAINS,
|
|
20
|
-
DEPRECATE_EMBER_INFLECTOR,
|
|
21
|
-
DEPRECATE_LEGACY_IMPORTS,
|
|
22
|
-
DEPRECATE_MANY_ARRAY_DUPLICATES,
|
|
23
|
-
DEPRECATE_NON_STRICT_ID,
|
|
24
|
-
DEPRECATE_NON_STRICT_TYPES,
|
|
25
|
-
DEPRECATE_NON_UNIQUE_PAYLOADS,
|
|
26
|
-
DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE,
|
|
27
|
-
DEPRECATE_STORE_EXTENDS_EMBER_OBJECT,
|
|
28
|
-
DEPRECATE_TRACKING_PACKAGE,
|
|
29
|
-
DISABLE_7X_DEPRECATIONS,
|
|
30
|
-
ENABLE_LEGACY_SCHEMA_SERVICE
|
|
31
|
-
}, Symbol.toStringTag, { value: 'Module' }));
|
|
32
|
-
|
|
33
|
-
export { CURRENT_DEPRECATIONS as C, DEPRECATE_CATCH_ALL as D, ENABLE_LEGACY_SCHEMA_SERVICE as E, DEPRECATE_COMPUTED_CHAINS as a, DEPRECATE_NON_STRICT_TYPES as b, DEPRECATE_NON_STRICT_ID as c, DEPRECATE_LEGACY_IMPORTS as d, DEPRECATE_NON_UNIQUE_PAYLOADS as e, DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE as f, DEPRECATE_MANY_ARRAY_DUPLICATES as g, DEPRECATE_STORE_EXTENDS_EMBER_OBJECT as h, DEPRECATE_EMBER_INFLECTOR as i, DISABLE_7X_DEPRECATIONS as j, DEPRECATE_TRACKING_PACKAGE as k };
|
|
34
|
-
//# sourceMappingURL=deprecations-D_dBAPC9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecations-D_dBAPC9.js","sources":["../src/deprecations.ts"],"sourcesContent":["// deprecations\nexport const DEPRECATE_CATCH_ALL: boolean = true;\nexport const DEPRECATE_COMPUTED_CHAINS: boolean = true;\nexport const DEPRECATE_NON_STRICT_TYPES: boolean = true;\nexport const DEPRECATE_NON_STRICT_ID: boolean = true;\nexport const DEPRECATE_LEGACY_IMPORTS: boolean = true;\nexport const DEPRECATE_NON_UNIQUE_PAYLOADS: boolean = true;\nexport const DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE: boolean = true;\nexport const DEPRECATE_MANY_ARRAY_DUPLICATES: boolean = true;\nexport const DEPRECATE_STORE_EXTENDS_EMBER_OBJECT: boolean = true;\nexport const ENABLE_LEGACY_SCHEMA_SERVICE: boolean = true;\nexport const DEPRECATE_EMBER_INFLECTOR: boolean = true;\nexport const DISABLE_7X_DEPRECATIONS: boolean = true;\nexport const DEPRECATE_TRACKING_PACKAGE: boolean = true;\n"],"names":["DEPRECATE_CATCH_ALL","DEPRECATE_COMPUTED_CHAINS","DEPRECATE_NON_STRICT_TYPES","DEPRECATE_NON_STRICT_ID","DEPRECATE_LEGACY_IMPORTS","DEPRECATE_NON_UNIQUE_PAYLOADS","DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE","DEPRECATE_MANY_ARRAY_DUPLICATES","DEPRECATE_STORE_EXTENDS_EMBER_OBJECT","ENABLE_LEGACY_SCHEMA_SERVICE","DEPRECATE_EMBER_INFLECTOR","DISABLE_7X_DEPRECATIONS","DEPRECATE_TRACKING_PACKAGE"],"mappings":"AAAA;AACO,MAAMA,mBAA4B,GAAG;AACrC,MAAMC,yBAAkC,GAAG;AAC3C,MAAMC,0BAAmC,GAAG;AAC5C,MAAMC,uBAAgC,GAAG;AACzC,MAAMC,wBAAiC,GAAG;AAC1C,MAAMC,6BAAsC,GAAG;AAC/C,MAAMC,yDAAkE,GAAG;AAC3E,MAAMC,+BAAwC,GAAG;AACjD,MAAMC,oCAA6C,GAAG;AACtD,MAAMC,4BAAqC,GAAG;AAC9C,MAAMC,yBAAkC,GAAG;AAC3C,MAAMC,uBAAgC,GAAG;AACzC,MAAMC,0BAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;"}
|