@warp-drive/build-config 5.7.0-alpha.0 → 5.7.0-alpha.2

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.
@@ -134,3 +134,14 @@ export declare const SAMPLE_FEATURE_FLAG: boolean | null;
134
134
  * @public
135
135
  */
136
136
  export declare const JSON_API_CACHE_VALIDATION_ERRORS: boolean | null;
137
+ /**
138
+ * This upcoming feature adds a validation step when `schema.fields({ type })`
139
+ * is called for the first time for a resource.
140
+ *
141
+ * When active, if any trait specified by the resource or one of its traits is
142
+ * missing an error will be thrown in development.
143
+ *
144
+ * @since 5.7
145
+ * @public
146
+ */
147
+ export declare const ENFORCE_STRICT_RESOURCE_FINALIZATION: boolean | null;
@@ -28,3 +28,4 @@ export declare const ENABLE_LEGACY_SCHEMA_SERVICE = "5.4";
28
28
  export declare const DEPRECATE_EMBER_INFLECTOR = "5.3";
29
29
  export declare const DISABLE_7X_DEPRECATIONS = "7.0";
30
30
  export declare const DEPRECATE_TRACKING_PACKAGE = "5.5";
31
+ export declare const ENABLE_LEGACY_REQUEST_METHODS = "5.6";
@@ -500,6 +500,18 @@ export declare const DEPRECATE_EMBER_INFLECTOR: boolean;
500
500
  */
501
501
  export declare const DEPRECATE_TRACKING_PACKAGE: boolean;
502
502
  /**
503
+ * <Badge type="warning" text="warp-drive:deprecate-legacy-request-methods" />
504
+ *
505
+ * Deprecates all the non request-manager mechanisms of making requests.
506
+ *
507
+ * FIXME link the big guide
508
+ *
509
+ * @since 5.6
510
+ * @until 6.0
511
+ * @public
512
+ */
513
+ export declare const ENABLE_LEGACY_REQUEST_METHODS: boolean;
514
+ /**
503
515
  * This is a special flag that can be used to opt-in early to receiving deprecations introduced in 6.x
504
516
  * which have had their infra backported to 5.x versions of ***Warp*Drive**.
505
517
  *
@@ -1,6 +1,6 @@
1
1
  import { L as LOGGING } from './debugging-VdsvkNjX.js';
2
- import { C as CURRENT_FEATURES } from './canary-features-CuKgaVtX.js';
3
- import { C as CURRENT_DEPRECATIONS } from './deprecations-BNNGFAiG.js';
2
+ import { C as CURRENT_FEATURES } from './canary-features-9eYOaqB0.js';
3
+ import { C as CURRENT_DEPRECATIONS } from './deprecations-Dub3LfHZ.js';
4
4
 
5
5
  /**
6
6
  * Babel plugins that convert constants and expressions into [macroConditions](https://www.npmjs.com/package/@embroider/macros#the-macros)
@@ -137,10 +137,23 @@ const SAMPLE_FEATURE_FLAG = null;
137
137
  */
138
138
  const JSON_API_CACHE_VALIDATION_ERRORS = false;
139
139
 
140
+ /**
141
+ * This upcoming feature adds a validation step when `schema.fields({ type })`
142
+ * is called for the first time for a resource.
143
+ *
144
+ * When active, if any trait specified by the resource or one of its traits is
145
+ * missing an error will be thrown in development.
146
+ *
147
+ * @since 5.7
148
+ * @public
149
+ */
150
+ const ENFORCE_STRICT_RESOURCE_FINALIZATION = false;
151
+
140
152
  const CURRENT_FEATURES = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
141
153
  __proto__: null,
154
+ ENFORCE_STRICT_RESOURCE_FINALIZATION,
142
155
  JSON_API_CACHE_VALIDATION_ERRORS,
143
156
  SAMPLE_FEATURE_FLAG
144
157
  }, Symbol.toStringTag, { value: 'Module' }));
145
158
 
