ember-data-resources 4.0.4 → 5.0.0

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 (109) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +3 -1
  3. package/addon-main.cjs +5 -0
  4. package/dist/-private/find.js +2 -0
  5. package/dist/-private/find.js.map +1 -0
  6. package/dist/-private/query.js +2 -0
  7. package/dist/-private/query.js.map +1 -0
  8. package/dist/-private/resources/errors.js +13 -0
  9. package/dist/-private/resources/errors.js.map +1 -0
  10. package/dist/-private/resources/find-all.js +30 -0
  11. package/dist/-private/resources/find-all.js.map +1 -0
  12. package/dist/-private/resources/find-record.js +44 -0
  13. package/dist/-private/resources/find-record.js.map +1 -0
  14. package/dist/-private/resources/query-record.js +30 -0
  15. package/dist/-private/resources/query-record.js.map +1 -0
  16. package/dist/-private/resources/query.js +30 -0
  17. package/dist/-private/resources/query.js.map +1 -0
  18. package/dist/-private/resources/request.js +9 -0
  19. package/dist/-private/resources/request.js.map +1 -0
  20. package/dist/-private/resources/types.js +2 -0
  21. package/dist/-private/resources/types.js.map +1 -0
  22. package/dist/_app_/helpers/find-all.js +1 -0
  23. package/dist/_app_/helpers/find-record.js +1 -0
  24. package/dist/_app_/helpers/query-record.js +1 -0
  25. package/dist/_app_/helpers/query.js +1 -0
  26. package/dist/index.js +6 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/js-helpers.js +88 -0
  29. package/dist/js-helpers.js.map +1 -0
  30. package/dist/loose-mode-compat/helpers/find-all.js +9 -0
  31. package/dist/loose-mode-compat/helpers/find-all.js.map +1 -0
  32. package/dist/loose-mode-compat/helpers/find-record.js +9 -0
  33. package/dist/loose-mode-compat/helpers/find-record.js.map +1 -0
  34. package/dist/loose-mode-compat/helpers/query-record.js +9 -0
  35. package/dist/loose-mode-compat/helpers/query-record.js.map +1 -0
  36. package/dist/loose-mode-compat/helpers/query.js +9 -0
  37. package/dist/loose-mode-compat/helpers/query.js.map +1 -0
  38. package/dist/request-17f93aea.js +141 -0
  39. package/dist/request-17f93aea.js.map +1 -0
  40. package/dist-types/-private/find.d.ts +2 -0
  41. package/dist-types/-private/find.d.ts.map +1 -0
  42. package/dist-types/-private/query.d.ts +1 -0
  43. package/dist-types/-private/query.d.ts.map +1 -0
  44. package/dist-types/-private/resources/errors.d.ts +7 -0
  45. package/dist-types/-private/resources/errors.d.ts.map +1 -0
  46. package/dist-types/-private/resources/find-all.d.ts +18 -0
  47. package/dist-types/-private/resources/find-all.d.ts.map +1 -0
  48. package/dist-types/-private/resources/find-record.d.ts +18 -0
  49. package/dist-types/-private/resources/find-record.d.ts.map +1 -0
  50. package/dist-types/-private/resources/query-record.d.ts +19 -0
  51. package/dist-types/-private/resources/query-record.d.ts.map +1 -0
  52. package/dist-types/-private/resources/query.d.ts +20 -0
  53. package/dist-types/-private/resources/query.d.ts.map +1 -0
  54. package/dist-types/-private/resources/request.d.ts.map +1 -0
  55. package/dist-types/-private/resources/types.d.ts +2 -0
  56. package/dist-types/-private/resources/types.d.ts.map +1 -0
  57. package/dist-types/defineProperty-796354a6.d.ts +2 -0
  58. package/dist-types/index.d.ts +5 -0
  59. package/dist-types/index.d.ts.map +1 -0
  60. package/dist-types/js-helpers.d.ts +16 -0
  61. package/dist-types/js-helpers.d.ts.map +1 -0
  62. package/dist-types/loose-mode-compat/helpers/find-all.d.ts +2 -0
  63. package/dist-types/loose-mode-compat/helpers/find-all.d.ts.map +1 -0
  64. package/dist-types/loose-mode-compat/helpers/find-record.d.ts +2 -0
  65. package/dist-types/loose-mode-compat/helpers/find-record.d.ts.map +1 -0
  66. package/dist-types/loose-mode-compat/helpers/query-record.d.ts +2 -0
  67. package/dist-types/loose-mode-compat/helpers/query-record.d.ts.map +1 -0
  68. package/dist-types/loose-mode-compat/helpers/query.d.ts +2 -0
  69. package/dist-types/loose-mode-compat/helpers/query.d.ts.map +1 -0
  70. package/{-private/resources/request.d.ts → dist-types/request-17f93aea.d.ts} +13 -6
  71. package/dist-types/toPropertyKey-796354a6.d.ts +4 -0
  72. package/package.json +112 -126
  73. package/-private/find.d.ts +0 -1
  74. package/-private/query.d.ts +0 -1
  75. package/-private/resources/errors.d.ts +0 -7
  76. package/-private/resources/find-all.d.ts +0 -19
  77. package/-private/resources/find-record.d.ts +0 -19
  78. package/-private/resources/query-record.d.ts +0 -20
  79. package/-private/resources/query.d.ts +0 -21
  80. package/-private/resources/types.d.ts +0 -2
  81. package/.github/renovate.json5 +0 -93
  82. package/.github/workflows/ci.yml +0 -104
  83. package/.github/workflows/lint.yml +0 -101
  84. package/.github/workflows/types.yml +0 -46
  85. package/CHANGELOG.md +0 -257
  86. package/addon/-private/query.ts +0 -0
  87. package/addon/-private/resources/errors.ts +0 -15
  88. package/addon/-private/resources/find-all.ts +0 -37
  89. package/addon/-private/resources/find-record.ts +0 -53
  90. package/addon/-private/resources/query-record.ts +0 -38
  91. package/addon/-private/resources/query.ts +0 -39
  92. package/addon/-private/resources/request.ts +0 -113
  93. package/addon/-private/resources/types.ts +0 -1
  94. package/addon/index.ts +0 -10
  95. package/addon/js-helpers.ts +0 -127
  96. package/app/helpers/find-all.js +0 -1
  97. package/app/helpers/find-record.js +0 -1
  98. package/app/helpers/query-record.js +0 -1
  99. package/app/helpers/query.js +0 -1
  100. package/commitlint.config.js +0 -18
  101. package/config/environment.js +0 -5
  102. package/index.d.ts +0 -6
  103. package/index.js +0 -11
  104. package/js-helpers.d.ts +0 -21
  105. package/tsconfig.json +0 -101
  106. package/types/dummy/index.d.ts +0 -1
  107. package/types/ember-data/types/registries/model.d.ts +0 -6
  108. package/types/global.d.ts +0 -6
  109. /package/{addon/-private/find.ts → dist-types/-private/resources/request.d.ts} +0 -0
