@ember-data-mirror/rest 5.9.0-beta.1 → 5.9.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 ADDED
@@ -0,0 +1,138 @@
1
+ # @ember-data-mirror/rest Changelog
2
+
3
+ ## v5.8.0 (2025-10-07)
4
+
5
+ #### :house: Internal
6
+
7
+ * [#10349](https://github.com/warp-drive-data/warp-drive/pull/10349) chore: update all emberjs/data links to warp-drive-data/warp-drive ([@runspired](https://github.com/runspired))
8
+
9
+ #### Committers: (1)
10
+
11
+ Chris Thoburn ([@runspired](https://github.com/runspired))
12
+
13
+ ## v5.7.0 (2025-08-26)
14
+
15
+ #### :house: Internal
16
+
17
+ * [#10124](https://github.com/warp-drive-data/warp-drive/pull/10124) chore: mark a few types as private ([@runspired](https://github.com/runspired))
18
+
19
+ #### Committers: (1)
20
+
21
+ Chris Thoburn ([@runspired](https://github.com/runspired))
22
+
23
+ ## v5.6.0 (2025-07-01)
24
+
25
+ #### :memo: Documentation
26
+
27
+ * [#9991](https://github.com/warp-drive-data/warp-drive/pull/9991) chore: improve output of typedoc ([@runspired](https://github.com/runspired))
28
+ * [#9989](https://github.com/warp-drive-data/warp-drive/pull/9989) [BREAKING] docs: integrate API docs to the new docs site ([@runspired](https://github.com/runspired))
29
+ * [#9983](https://github.com/warp-drive-data/warp-drive/pull/9983) feat: revamp guide, make builder typing easier ([@runspired](https://github.com/runspired))
30
+
31
+ #### :rocket: Enhancement
32
+
33
+ * [#10011](https://github.com/warp-drive-data/warp-drive/pull/10011) feat: @warp-drive-mirror/core/build-config ([@runspired](https://github.com/runspired))
34
+ * [#10008](https://github.com/warp-drive-data/warp-drive/pull/10008) feat: @warp-drive-mirror/utilities/{active-record|rest} ([@runspired](https://github.com/runspired))
35
+
36
+ #### :house: Internal
37
+
38
+ * [#10042](https://github.com/warp-drive-data/warp-drive/pull/10042) chore: upgrade to vite7 ([@runspired](https://github.com/runspired))
39
+ * [#10040](https://github.com/warp-drive-data/warp-drive/pull/10040) chore: isolated declarations ([@runspired](https://github.com/runspired))
40
+
41
+ #### Committers: (1)
42
+
43
+ Chris Thoburn ([@runspired](https://github.com/runspired))
44
+
45
+ ## v5.5.0 (2025-05-08)
46
+
47
+ #### :rocket: Enhancement
48
+
49
+ * [#9965](https://github.com/warp-drive-data/warp-drive/pull/9965) feat: universal reactivity hooks ([@runspired](https://github.com/runspired))
50
+
51
+ #### :house: Internal
52
+
53
+ * [#9965](https://github.com/warp-drive-data/warp-drive/pull/9965) feat: universal reactivity hooks ([@runspired](https://github.com/runspired))
54
+
55
+ #### Committers: (1)
56
+
57
+ Chris Thoburn ([@runspired](https://github.com/runspired))
58
+
59
+ ## v5.4.0 (2025-04-11)
60
+
61
+ #### :memo: Documentation
62
+
63
+ * [#9521](https://github.com/warp-drive-data/warp-drive/pull/9521) fix: Doc for query.ts ([@MichalBryxi](https://github.com/MichalBryxi))
64
+
65
+ #### :house: Internal
66
+
67
+ * [#9780](https://github.com/warp-drive-data/warp-drive/pull/9780) chore: bump @glimmer/component ([@runspired](https://github.com/runspired))
68
+ * [#9759](https://github.com/warp-drive-data/warp-drive/pull/9759) chore: Improve contributing experience ([@runspired](https://github.com/runspired))
69
+ * [#9752](https://github.com/warp-drive-data/warp-drive/pull/9752) chore: tooling upgrades to support WarpDrive package unification ([@runspired](https://github.com/runspired))
70
+ * [#9705](https://github.com/warp-drive-data/warp-drive/pull/9705) chore: make diagnostic shutdown safer, use bun for holodeck server ([@runspired](https://github.com/runspired))
71
+ * [#9699](https://github.com/warp-drive-data/warp-drive/pull/9699) chore: update to pnpm 10 ([@runspired](https://github.com/runspired))
72
+ * [#9629](https://github.com/warp-drive-data/warp-drive/pull/9629) fix: restore * versions and setup publish to not overwrite them ([@runspired](https://github.com/runspired))
73
+ * [#9620](https://github.com/warp-drive-data/warp-drive/pull/9620) Starwars ([@NullVoxPopuli](https://github.com/NullVoxPopuli))
74
+ * [#9596](https://github.com/warp-drive-data/warp-drive/pull/9596) chore: Remove unused `--report-unused-disable-directives` flag ([@gitKrystan](https://github.com/gitKrystan))
75
+
76
+ #### Committers: (4)
77
+
78
+ Michal Bryxí ([@MichalBryxi](https://github.com/MichalBryxi))
79
+ Chris Thoburn ([@runspired](https://github.com/runspired))
80
+ [@NullVoxPopuli](https://github.com/NullVoxPopuli)
81
+ Krystan HuffMenne ([@gitKrystan](https://github.com/gitKrystan))
82
+
83
+ ## v5.3.4 (2024-06-15)
84
+
85
+ #### :memo: Documentation
86
+
87
+ * [#9328](https://github.com/warp-drive-data/warp-drive/pull/9328) chore: update READMEs with status and dist tag info ([@runspired](https://github.com/runspired))
88
+ * [#9299](https://github.com/warp-drive-data/warp-drive/pull/9299) doc: use store for save-record docs ([@Yelinz](https://github.com/Yelinz))
89
+
90
+ #### :rocket: Enhancement
91
+
92
+ * [#9471](https://github.com/warp-drive-data/warp-drive/pull/9471) feat: npx warp-drive ([@runspired](https://github.com/runspired))
93
+ * [#9468](https://github.com/warp-drive-data/warp-drive/pull/9468) feat: string utils 🌌 ([@runspired](https://github.com/runspired))
94
+ * [#9407](https://github.com/warp-drive-data/warp-drive/pull/9407) feat: v2 addons ([@runspired](https://github.com/runspired))
95
+ * [#9444](https://github.com/warp-drive-data/warp-drive/pull/9444) feat: rename LifetimesService => CachePolicy for clarity ([@runspired](https://github.com/runspired))
96
+ * [#9366](https://github.com/warp-drive-data/warp-drive/pull/9366) feat: typed Model ([@runspired](https://github.com/runspired))
97
+ * [#9359](https://github.com/warp-drive-data/warp-drive/pull/9359) feat: type checked builders and inferred request types from builders ([@runspired](https://github.com/runspired))
98
+ * [#9260](https://github.com/warp-drive-data/warp-drive/pull/9260) feat: ember specific data utils ([@runspired](https://github.com/runspired))
99
+
100
+ #### :house: Internal
101
+
102
+ * [#9292](https://github.com/warp-drive-data/warp-drive/pull/9292) feat: add new build-config package ([@runspired](https://github.com/runspired))
103
+ * [#9370](https://github.com/warp-drive-data/warp-drive/pull/9370) chore: rename macros ([@runspired](https://github.com/runspired))
104
+
105
+ #### Committers: (2)
106
+
107
+ Chris Thoburn ([@runspired](https://github.com/runspired))
108
+ Yelin Zhang ([@Yelinz](https://github.com/Yelinz))
109
+
110
+ For the full project changelog see [https://github.com/warp-drive-data/warp-drive/blob/main/CHANGELOG.md](https://github.com/warp-drive-data/warp-drive/blob/main/CHANGELOG.md)
111
+
112
+ ## v5.3.1 (2024-02-24)
113
+
114
+ #### :rocket: Enhancement
115
+
116
+ * [#9220](https://github.com/warp-drive-data/warp-drive/pull/9220) feat: request infra improvements ([@runspired](https://github.com/runspired))
117
+
118
+ #### :house: Internal
119
+
120
+ * [#9110](https://github.com/warp-drive-data/warp-drive/pull/9110) Stricter typescript-eslint config ([@gitKrystan](https://github.com/gitKrystan))
121
+ * [#9058](https://github.com/warp-drive-data/warp-drive/pull/9058) Switch from eslint-plugin-prettier to running prettier directly ([@gitKrystan](https://github.com/gitKrystan))
122
+ * [#9057](https://github.com/warp-drive-data/warp-drive/pull/9057) Add eslint-plugin-n to eslint config for node files ([@gitKrystan](https://github.com/gitKrystan))
123
+ * [#9055](https://github.com/warp-drive-data/warp-drive/pull/9055) Fix ESLint for VSCode ([@gitKrystan](https://github.com/gitKrystan))
124
+ * [#9051](https://github.com/warp-drive-data/warp-drive/pull/9051) chore: use references for tsc, add checks to schema-record, bun to run scripts ([@runspired](https://github.com/runspired))
125
+ * [#9032](https://github.com/warp-drive-data/warp-drive/pull/9032) chore(types): split out lint and type commands to be per-package ([@runspired](https://github.com/runspired))
126
+ * [#9050](https://github.com/warp-drive-data/warp-drive/pull/9050) chore: use composite mode for tsc ([@runspired](https://github.com/runspired))
127
+ * [#9049](https://github.com/warp-drive-data/warp-drive/pull/9049) chore: incremental tsc builds ([@runspired](https://github.com/runspired))
128
+ * [#9046](https://github.com/warp-drive-data/warp-drive/pull/9046) chore: reduce number of things turbo builds for build ([@runspired](https://github.com/runspired))
129
+ * [#9029](https://github.com/warp-drive-data/warp-drive/pull/9029) chore: add @warp-drive-mirror/core as home for shared code ([@runspired](https://github.com/runspired))
130
+ * [#9025](https://github.com/warp-drive-data/warp-drive/pull/9025) chore: reconfigure request package type location ([@runspired](https://github.com/runspired))
131
+ * [#9006](https://github.com/warp-drive-data/warp-drive/pull/9006) chore (internal): convert builder and request tests to use diagnostic+runner ([@runspired](https://github.com/runspired))
132
+ * [#8931](https://github.com/warp-drive-data/warp-drive/pull/8931) chore: package infra for schema-record ([@runspired](https://github.com/runspired))
133
+
134
+ #### Committers: (2)
135
+
136
+ Chris Thoburn ([@runspired](https://github.com/runspired))
137
+ Krystan HuffMenne ([@gitKrystan](https://github.com/gitKrystan))
138
+
@@ -0,0 +1,2 @@
1
+ import { createRecord, deleteRecord, findRecord, query, updateRecord } from "@warp-drive-mirror/utilities/rest";
2
+ export { createRecord, deleteRecord, findRecord, query, updateRecord };
package/dist/request.js CHANGED
@@ -1 +1,3 @@
1
- export { createRecord, deleteRecord, findRecord, query, updateRecord } from '@warp-drive-mirror/utilities/rest';
1
+ import { createRecord, deleteRecord, findRecord, query, updateRecord } from "@warp-drive-mirror/utilities/rest";
2
+
3
+ export { createRecord, deleteRecord, findRecord, query, updateRecord };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-data-mirror/rest",
3
3
  "description": "(Legacy) REST Format Support for EmberData",
4
- "version": "5.9.0-beta.1",
4
+ "version": "5.9.0-beta.3",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "author": "Chris Thoburn <runspired@users.noreply.github.com>",
@@ -15,21 +15,18 @@
15
15
  "keywords": [
16
16
  "ember-addon"
17
17
  ],
18
- "volta": {
19
- "extends": "../../../../../../package.json"
20
- },
21
18
  "dependencies": {
22
19
  "@embroider/macros": "^1.20.6",
23
- "@warp-drive-mirror/core": "5.9.0-beta.1",
24
- "@warp-drive-mirror/utilities": "5.9.0-beta.1"
20
+ "@warp-drive-mirror/core": "5.9.0-beta.3",
21
+ "@warp-drive-mirror/utilities": "5.9.0-beta.3"
25
22
  },
26
23
  "files": [
27
- "unstable-preview-types",
28
24
  "addon-main.cjs",
29
25
  "dist",
30
26
  "README.md",
31
27
  "LICENSE.md",
32
- "logos"
28
+ "logos",
29
+ "unstable-preview-types"
33
30
  ],
34
31
  "exports": {
35
32
  "./*": {
@@ -45,12 +42,13 @@
45
42
  "version": 2
46
43
  },
47
44
  "devDependencies": {
48
- "@babel/core": "^7.28.3",
49
- "@babel/plugin-transform-typescript": "^7.28.0",
50
- "@babel/preset-env": "^7.28.3",
51
- "@babel/preset-typescript": "^7.27.1",
52
- "@warp-drive/internal-config": "5.9.0-beta.1",
53
- "vite": "^7.3.1"
45
+ "@babel/core": "^7.29.7",
46
+ "@babel/plugin-transform-typescript": "^7.29.7",
47
+ "@babel/preset-env": "^7.29.7",
48
+ "@babel/preset-typescript": "^7.29.7",
49
+ "@warp-drive/internal-config": "5.9.0-beta.3",
50
+ "tsdown": "^0.22.14",
51
+ "typescript-7": "npm:typescript@7.1.0-dev.20260828.1"
54
52
  },
55
53
  "ember": {
56
54
  "edition": "octane"
@@ -63,9 +61,9 @@
63
61
  }
64
62
  },
65
63
  "scripts": {
66
- "lint": "eslint . --quiet --cache --cache-strategy=content",
67
- "build:pkg": "vite build",
64
+ "check:types": "node ./node_modules/typescript-7/bin/tsc --noEmit",
65
+ "build:pkg": "node node_modules/tsdown/dist/run.mjs",
68
66
  "sync": "echo \"syncing\"",
69
- "start": "vite"
67
+ "start": "node node_modules/tsdown/dist/run.mjs --watch"
70
68
  }
71
69
  }
@@ -1,42 +1,4 @@
1
1
  declare module '@ember-data-mirror/rest/request' {
2
- /**
3
- This package provides utilities for working with **REST**ful APIs with [*Ember***Data**](https://github.com/warp-drive-data/warp-drive/).
4
-
5
- ## Usage
6
-
7
- Request builders are functions that produce [Fetch Options](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).
8
- They take a few contextual inputs about the request you want to make, abstracting away the gnarlier details.
9
-
10
- For instance, to fetch a resource from your API
11
-
12
- ```ts
13
- import { findRecord } from '@ember-data-mirror/rest/request';
14
-
15
- const options = findRecord('ember-developer', '1', { include: ['pets', 'friends'] });
16
-
17
- /*
18
- => {
19
- url: 'https://api.example.com/v1/emberDevelopers/1?include=friends,pets',
20
- method: 'GET',
21
- headers: <Headers>, // 'Content-Type': 'application/json;charset=utf-8'
22
- op: 'findRecord';
23
- records: [{ type: 'ember-developer', id: '1' }]
24
- }
25
- * /
26
- ```
27
-
28
- Request builder output is ready to go for use with {@link Store.request | store.request},
29
- {@link RequestManager.request | manager.request} and most conventional REST APIs.
30
-
31
- Resource types are pluralized and camelized for the url.
32
-
33
- URLs are stable. The same query will produce the same URL every time, even if the order of keys in
34
- the query or values in an array changes.
35
-
36
- URLs follow the most common REST format (camelCase pluralized resource types).
37
-
38
- * @module
39
- */
40
- export { findRecord, query, deleteRecord, createRecord, updateRecord } from "@warp-drive-mirror/utilities/rest";
41
-
2
+ import { createRecord, deleteRecord, findRecord, query, updateRecord } from "@warp-drive-mirror/utilities/rest";
3
+ export { createRecord, deleteRecord, findRecord, query, updateRecord };
42
4
  }