@warp-drive-mirror/build-config 5.6.0-alpha.5 → 5.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/-private/utils/deprecations.d.ts +5 -0
- package/declarations/-private/utils/features.d.ts +4 -0
- package/declarations/-private/utils/get-env.d.ts +8 -0
- package/declarations/-private/utils/logging.d.ts +9 -0
- package/declarations/babel-macros.d.ts +13 -0
- package/declarations/canary-features.d.ts +136 -0
- package/declarations/debugging.d.ts +172 -0
- package/declarations/deprecation-versions.d.ts +30 -0
- package/declarations/deprecations.d.ts +516 -0
- package/declarations/env.d.ts +129 -0
- package/declarations/index.d.ts +101 -0
- package/declarations/macros.d.ts +18 -0
- package/dist/addon-shim.cjs +0 -1
- package/dist/babel-macros.js +12 -13
- package/dist/babel-plugin-transform-asserts.cjs +3 -5
- package/dist/babel-plugin-transform-deprecations.cjs +0 -1
- package/dist/babel-plugin-transform-features.cjs +0 -1
- package/dist/babel-plugin-transform-logging.cjs +0 -1
- package/dist/{canary-features-DF5hbs2w.js → canary-features-CuKgaVtX.js} +18 -42
- package/dist/canary-features.js +1 -2
- package/dist/cjs-set-config.cjs +26 -47
- package/dist/debugging-VdsvkNjX.js +0 -1
- package/dist/debugging.js +0 -1
- package/dist/{deprecations-BVxAmwe9.js → deprecations-BNNGFAiG.js} +5 -6
- package/dist/deprecations.js +1 -2
- package/dist/env.js +0 -1
- package/dist/index.js +9 -7
- package/dist/macros.js +0 -1
- package/package.json +7 -16
- package/dist/addon-shim.cjs.map +0 -1
- package/dist/babel-macros.js.map +0 -1
- package/dist/babel-plugin-transform-asserts.cjs.map +0 -1
- package/dist/babel-plugin-transform-deprecations.cjs.map +0 -1
- package/dist/babel-plugin-transform-features.cjs.map +0 -1
- package/dist/babel-plugin-transform-logging.cjs.map +0 -1
- package/dist/canary-features-DF5hbs2w.js.map +0 -1
- package/dist/canary-features.js.map +0 -1
- package/dist/cjs-set-config.cjs.map +0 -1
- package/dist/debugging-VdsvkNjX.js.map +0 -1
- package/dist/debugging.js.map +0 -1
- package/dist/deprecations-BVxAmwe9.js.map +0 -1
- package/dist/deprecations.js.map +0 -1
- package/dist/env.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/macros.js.map +0 -1
- package/unstable-preview-types/-private/utils/deprecations.d.ts +0 -12
- package/unstable-preview-types/-private/utils/deprecations.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/features.d.ts +0 -9
- package/unstable-preview-types/-private/utils/features.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/get-env.d.ts +0 -11
- package/unstable-preview-types/-private/utils/get-env.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/logging.d.ts +0 -14
- package/unstable-preview-types/-private/utils/logging.d.ts.map +0 -1
- package/unstable-preview-types/babel-macros.d.ts +0 -16
- package/unstable-preview-types/babel-macros.d.ts.map +0 -1
- package/unstable-preview-types/canary-features.d.ts +0 -162
- package/unstable-preview-types/canary-features.d.ts.map +0 -1
- package/unstable-preview-types/cjs-set-config.d.ts +0 -4
- package/unstable-preview-types/cjs-set-config.d.ts.map +0 -1
- package/unstable-preview-types/debugging.d.ts +0 -175
- package/unstable-preview-types/debugging.d.ts.map +0 -1
- package/unstable-preview-types/deprecation-versions.d.ts +0 -16
- package/unstable-preview-types/deprecation-versions.d.ts.map +0 -1
- package/unstable-preview-types/deprecations.d.ts +0 -519
- package/unstable-preview-types/deprecations.d.ts.map +0 -1
- package/unstable-preview-types/env.d.ts +0 -132
- package/unstable-preview-types/env.d.ts.map +0 -1
- package/unstable-preview-types/index.d.ts +0 -113
- package/unstable-preview-types/index.d.ts.map +0 -1
- package/unstable-preview-types/macros.d.ts +0 -21
- package/unstable-preview-types/macros.d.ts.map +0 -1
- package/unstable-preview-types/validate-exports.type-test.d.ts +0 -4
- package/unstable-preview-types/validate-exports.type-test.d.ts.map +0 -1
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/// <reference path="./canary-features.d.ts" />
|
|
2
|
-
/// <reference path="./deprecation-versions.d.ts" />
|
|
3
|
-
/// <reference path="./babel-macros.d.ts" />
|
|
4
|
-
/// <reference path="./cjs-set-config.d.ts" />
|
|
5
|
-
/// <reference path="./validate-exports.type-test.d.ts" />
|
|
6
|
-
/// <reference path="./debugging.d.ts" />
|
|
7
|
-
/// <reference path="./env.d.ts" />
|
|
8
|
-
/// <reference path="./macros.d.ts" />
|
|
9
|
-
/// <reference path="./deprecations.d.ts" />
|
|
10
|
-
/// <reference path="./-private/utils/get-env.d.ts" />
|
|
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
|
-
declare module '@warp-drive-mirror/build-config' {
|
|
15
|
-
import { getDeprecations } from '@warp-drive-mirror/build-config/-private/utils/deprecations.ts';
|
|
16
|
-
import { getFeatures } from '@warp-drive-mirror/build-config/-private/utils/features.ts';
|
|
17
|
-
import * as LOGGING from '@warp-drive-mirror/build-config/debugging.ts';
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
93
|
-
features?: Partial<InternalWarpDriveConfig['features']>;
|
|
94
|
-
};
|
|
95
|
-
type InternalWarpDriveConfig = {
|
|
96
|
-
debug: typeof LOGGING;
|
|
97
|
-
polyfillUUID: boolean;
|
|
98
|
-
includeDataAdapter: boolean;
|
|
99
|
-
compatWith: `${number}.${number}` | null;
|
|
100
|
-
deprecations: ReturnType<typeof getDeprecations>;
|
|
101
|
-
features: ReturnType<typeof getFeatures>;
|
|
102
|
-
activeLogging: typeof LOGGING;
|
|
103
|
-
env: {
|
|
104
|
-
TESTING: boolean;
|
|
105
|
-
PRODUCTION: boolean;
|
|
106
|
-
DEBUG: boolean;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
export function setConfig(macros: object, config: WarpDriveConfig): void;
|
|
110
|
-
export function setConfig(context: object, appRoot: string, config: WarpDriveConfig): void;
|
|
111
|
-
export {};
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,21 +0,0 @@
|
|
|
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
|
-
*/
|
|
18
|
-
export function assert(message: string, condition: unknown): asserts condition;
|
|
19
|
-
export function assert(message: string): never;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=macros.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-exports.type-test.d.ts","sourceRoot":"","sources":["../src/validate-exports.type-test.ts"],"names":[],"mappings":""}
|