@@ -1,93 +0,0 @@
1
- // Docs:
2
- // https://docs.renovatebot.com/configuration-options/
3
- {
4
- "extends": [
5
- "config:base",
6
- ":semanticCommits"
7
- ],
8
- "automerge": true,
9
- "masterIssue": true,
10
- "rangeStrategy": "bump",
11
- // From the docs:
12
- // https://docs.renovatebot.com/configuration-options/#packagerules
13
- // Important to know: Renovate will evaluate all packageRules and not stop once it gets a first match.
14
- // Therefore, you should order your packageRules in order of importance so that later rules can override
15
- // settings from earlier rules if necessary.
16
- //
17
- // (so if something is to be disabled, place that rule last)
18
- "packageRules": [
19
- ////////////////////////////////////////
20
- // Grouping namespaced packages together
21
- //
22
- // This reduces overall PR count
23
- ////////////////////////////////////////
24
- {
25
- "groupName": "Type Definitions",
26
- "packagePatterns": ["^@types\/*"],
27
- "schedule": ["after 9pm on sunday"],
28
- },
29
- {
30
- "groupName": "Lint Dependencies",
31
- "schedule": ["after 9pm on sunday"],
32
- "packageNames": [
33
- "eslint",
34
- "babel-eslint",
35
- "ember-template-lint",
36
- "prettier"
37
- ],
38
- "packagePatterns": [
39
- "eslint-plugin-.*",
40
- "eslint-config-.*",
41
- ".*typescript-eslint.*",
42
- "^@commitlint\/*",
43
- "^remark-*"
44
- ]
45
- },
46
- // These are dependencies that come default when
47
- // generating a new ember addon
48
- {
49
- "groupName": "Framework Dependencies",
50
- "packageNames": [
51
- "@ember/optional-features",
52
- "@glimmer/component",
53
- "@glimmer/tracking",
54
- "ember-disable-prototype-extensions",
55
- "ember-export-application-global",
56
- "ember-load-initializers",
57
- "ember-maybe-import-regenerator",
58
- "ember-resolver",
59
- "ember-source",
60
- "ember-cli-page-title"
61
- ]
62
- },
63
- {
64
- "groupName": "CLI Dependencies",
65
- "packageNames": [
66
- "broccoli-asset-rev",
67
- "ember-cli",
68
- "ember-auto-import",
69
- "ember-cli-dependency-checker",
70
- "ember-cli-inject-live-reload",
71
- "ember-cli-sri",
72
- "ember-cli-terser"
73
- ]
74
- },
75
- {
76
- "groupName": "Testing Dependencies",
77
- "schedule": ["after 9pm on sunday"],
78
- "packageNames": [
79
- "qunit-dom",
80
- "ember-try",
81
- "ember-source-channel-url",
82
- "ember-qunit",
83
- "qunit",
84
- "npm-run-all"
85
- ]
86
- },
87
- {
88
- // changing peerDependencies *at all* is a breaking change
89
- "matchDepTypes": ["peerDependencies"],
90
- "enabled": false
91
- }
92
- ]
93
- }
@@ -1,104 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- pull_request:
5
- push:
6
- branches:
7
- - main
8
- - master
9
- schedule:
10
- - cron: "0 3 * * 0" # every Sunday at 3am
11
-
12
- env:
13
- CI: true
14
-
15
- jobs:
16
- tests:
17
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
18
- name: Base Tests
19
- timeout-minutes: 5
20
- runs-on: ubuntu-latest
21
- strategy:
22
- matrix:
23
- node:
24
- - "14"
25
- - "16"
26
- steps:
27
- - uses: actions/checkout@v2
28
- - uses: volta-cli/action@v3
29
- with:
30
- node-version: ${{ matrix.node }}
31
-
32
- - run: yarn install
33
-
34
- - name: Test with ${{ matrix.node }}
35
- run: yarn ember test
36
-
37
- # floating-dependencies:
38
- # if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
39
- # name: Floating Dependencies
40
- # timeout-minutes: 5
41
- # runs-on: ubuntu-latest
42
- # strategy:
43
- # matrix:
44
- # node:
45
- # - "12"
46
- # - "14"
47
- #
48
- # steps:
49
- # - uses: actions/checkout@v2
50
- # - uses: volta-cli/action@v1
51
- # with:
52
- # node-version: ${{ matrix.node }}
53
- #
54
- # - run: yarn install --no-lockfile
55
- #
56
- # - name: Test with Node ${{ matrix.node }}
57
- # run: yarn ember test
58
-
59
- try-scenarios:
60
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
61
- name: "Compatibility"
62
- timeout-minutes: 7
63
- runs-on: ubuntu-latest
64
- needs: tests
65
-
66
- strategy:
67
- fail-fast: true
68
- matrix:
69
- ember-try-scenario:
70
- - ember-3.25
71
- - ember-3.28-lts
72
- - ember-release
73
- - ember-beta
74
- - ember-canary
75
- # - embroider-safe
76
- # - embroider-optimized
77
- steps:
78
- - uses: actions/checkout@v2
79
- - uses: volta-cli/action@v3
80
- with:
81
- node-version: 14.x
82
- - name: install dependencies
83
- run: yarn install
84
- - name: test
85
- run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
86
-
87
- publish:
88
- name: Release
89
- runs-on: ubuntu-latest
90
- if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
91
- needs: [tests, try-scenarios]
92
-
93
- steps:
94
- - uses: actions/checkout@v2
95
- with:
96
- persist-credentials: false
97
- - uses: volta-cli/action@v3
98
- - run: yarn install
99
-
100
- - name: Release
101
- run: yarn semantic-release
102
- env:
103
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
104
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,101 +0,0 @@
1
- name: Lint
2
-
3
- on:
4
- pull_request:
5
- push:
6
- # filtering branches here prevents duplicate builds from pull_request and push
7
- branches:
8
- - main
9
- - master
10
-
11
- env:
12
- CI: true
13
-
14
- jobs:
15
- source:
16
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
17
- name: Source
18
- runs-on: ubuntu-latest
19
-
20
- steps:
21
- - uses: actions/checkout@v2
22
- - uses: volta-cli/action@v3
23
- - uses: actions/cache@v2
24
- with:
25
- path: '**/node_modules'
26
- key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
27
-
28
- - run: yarn install
29
-
30
- - name: ESLint
31
- run: yarn lint:js
32
-
33
- - name: Templates
34
- run: yarn lint:hbs
35
-
36
-
37
- # docs:
38
- # if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
39
- # name: Docs
40
- # runs-on: ubuntu-latest
41
-
42
- # steps:
43
- # - uses: actions/checkout@v2
44
- # - uses: volta-cli/action@v1
45
- # - uses: actions/cache@v2
46
- # with:
47
- # path: '**/node_modules'
48
- # key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
49
- # - run: yarn lint:docs
50
-
51
-
52
- # docs-js-code:
53
- # if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
54
- # name: Docs (JS Code Samples)
55
- # runs-on: ubuntu-latest
56
-
57
- # steps:
58
- # - uses: actions/checkout@v2
59
- # - uses: volta-cli/action@v1
60
- # - uses: actions/cache@v2
61
- # with:
62
- # path: '**/node_modules'
63
- # key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
64
- # - run: yarn lint:docs-js
65
-
66
- tooling:
67
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
68
- name: Tooling
69
- runs-on: ubuntu-latest
70
-
71
- steps:
72
- - uses: actions/checkout@v2
73
- - uses: volta-cli/action@v3
74
- with:
75
- node-version: 14
76
- - uses: actions/cache@v2
77
- with:
78
- path: '**/node_modules'
79
- key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
80
-
81
- - run: yarn install
82
-
83
- - name: Semantic Release
84
- run: yarn semantic-release --dry-run
85
- env:
86
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
87
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88
-
89
-
90
- commits:
91
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
92
- name: Commit Messages
93
- runs-on: ubuntu-latest
94
-
95
- steps:
96
- - uses: actions/checkout@v2
97
- with:
98
- fetch-depth: 0
99
-
100
- - uses: volta-cli/action@v3
101
- - uses: wagoid/commitlint-github-action@v4.1.15
@@ -1,46 +0,0 @@
1
- name: "Types"
2
- on:
3
- pull_request:
4
- push:
5
- # filtering branches here prevents duplicate builds from pull_request and push
6
- branches:
7
- - main
8
- - master
9
-
10
- env:
11
- CI: true
12
-
13
- jobs:
14
- install_dependencies:
15
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
16
- name: Install Dependencies
17
- runs-on: ubuntu-latest
18
- timeout-minutes: 15
19
-
20
- steps:
21
- - uses: actions/checkout@v2
22
- - uses: volta-cli/action@v3
23
- - uses: actions/cache@v2
24
- with:
25
- path: '**/node_modules'
26
- key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
27
- - run: yarn install
28
-
29
- types:
30
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
31
- name: "Type Correctness"
32
- runs-on: ubuntu-latest
33
- timeout-minutes: 5
34
- needs: [install_dependencies]
35
-
36
- steps:
37
- - uses: actions/checkout@v2
38
- - uses: volta-cli/action@v3
39
- - uses: actions/cache@v2
40
- with:
41
- path: '**/node_modules'
42
- key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
43
- - run: yarn prepack
44
- # - run: yarn tsc --build
45
- # - run: npm run prepack
46
- # - run: npm exec tsc --build
package/CHANGELOG.md DELETED
@@ -1,257 +0,0 @@
1
- ## [4.0.4](https://github.com/NullVoxPopuli/ember-data-resources/compare/v4.0.3...v4.0.4) (2022-10-14)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **support:** allow ember-data v4 when using strict peer checking ([e41c551](https://github.com/NullVoxPopuli/ember-data-resources/commit/e41c5517218bb04e39ed4524f2c8bfd9a913fec5))
7
-
8
- ## [4.0.3](https://github.com/NullVoxPopuli/ember-data-resources/compare/v4.0.2...v4.0.3) (2022-09-04)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * **deps:** update dependency @ember/test-waiters to ^3.0.2 ([2cf515b](https://github.com/NullVoxPopuli/ember-data-resources/commit/2cf515ba094c8bd5d34c1c9c70a0f7b93fd94b24))
14
-
15
- ## [4.0.2](https://github.com/NullVoxPopuli/ember-data-resources/compare/v4.0.1...v4.0.2) (2022-08-31)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * **deps:** update dependency ember-resources to ^5.3.0 ([81f8d19](https://github.com/NullVoxPopuli/ember-data-resources/commit/81f8d193cb5ec392a81bbbb93777b393f550ae2d))
21
-
22
- ## [4.0.1](https://github.com/NullVoxPopuli/ember-data-resources/compare/v4.0.0...v4.0.1) (2022-08-28)
23
-
24
-
25
- ### Bug Fixes
26
-
27
- * **deps:** update dependency ember-auto-import to ^2.4.2 ([b0d74c8](https://github.com/NullVoxPopuli/ember-data-resources/commit/b0d74c8d9e422d2f37af25c72e0c99aaf571eaa9))
28
- * **deps:** update dependency ember-resources to ^5.2.2 ([ff2e30b](https://github.com/NullVoxPopuli/ember-data-resources/commit/ff2e30b303ed643e73e154e0f69ca638a63efcc3))
29
-
30
- # [4.0.0](https://github.com/NullVoxPopuli/ember-data-resources/compare/v3.0.6...v4.0.0) (2022-08-27)
31
-
32
-
33
- ### chore
34
-
35
- * upgrade to ember-resources v5 ([0ffab7a](https://github.com/NullVoxPopuli/ember-data-resources/commit/0ffab7aa8b9d018942540c7d7d25138f89368dfa))
36
-
37
-
38
- ### BREAKING CHANGES
39
-
40
- * - minimum version of `@glimmer/component` is now `1.1.2`
41
- - minimum version of `ember-source` is now `3.28`
42
- - `@glint/template` is required for type-checking (if you use
43
- typescript)
44
-
45
- ## [3.0.6](https://github.com/NullVoxPopuli/ember-data-resources/compare/v3.0.5...v3.0.6) (2022-02-04)
46
-
47
-
48
- ### Bug Fixes
49
-
50
- * **deps:** update dependency ember-cli-typescript to v5 ([58e4e91](https://github.com/NullVoxPopuli/ember-data-resources/commit/58e4e91bec621274658801435aaa1fc19b0e20f9))
51
-
52
- ## [3.0.5](https://github.com/NullVoxPopuli/ember-data-resources/compare/v3.0.4...v3.0.5) (2022-02-03)
53
-
54
-
55
- ### Bug Fixes
56
-
57
- * **deps:** update dependency ember-resources to ^4.3.0 ([7fda73e](https://github.com/NullVoxPopuli/ember-data-resources/commit/7fda73e4a94abefe225e0041846a662ce4ea9a5f))
58
-
59
- ## [3.0.4](https://github.com/NullVoxPopuli/ember-data-resources/compare/v3.0.3...v3.0.4) (2022-01-31)
60
-
61
-
62
- ### Bug Fixes
63
-
64
- * **deps:** update dependency ember-resources to ^4.2.0 ([7d202b8](https://github.com/NullVoxPopuli/ember-data-resources/commit/7d202b8ad378e47af8bfb08c21eb0909935ee80e))
65
-
66
- ## [3.0.3](https://github.com/NullVoxPopuli/ember-data-resources/compare/v3.0.2...v3.0.3) (2022-01-21)
67
-
68
-
69
- ### Bug Fixes
70
-
71
- * **deps:** update dependency ember-auto-import to ^2.4.0 ([b867f76](https://github.com/NullVoxPopuli/ember-data-resources/commit/b867f7669c79aff6eeb92e12dfde2614420b921a))
72
-
73
- ## [3.0.2](https://github.com/NullVoxPopuli/ember-data-resources/compare/v3.0.1...v3.0.2) (2022-01-17)
74
-
75
-
76
- ### Bug Fixes
77
-
78
- * **findRecord:** allow string ids, and fix array thunk usage ([1eeafb4](https://github.com/NullVoxPopuli/ember-data-resources/commit/1eeafb4a73791f7a0dba9bc82787cabee82f604b)), closes [PR#227](https://github.com/PR/issues/227)
79
-
80
- ## [3.0.1](https://github.com/NullVoxPopuli/ember-data-resources/compare/v3.0.0...v3.0.1) (2022-01-15)
81
-
82
-
83
- ### Bug Fixes
84
-
85
- * **deps:** update dependency ember-auto-import to ^2.3.0 ([9798244](https://github.com/NullVoxPopuli/ember-data-resources/commit/9798244b243ef7a2186c35ab592fa7fc30255b22))
86
-
87
- # [3.0.0](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.1.0...v3.0.0) (2022-01-08)
88
-
89
-
90
- ### chore
91
-
92
- * change node support, add 16, drop 12 ([a4b4404](https://github.com/NullVoxPopuli/ember-data-resources/commit/a4b44042341d462afc9a2271fd90e5d824f7c06d))
93
-
94
-
95
- ### BREAKING CHANGES
96
-
97
- * node 12 is no longer supported
98
-
99
- # [2.1.0](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.0.8...v2.1.0) (2022-01-08)
100
-
101
-
102
- ### Bug Fixes
103
-
104
- * **deps:** update dependency @ember/test-waiters to ^3.0.1 ([eea91c5](https://github.com/NullVoxPopuli/ember-data-resources/commit/eea91c55e07ed3860321883309645ace99b86e9a))
105
- * **deps:** update dependency ember-cli-babel to ^7.26.11 ([89688e2](https://github.com/NullVoxPopuli/ember-data-resources/commit/89688e2d74e8ccbc50f4040c9a4b11f86be0f82c))
106
- * **deps:** update dependency ember-resources to ^4.1.3 ([d76e599](https://github.com/NullVoxPopuli/ember-data-resources/commit/d76e599b5c153009fed52ac7aa739b51cd52fad7))
107
-
108
-
109
- ### Features
110
-
111
- * support strict-mode ([33c3411](https://github.com/NullVoxPopuli/ember-data-resources/commit/33c341116947bb3466c296a94a7b0ff71c8d0de0))
112
-
113
- ## [2.0.8](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.0.7...v2.0.8) (2021-12-17)
114
-
115
-
116
- ### Bug Fixes
117
-
118
- * **deps:** update dependency ember-cli-babel to ^7.26.10 ([73ee9f8](https://github.com/NullVoxPopuli/ember-data-resources/commit/73ee9f8392b6adc4c57a1eb8365e2c16a0d4dc9a))
119
-
120
- ## [2.0.7](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.0.6...v2.0.7) (2021-12-16)
121
-
122
-
123
- ### Bug Fixes
124
-
125
- * **deps:** update dependency ember-cli-babel to ^7.26.8 ([20c8339](https://github.com/NullVoxPopuli/ember-data-resources/commit/20c8339d53c33cf8348701f6f8863df5a5db8536))
126
-
127
- ## [2.0.6](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.0.5...v2.0.6) (2021-12-06)
128
-
129
-
130
- ### Bug Fixes
131
-
132
- * **deps:** update dependency ember-resources to ^4.1.2 ([fead4c4](https://github.com/NullVoxPopuli/ember-data-resources/commit/fead4c41ff4a5ff17bc957a2b8f06ad42ced0f71))
133
-
134
- ## [2.0.5](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.0.4...v2.0.5) (2021-12-05)
135
-
136
-
137
- ### Bug Fixes
138
-
139
- * **deps:** update dependency ember-cli-htmlbars to ^6.0.1 ([df29e7f](https://github.com/NullVoxPopuli/ember-data-resources/commit/df29e7fca3c18d30c956d373553e24c46622151c))
140
-
141
- ## [2.0.4](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.0.3...v2.0.4) (2021-11-20)
142
-
143
-
144
- ### Bug Fixes
145
-
146
- * **findRecord:** id falsey errors are now on the error property ([fc6e3f6](https://github.com/NullVoxPopuli/ember-data-resources/commit/fc6e3f67cc2978324056699f42d66cf67bd10fcf))
147
-
148
- ## [2.0.3](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.0.2...v2.0.3) (2021-11-15)
149
-
150
-
151
- ### Bug Fixes
152
-
153
- * **deps:** update dependency ember-auto-import to ^2.2.4 ([5fefeaf](https://github.com/NullVoxPopuli/ember-data-resources/commit/5fefeaf59f35e454ae1e2e5b21d1309201298f24))
154
-
155
- ## [2.0.2](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.0.1...v2.0.2) (2021-11-06)
156
-
157
-
158
- ### Bug Fixes
159
-
160
- * **deps:** update dependency ember-resources to ^4.0.1 ([646873f](https://github.com/NullVoxPopuli/ember-data-resources/commit/646873fb897c5a42f9ba6a5e6b1a3806a54f971b))
161
-
162
- ## [2.0.1](https://github.com/NullVoxPopuli/ember-data-resources/compare/v2.0.0...v2.0.1) (2021-11-01)
163
-
164
-
165
- ### Bug Fixes
166
-
167
- * **deps:** update dependency ember-auto-import to ^2.2.3 ([e374292](https://github.com/NullVoxPopuli/ember-data-resources/commit/e374292645d72ab3c6af1ba60d9e020ac3a4d9aa))
168
-
169
- # [2.0.0](https://github.com/NullVoxPopuli/ember-data-resources/compare/v1.1.4...v2.0.0) (2021-11-01)
170
-
171
-
172
- ### Bug Fixes
173
-
174
- * **deps:** update dependency ember-resources to v4 ([9abbece](https://github.com/NullVoxPopuli/ember-data-resources/commit/9abbecedac3cae0bb2800ed60acf2a65415166e5))
175
-
176
-
177
- ### Features
178
-
179
- * **readme:** declare ember-auto-import compatibility ([0cbc7a7](https://github.com/NullVoxPopuli/ember-data-resources/commit/0cbc7a73616e2439514d026f4807db9ae9d3f135))
180
-
181
-
182
- ### BREAKING CHANGES
183
-
184
- * **readme:** ember-auto-import compatibility was not declared.
185
-
186
- If any projects that previously used ember-auto-import@1,
187
- this addon will no longer work for those projects until those projects
188
- upgrade to either ember-auto-import@v2 or embroider.
189
-
190
- For projects that already were using ember-auto-import@v2, there is no
191
- breaking change. There is no behavioral difference in this addon's
192
- features.
193
-
194
- ## [1.1.4](https://github.com/NullVoxPopuli/ember-data-resources/compare/v1.1.3...v1.1.4) (2021-10-21)
195
-
196
-
197
- ### Bug Fixes
198
-
199
- * **deps:** update dependency ember-cli-htmlbars to v6 ([f5d64a7](https://github.com/NullVoxPopuli/ember-data-resources/commit/f5d64a7bed410a6dc6a4563ecc320c8456207c2a))
200
-
201
- ## [1.1.3](https://github.com/NullVoxPopuli/ember-data-resources/compare/v1.1.2...v1.1.3) (2021-10-20)
202
-
203
-
204
- ### Bug Fixes
205
-
206
- * **deps:** update dependency ember-resources to ^3.2.2 ([9f6a300](https://github.com/NullVoxPopuli/ember-data-resources/commit/9f6a3005005a5efcc66d98be5c33b5b422e0effd))
207
-
208
- ## [1.1.2](https://github.com/NullVoxPopuli/ember-data-resources/compare/v1.1.1...v1.1.2) (2021-09-06)
209
-
210
-
211
- ### Bug Fixes
212
-
213
- * **deps:** update dependency @ember/test-waiters to v3 ([2666dfc](https://github.com/NullVoxPopuli/ember-data-resources/commit/2666dfce187e02b664afdbfe7d6fb93be8b17721))
214
-
215
- ## [1.1.1](https://github.com/NullVoxPopuli/ember-data-resources/compare/v1.1.0...v1.1.1) (2021-09-06)
216
-
217
-
218
- ### Bug Fixes
219
-
220
- * **deps:** update dependency ember-resources to ^3.2.1 ([e16d3b9](https://github.com/NullVoxPopuli/ember-data-resources/commit/e16d3b92842dc64f29e080fe9da57c2a8b0f8ad8))
221
-
222
- # [1.1.0](https://github.com/NullVoxPopuli/ember-data-resources/compare/v1.0.1...v1.1.0) (2021-08-04)
223
-
224
-
225
- ### Bug Fixes
226
-
227
- * add tests, template-only support, use better type signature for JS-resource helpers ([ee4838d](https://github.com/NullVoxPopuli/ember-data-resources/commit/ee4838db65f3378549d4da2709590772db6d1495))
228
- * **internal:** add tests and fix allow generic types to be passed ([796abf6](https://github.com/NullVoxPopuli/ember-data-resources/commit/796abf66c6d35e64fe9e7f4029c6272e35b5b91b))
229
- * **request:** add waitForPromise to .retry ([81b3d6b](https://github.com/NullVoxPopuli/ember-data-resources/commit/81b3d6b764a5fa57a5890a2629d729ffd8aa0475))
230
-
231
-
232
- ### Features
233
-
234
- * **helpers:** add helpers for finding records ([b439460](https://github.com/NullVoxPopuli/ember-data-resources/commit/b439460905affc4b4cbbb64030de936269d9231b))
235
-
236
- ## [1.0.1](https://github.com/NullVoxPopuli/ember-data-resources/compare/v1.0.0...v1.0.1) (2021-08-03)
237
-
238
-
239
- ### Bug Fixes
240
-
241
- * **deps:** update dependency ember-resources to ^3.1.2 ([663ca70](https://github.com/NullVoxPopuli/ember-data-resources/commit/663ca70696106c82f249fe04869fdddd2b638aef))
242
-
243
- # 1.0.0 (2021-08-02)
244
-
245
-
246
- ### Features
247
-
248
- * initial implementation ([3503b30](https://github.com/NullVoxPopuli/ember-data-resources/commit/3503b30d912c49a815adffc7a0c3b569b234991c))
249
-
250
-
251
- ### BREAKING CHANGES
252
-
253
- * implement base features
254
- - findAll
255
- - findRecord
256
- - query
257
- - queryRecord
File without changes
@@ -1,15 +0,0 @@
1
- export class IdRequiredError extends TypeError {
2
- constructor(modelName: string) {
3
- super(
4
- `While trying to request a resource from ${modelName}, the ID was either null or undefined, and the ID is required for fetching resources`
5
- );
6
- }
7
- }
8
-
9
- export class IdTypeError extends TypeError {
10
- constructor(modelName: string, id: unknown) {
11
- super(
12
- `While trying to request a resource from ${modelName}, the ID was of invalid type ${typeof id}: only string and number are supported`
13
- );
14
- }
15
- }
@@ -1,37 +0,0 @@
1
- import { tracked } from '@glimmer/tracking';
2
- import { isDestroyed, isDestroying } from '@ember/destroyable';
3
- import { action } from '@ember/object';
4
-
5
- import { Request } from './request';
6
-
7
- import type ArrayProxy from '@ember/array/proxy';
8
- import type Store from '@ember-data/store';
9
-
10
- export type FindAllOptions = Parameters<Store['findAll']>[1];
11
-
12
- type PositionalArgs = [string];
13
- export interface NamedArgs {
14
- options: FindAllOptions;
15
- }
16
-
17
- export interface Args {
18
- named: NamedArgs;
19
- positional: PositionalArgs;
20
- }
21
-
22
- export class FindAll<Model, LocalArgs extends Args = Args> extends Request<LocalArgs> {
23
- @tracked private _records: ArrayProxy<Model> | undefined;
24
-
25
- @action
26
- async __WRAPPED_FUNCTION__([modelName]: PositionalArgs, { options }: NamedArgs) {
27
- let records = await this.store.findAll(modelName as never, options);
28
-
29
- if (isDestroyed(this) || isDestroying(this)) return;
30
-
31
- this._records = records;
32
- }
33
-
34
- get records(): ArrayProxy<Model> | undefined {
35
- return this._records;
36
- }
37
- }