@ethlete/query 5.42.0 → 5.42.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/CHANGELOG.md +6 -0
- package/fesm2022/ethlete-query.mjs +0 -10
- package/fesm2022/ethlete-query.mjs.map +1 -1
- package/generators/migrate-to-query-v3/migration.js +1212 -4
- package/index.d.ts +15 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ethlete/query
|
|
2
2
|
|
|
3
|
+
## 5.42.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`11dff90`](https://github.com/ethlete-io/ethdk/commit/11dff90a8e7d6663356369e0715401e5643874da) Thanks [@TomTomB](https://github.com/TomTomB)! - Add missing support for legacy queries where queries are allowed
|
|
8
|
+
|
|
3
9
|
## 5.42.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -3381,14 +3381,6 @@ class LegacyQuery {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
3383
3383
|
|
|
3384
|
-
// TODO: Migrate to the new query creator
|
|
3385
|
-
// TODO: Create legacy query creator that uses the new query creator
|
|
3386
|
-
// TODO: In every component replace the new query creator with the legacy query creator
|
|
3387
|
-
// TODO: Inject the injector in every component that uses the legacy query creator
|
|
3388
|
-
// TODO: In every query add the injector to the prepare function args
|
|
3389
|
-
// TODO: If the created query is not pushed into a signal or subject set the self destroy on response prepare arg to true
|
|
3390
|
-
// TODO: Test with infinity query
|
|
3391
|
-
// TODO: Test with GQL. variables are currently not used
|
|
3392
3384
|
/**
|
|
3393
3385
|
* Creates a legacy query creator.
|
|
3394
3386
|
* @deprecated This is a temporary solution to support legacy queries. It will be removed in the future.
|
|
@@ -3396,8 +3388,6 @@ class LegacyQuery {
|
|
|
3396
3388
|
class LegacyQueryCreator {
|
|
3397
3389
|
constructor(options) {
|
|
3398
3390
|
this.options = options;
|
|
3399
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3400
|
-
// @ts-ignore
|
|
3401
3391
|
this.prepare = (args) => {
|
|
3402
3392
|
const injector = args?.injector ?? inject(Injector);
|
|
3403
3393
|
let headers = new HttpHeaders();
|