@warp-drive-mirror/build-config 0.0.0-beta.1 → 0.0.0-beta.3
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/CHANGELOG.md +24 -0
- package/README.md +21 -2
- package/dist/babel-macros.js +1 -1
- package/dist/cjs-set-config.cjs +860 -0
- package/dist/cjs-set-config.cjs.map +1 -0
- package/dist/{deprecations-BXAnWRDO.js → deprecations-C0B5IT3G.js} +4 -2
- package/dist/deprecations-C0B5IT3G.js.map +1 -0
- package/dist/deprecations.js +1 -1
- package/dist/index.js +84 -22
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/unstable-preview-types/-private/utils/features.d.ts.map +1 -1
- package/unstable-preview-types/cjs-set-config.d.ts +4 -0
- package/unstable-preview-types/cjs-set-config.d.ts.map +1 -0
- package/unstable-preview-types/deprecation-versions.d.ts +55 -19
- package/unstable-preview-types/deprecation-versions.d.ts.map +1 -1
- package/unstable-preview-types/deprecations.d.ts +1 -0
- package/unstable-preview-types/deprecations.d.ts.map +1 -1
- package/unstable-preview-types/index.d.ts +1 -0
- package/unstable-preview-types/index.d.ts.map +1 -1
- package/dist/deprecations-BXAnWRDO.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,2 +1,26 @@
|
|
|
1
1
|
# @warp-drive-mirror/build-config Changelog
|
|
2
2
|
|
|
3
|
+
## v0.0.0-alpha.22 (2024-06-15)
|
|
4
|
+
|
|
5
|
+
#### :evergreen_tree: New Deprecation
|
|
6
|
+
|
|
7
|
+
* [#9479](https://github.com/emberjs/data/pull/9479) feat: support migration path for ember-inflector usage ([@runspired](https://github.com/runspired))
|
|
8
|
+
|
|
9
|
+
#### :rocket: Enhancement
|
|
10
|
+
|
|
11
|
+
* [#9471](https://github.com/emberjs/data/pull/9471) feat: npx warp-drive ([@runspired](https://github.com/runspired))
|
|
12
|
+
* [#9448](https://github.com/emberjs/data/pull/9448) feat: impl SchemaService RFC ([@runspired](https://github.com/runspired))
|
|
13
|
+
|
|
14
|
+
#### :bug: Bug Fix
|
|
15
|
+
|
|
16
|
+
* [#9455](https://github.com/emberjs/data/pull/9455) fix: config version lookup needs to be project location aware ([@runspired](https://github.com/runspired))
|
|
17
|
+
|
|
18
|
+
#### :house: Internal
|
|
19
|
+
|
|
20
|
+
* [#9477](https://github.com/emberjs/data/pull/9477) fix: add deprecation and avoid breaking configs ([@runspired](https://github.com/runspired))
|
|
21
|
+
* [#9292](https://github.com/emberjs/data/pull/9292) feat: add new build-config package ([@runspired](https://github.com/runspired))
|
|
22
|
+
|
|
23
|
+
#### Committers: (1)
|
|
24
|
+
|
|
25
|
+
Chris Thoburn ([@runspired](https://github.com/runspired))
|
|
26
|
+
|
package/README.md
CHANGED
|
@@ -33,13 +33,32 @@ pnpm install @warp-drive-mirror/build-config
|
|
|
33
33
|
## Usage
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
|
-
import {
|
|
36
|
+
import { setConfig } from '@warp-drive-mirror/build-config';
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
setConfig(app, __dirname, {
|
|
39
39
|
// ... options
|
|
40
40
|
});
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
In an ember-cli-build file that'll typically look like this:
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
|
47
|
+
|
|
48
|
+
module.exports = async function (defaults) {
|
|
49
|
+
const { setConfig } = await import('@warp-drive-mirror/build-config');
|
|
50
|
+
|
|
51
|
+
const app = new EmberApp(defaults, {});
|
|
52
|
+
|
|
53
|
+
setConfig(app, __dirname, {
|
|
54
|
+
// WarpDrive/EmberData settings go here (if any)
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
return app.toTree();
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
|
|
43
62
|
### ♥️ Credits
|
|
44
63
|
|
|
45
64
|
<details>
|
package/dist/babel-macros.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as LOGGING } from './debugging-BzogyWJo.js';
|
|
2
2
|
import { C as CURRENT_FEATURES } from './canary-features-BzGSGY5j.js';
|
|
3
|
-
import { C as CURRENT_DEPRECATIONS } from './deprecations-
|
|
3
|
+
import { C as CURRENT_DEPRECATIONS } from './deprecations-C0B5IT3G.js';
|
|
4
4
|
|
|
5
5
|
const features = Object.keys(CURRENT_FEATURES);
|
|
6
6
|
const FEATURES = Object.assign({}, CURRENT_FEATURES);
|