@warp-drive/build-config 5.6.0-alpha.0 → 5.6.0-alpha.11

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 (83) hide show
  1. package/declarations/-private/utils/deprecations.d.ts +10 -0
  2. package/declarations/-private/utils/features.d.ts +7 -0
  3. package/declarations/-private/utils/get-env.d.ts +9 -0
  4. package/declarations/-private/utils/logging.d.ts +12 -0
  5. package/declarations/babel-macros.d.ts +14 -0
  6. package/declarations/babel-macros.d.ts.map +1 -0
  7. package/declarations/canary-features.d.ts +137 -0
  8. package/declarations/canary-features.d.ts.map +1 -0
  9. package/declarations/cjs-set-config.d.ts +2 -0
  10. package/declarations/debugging.d.ts +173 -0
  11. package/declarations/debugging.d.ts.map +1 -0
  12. package/declarations/deprecation-versions.d.ts +14 -0
  13. package/declarations/deprecation-versions.d.ts.map +1 -0
  14. package/declarations/deprecations.d.ts +517 -0
  15. package/declarations/deprecations.d.ts.map +1 -0
  16. package/declarations/env.d.ts +130 -0
  17. package/declarations/env.d.ts.map +1 -0
  18. package/declarations/index.d.ts +98 -0
  19. package/declarations/index.d.ts.map +1 -0
  20. package/declarations/macros.d.ts +19 -0
  21. package/declarations/macros.d.ts.map +1 -0
  22. package/declarations/validate-exports.type-test.d.ts +2 -0
  23. package/dist/babel-macros.js +45 -12
  24. package/dist/babel-macros.js.map +1 -1
  25. package/dist/babel-plugin-transform-asserts.cjs +2 -2
  26. package/dist/babel-plugin-transform-asserts.cjs.map +1 -1
  27. package/dist/babel-plugin-transform-deprecations.cjs +2 -2
  28. package/dist/babel-plugin-transform-deprecations.cjs.map +1 -1
  29. package/dist/babel-plugin-transform-features.cjs +2 -2
  30. package/dist/babel-plugin-transform-features.cjs.map +1 -1
  31. package/dist/babel-plugin-transform-logging.cjs +2 -2
  32. package/dist/babel-plugin-transform-logging.cjs.map +1 -1
  33. package/dist/canary-features-CuKgaVtX.js +147 -0
  34. package/dist/canary-features-CuKgaVtX.js.map +1 -0
  35. package/dist/canary-features.js +1 -1
  36. package/dist/cjs-set-config.cjs +152 -603
  37. package/dist/cjs-set-config.cjs.map +1 -1
  38. package/dist/{debugging-BtpYr1v0.js → debugging-VdsvkNjX.js} +80 -62
  39. package/dist/debugging-VdsvkNjX.js.map +1 -0
  40. package/dist/debugging.js +1 -1
  41. package/dist/deprecations-BNNGFAiG.js +549 -0
  42. package/dist/deprecations-BNNGFAiG.js.map +1 -0
  43. package/dist/deprecations.js +1 -1
  44. package/dist/env.js +124 -0
  45. package/dist/env.js.map +1 -1
  46. package/dist/index.js +12 -515
  47. package/dist/index.js.map +1 -1
  48. package/dist/macros.js +18 -0
  49. package/dist/macros.js.map +1 -1
  50. package/package.json +6 -18
  51. package/dist/canary-features-D1wplYmb.js +0 -113
  52. package/dist/canary-features-D1wplYmb.js.map +0 -1
  53. package/dist/debugging-BtpYr1v0.js.map +0 -1
  54. package/dist/deprecations-D_dBAPC9.js +0 -34
  55. package/dist/deprecations-D_dBAPC9.js.map +0 -1
  56. package/unstable-preview-types/-private/utils/deprecations.d.ts +0 -12
  57. package/unstable-preview-types/-private/utils/features.d.ts +0 -9
  58. package/unstable-preview-types/-private/utils/get-env.d.ts +0 -11
  59. package/unstable-preview-types/-private/utils/logging.d.ts +0 -14
  60. package/unstable-preview-types/babel-macros.d.ts +0 -6
  61. package/unstable-preview-types/babel-macros.d.ts.map +0 -1
  62. package/unstable-preview-types/canary-features.d.ts +0 -105
  63. package/unstable-preview-types/canary-features.d.ts.map +0 -1
  64. package/unstable-preview-types/cjs-set-config.d.ts +0 -4
  65. package/unstable-preview-types/debugging.d.ts +0 -164
  66. package/unstable-preview-types/debugging.d.ts.map +0 -1
  67. package/unstable-preview-types/deprecation-versions.d.ts +0 -485
  68. package/unstable-preview-types/deprecation-versions.d.ts.map +0 -1
  69. package/unstable-preview-types/deprecations.d.ts +0 -16
  70. package/unstable-preview-types/deprecations.d.ts.map +0 -1
  71. package/unstable-preview-types/env.d.ts +0 -9
  72. package/unstable-preview-types/env.d.ts.map +0 -1
  73. package/unstable-preview-types/index.d.ts +0 -49
  74. package/unstable-preview-types/index.d.ts.map +0 -1
  75. package/unstable-preview-types/macros.d.ts +0 -5
  76. package/unstable-preview-types/macros.d.ts.map +0 -1
  77. package/unstable-preview-types/validate-exports.type-test.d.ts +0 -4
  78. /package/{unstable-preview-types → declarations}/-private/utils/deprecations.d.ts.map +0 -0
  79. /package/{unstable-preview-types → declarations}/-private/utils/features.d.ts.map +0 -0
  80. /package/{unstable-preview-types → declarations}/-private/utils/get-env.d.ts.map +0 -0
  81. /package/{unstable-preview-types → declarations}/-private/utils/logging.d.ts.map +0 -0
  82. /package/{unstable-preview-types → declarations}/cjs-set-config.d.ts.map +0 -0
  83. /package/{unstable-preview-types → declarations}/validate-exports.type-test.d.ts.map +0 -0