146
- export { CURRENT_FEATURES as C, JSON_API_CACHE_VALIDATION_ERRORS as J, SAMPLE_FEATURE_FLAG as S };
159
+ export { CURRENT_FEATURES as C, ENFORCE_STRICT_RESOURCE_FINALIZATION as E, JSON_API_CACHE_VALIDATION_ERRORS as J, SAMPLE_FEATURE_FLAG as S };
@@ -1 +1 @@
1
- export { J as JSON_API_CACHE_VALIDATION_ERRORS, S as SAMPLE_FEATURE_FLAG } from './canary-features-CuKgaVtX.js';
1
+ export { E as ENFORCE_STRICT_RESOURCE_FINALIZATION, J as JSON_API_CACHE_VALIDATION_ERRORS, S as SAMPLE_FEATURE_FLAG } from './canary-features-9eYOaqB0.js';
@@ -65,6 +65,7 @@ const ENABLE_LEGACY_SCHEMA_SERVICE = '5.4';
65
65
  const DEPRECATE_EMBER_INFLECTOR = '5.3';
66
66
  const DISABLE_7X_DEPRECATIONS = '7.0';
67
67
  const DEPRECATE_TRACKING_PACKAGE = '5.5';
68
+ const ENABLE_LEGACY_REQUEST_METHODS = '5.6';
68
69
 
69
70
  const CURRENT_DEPRECATIONS = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
70
71
  __proto__: null,
@@ -80,6 +81,7 @@ const CURRENT_DEPRECATIONS = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defi
80
81
  DEPRECATE_STORE_EXTENDS_EMBER_OBJECT,
81
82
  DEPRECATE_TRACKING_PACKAGE,
82
83
  DISABLE_7X_DEPRECATIONS,
84
+ ENABLE_LEGACY_REQUEST_METHODS,
83
85
  ENABLE_LEGACY_SCHEMA_SERVICE
84
86
  }, Symbol.toStringTag, { value: 'Module' }));
85
87
 
@@ -264,8 +266,21 @@ const SAMPLE_FEATURE_FLAG = null;
264
266
  */
265
267
  const JSON_API_CACHE_VALIDATION_ERRORS = false;
266
268
 
269
+ /**
270
+ * This upcoming feature adds a validation step when `schema.fields({ type })`
271
+ * is called for the first time for a resource.
272
+ *
273
+ * When active, if any trait specified by the resource or one of its traits is
274
+ * missing an error will be thrown in development.
275
+ *
276
+ * @since 5.7
277
+ * @public
278
+ */
279
+ const ENFORCE_STRICT_RESOURCE_FINALIZATION = false;
280
+
267
281
  const CURRENT_FEATURES = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
268
282
  __proto__: null,
283
+ ENFORCE_STRICT_RESOURCE_FINALIZATION,
269
284
  JSON_API_CACHE_VALIDATION_ERRORS,
270
285
  SAMPLE_FEATURE_FLAG
271
286
  }, Symbol.toStringTag, { value: 'Module' }));
@@ -512,6 +512,19 @@ const DEPRECATE_EMBER_INFLECTOR = true;
512
512
  */
513
513
  const DEPRECATE_TRACKING_PACKAGE = true;
514
514
 