@@ -1,49 +0,0 @@
1
- /// <reference path="./deprecations.d.ts" />
2
- /// <reference path="./babel-macros.d.ts" />
3
- /// <reference path="./canary-features.d.ts" />
4
- /// <reference path="./env.d.ts" />
5
- /// <reference path="./cjs-set-config.d.ts" />
6
- /// <reference path="./deprecation-versions.d.ts" />
7
- /// <reference path="./validate-exports.type-test.d.ts" />
8
- /// <reference path="./debugging.d.ts" />
9
- /// <reference path="./macros.d.ts" />
10
- /// <reference path="./-private/utils/deprecations.d.ts" />
11
- /// <reference path="./-private/utils/get-env.d.ts" />
12
- /// <reference path="./-private/utils/features.d.ts" />
13
- /// <reference path="./-private/utils/logging.d.ts" />
14
- declare module '@warp-drive/build-config' {
15
- import { getDeprecations } from '@warp-drive/build-config/-private/utils/deprecations.ts';
16
- import { getFeatures } from '@warp-drive/build-config/-private/utils/features.ts';
17
- import * as LOGGING from '@warp-drive/build-config/debugging.ts';
18
- type LOG_CONFIG_KEY = keyof typeof LOGGING;
19
- export type WarpDriveConfig = {
20
- debug?: Partial<InternalWarpDriveConfig['debug']>;
21
- polyfillUUID?: boolean;
22
- includeDataAdapterInProduction?: boolean;
23
- compatWith?: `${number}.${number}`;
24
- deprecations?: Partial<InternalWarpDriveConfig['deprecations']>;
25
- features?: Partial<InternalWarpDriveConfig['features']>;
26
- };
27
- type InternalWarpDriveConfig = {
28
- debug: {
29
- [key in LOG_CONFIG_KEY]: boolean;
30
- };
31
- polyfillUUID: boolean;
32
- includeDataAdapter: boolean;
33
- compatWith: `${number}.${number}` | null;
34
- deprecations: ReturnType<typeof getDeprecations>;
35
- features: ReturnType<typeof getFeatures>;
36
- activeLogging: {
37
- [key in LOG_CONFIG_KEY]: boolean;
38
- };
39
- env: {
40
- TESTING: boolean;
41
- PRODUCTION: boolean;
42
- DEBUG: boolean;
43
- };
44
- };
45
- export function setConfig(macros: object, config: WarpDriveConfig): void;
46
- export function setConfig(context: object, appRoot: string, config: WarpDriveConfig): void;
47
- export {};
48
- }
49
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA+DA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAM1C,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,aAAa,EAAE;SAAG,GAAG,IAAI,cAAc,GAAG,OAAO;KAAE,CAAC;IACpD,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,5 +0,0 @@
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
@@ -1 +0,0 @@
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,4 +0,0 @@
1
- declare module '@warp-drive/build-config/validate-exports.type-test' {
2
- export {};
3
- }
4
- //# sourceMappingURL=validate-exports.type-test.d.ts.map