515
+ /**
516
+ * <Badge type="warning" text="warp-drive:deprecate-legacy-request-methods" />
517
+ *
518
+ * Deprecates all the non request-manager mechanisms of making requests.
519
+ *
520
+ * FIXME link the big guide
521
+ *
522
+ * @since 5.6
523
+ * @until 6.0
524
+ * @public
525
+ */
526
+ const ENABLE_LEGACY_REQUEST_METHODS = true;
527
+
515
528
  /**
516
529
  * This is a special flag that can be used to opt-in early to receiving deprecations introduced in 6.x
517
530
  * which have had their infra backported to 5.x versions of ***Warp*Drive**.
@@ -542,7 +555,8 @@ const CURRENT_DEPRECATIONS = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defi
542
555
  DEPRECATE_STORE_EXTENDS_EMBER_OBJECT,
543
556
  DEPRECATE_TRACKING_PACKAGE,
544
557
  DISABLE_7X_DEPRECATIONS,
558
+ ENABLE_LEGACY_REQUEST_METHODS,
545
559
  ENABLE_LEGACY_SCHEMA_SERVICE
546
560
  }, Symbol.toStringTag, { value: 'Module' }));
547
561
 
548
- 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, DEPRECATE_TRACKING_PACKAGE as j, DISABLE_7X_DEPRECATIONS as k };
562
+ 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, DEPRECATE_TRACKING_PACKAGE as j, ENABLE_LEGACY_REQUEST_METHODS as k, DISABLE_7X_DEPRECATIONS as l };
@@ -1 +1 @@
1
- export { D as DEPRECATE_CATCH_ALL, a as DEPRECATE_COMPUTED_CHAINS, i as DEPRECATE_EMBER_INFLECTOR, d as DEPRECATE_LEGACY_IMPORTS, g as DEPRECATE_MANY_ARRAY_DUPLICATES, c as DEPRECATE_NON_STRICT_ID, b as DEPRECATE_NON_STRICT_TYPES, e as DEPRECATE_NON_UNIQUE_PAYLOADS, f as DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE, h as DEPRECATE_STORE_EXTENDS_EMBER_OBJECT, j as DEPRECATE_TRACKING_PACKAGE, k as DISABLE_7X_DEPRECATIONS, E as ENABLE_LEGACY_SCHEMA_SERVICE } from './deprecations-BNNGFAiG.js';
1
+ export { D as DEPRECATE_CATCH_ALL, a as DEPRECATE_COMPUTED_CHAINS, i as DEPRECATE_EMBER_INFLECTOR, d as DEPRECATE_LEGACY_IMPORTS, g as DEPRECATE_MANY_ARRAY_DUPLICATES, c as DEPRECATE_NON_STRICT_ID, b as DEPRECATE_NON_STRICT_TYPES, e as DEPRECATE_NON_UNIQUE_PAYLOADS, f as DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE, h as DEPRECATE_STORE_EXTENDS_EMBER_OBJECT, j as DEPRECATE_TRACKING_PACKAGE, l as DISABLE_7X_DEPRECATIONS, k as ENABLE_LEGACY_REQUEST_METHODS, E as ENABLE_LEGACY_SCHEMA_SERVICE } from './deprecations-Dub3LfHZ.js';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ 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-CuKgaVtX.js';
6
+ import { C as CURRENT_FEATURES } from './canary-features-9eYOaqB0.js';
7
7
  import { L as LOGGING } from './debugging-VdsvkNjX.js';
8
8
 
9
9
  function getEnv(forceMode) {
@@ -62,6 +62,7 @@ const ENABLE_LEGACY_SCHEMA_SERVICE = '5.4';
62
62
  const DEPRECATE_EMBER_INFLECTOR = '5.3';
63
63
  const DISABLE_7X_DEPRECATIONS = '7.0';
64
64
  const DEPRECATE_TRACKING_PACKAGE = '5.5';
65
+ const ENABLE_LEGACY_REQUEST_METHODS = '5.6';
65
66
 
66
67
  const CURRENT_DEPRECATIONS = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
67
68
  __proto__: null,
@@ -77,6 +78,7 @@ const CURRENT_DEPRECATIONS = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defi
77
78
  DEPRECATE_STORE_EXTENDS_EMBER_OBJECT,
78
79
  DEPRECATE_TRACKING_PACKAGE,
79
80
  DISABLE_7X_DEPRECATIONS,
81
+ ENABLE_LEGACY_REQUEST_METHODS,
80
82
  ENABLE_LEGACY_SCHEMA_SERVICE
81
83
  }, Symbol.toStringTag, { value: 'Module' }));
82
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/build-config",
3
- "version": "5.7.0-alpha.0",
3
+ "version": "5.7.0-alpha.2",
4
4
  "description": "Provides Build Configuration for projects using WarpDrive or EmberData",
5
5
  "keywords": [
6
6
  "ember-data",
@@ -42,7 +42,7 @@
42
42
  "semver": "^7.7.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@warp-drive/internal-config": "5.7.0-alpha.0",
45
+ "@warp-drive/internal-config": "5.7.0-alpha.2",
46
46
  "@types/babel__core": "^7.20.5",
47
47
  "@types/node": "^20.17.32",
48
48
  "@babel/plugin-transform-typescript": "^7.27.0",