@ember-data-mirror/request-utils 5.9.0-alpha.20 → 5.9.0-alpha.22

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.
@@ -0,0 +1 @@
1
+ export {}
@@ -1,189 +1,158 @@
1
- import { deprecate } from '@ember/debug';
2
- import { macroCondition, getGlobalConfig, dependencySatisfies, importSync } from '@embroider/macros';
3
- import { InflectionRuleDefaults } from '@warp-drive-mirror/utilities/-private';
4
- import { plural, singular, irregular, uncountable } from '@warp-drive-mirror/utilities/string';
1
+ import { t as string_exports } from "./string.js";
2
+ import { deprecate } from "@ember/debug";
3
+ import { dependencySatisfies, getGlobalConfig, importSync, macroCondition } from "@embroider/macros";
4
+ import { InflectionRuleDefaults } from "@warp-drive-mirror/utilities/-private";
5
5
 
6
+ //#region src/deprecation-support.ts
6
7
  if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.DEPRECATE_EMBER_INFLECTOR)) {
7
- if (macroCondition(dependencySatisfies('ember-inflector', '*'))) {
8
- const Inflector = importSync('ember-inflector').default;
9
- const {
10
- inflector
11
- } = Inflector;
12
-
13
- // eslint-disable-next-line @typescript-eslint/unbound-method
14
- const originalPlural = inflector.plural;
15
- // eslint-disable-next-line @typescript-eslint/unbound-method
16
- const originalSingular = inflector.singular;
17
- // eslint-disable-next-line @typescript-eslint/unbound-method
18
- const originalIrregular = inflector.irregular;
19
- // eslint-disable-next-line @typescript-eslint/unbound-method
20
- const originalUncountable = inflector.uncountable;
21
-
22
- // copy over any already registered rules
23
-
24
- // ember-inflector mutates the default rules arrays
25
- // with user supplied rules, so we keep track of what
26
- // is default via our own list.
27
- const defaultPluralKeys = new Set();
28
- const defaultSingularKeys = new Set();
29
- InflectionRuleDefaults.plurals.forEach(([regex]) => {
30
- defaultPluralKeys.add(regex.toString());
31
- });
32
- InflectionRuleDefaults.singular.forEach(([regex]) => {
33
- defaultSingularKeys.add(regex.toString());
34
- });
35
- const {
36
- defaultRules
37
- } = Inflector;
38
- const {
39
- rules
40
- } = inflector;
41
- const irregularMap = new Map();
42
- const toIgnore = new Set();
43
- const uncountableSet = new Set(defaultRules.uncountable);
44
- defaultRules.irregularPairs.forEach(([single, plur]) => {
45
- irregularMap.set(single.toLowerCase(), plur);
46
- toIgnore.add(plur.toLowerCase());
47
- });
48
- const irregularLookups = new Map();
49
- Object.keys(rules.irregular).forEach(single => {
50
- const plur = rules.irregular[single];
51
- irregularLookups.set(single, plur);
52
- });
53
-
54
- // load plurals
55
- rules.plurals.forEach(([regex, replacement]) => {
56
- if (defaultPluralKeys.has(regex.toString())) {
57
- return;
58
- }
59
- plural(regex, replacement);
60
- deprecate(`WarpDrive/EmberData no longer uses ember-inflector for pluralization.\nPlease \`import { plural } from '@ember-data-mirror/request-utils/string';\` instead to register a custom pluralization rule for use with EmberData.`, false, {
61
- id: 'warp-drive.ember-inflector',
62
- until: '6.0.0',
63
- for: 'warp-drive',
64
- since: {
65
- enabled: '5.3.4',
66
- available: '4.13'
67
- },
68
- url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
69
- });
70
- });
71
-
72
- // load singulars
73
- rules.singular.forEach(([regex, replacement]) => {
74
- if (defaultSingularKeys.has(regex.toString())) {
75
- return;
76
- }
77
- singular(regex, replacement);
78
- deprecate(`WarpDrive/EmberData no longer uses ember-inflector for singularization.\nPlease \`import { singular } from '@ember-data-mirror/request-utils/string';\` instead to register a custom singularization rule for use with EmberData.`, false, {
79
- id: 'warp-drive.ember-inflector',
80
- until: '6.0.0',
81
- for: 'warp-drive',
82
- since: {
83
- enabled: '5.3.4',
84
- available: '4.13'
85
- },
86
- url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
87
- });
88
- });
89
-
90
- // load irregulars
91
- Object.keys(rules.irregular).forEach(single => {
92
- const plur = rules.irregular[single];
93
- const defaultPlur = irregularMap.get(single);
94
- if (defaultPlur && defaultPlur === plur) {
95
- return;
96
- }
97
- if (toIgnore.has(single)) {
98
- return;
99
- }
100
- const actualSingle = irregularLookups.get(plur.toLowerCase()) || single;
101
- toIgnore.add(plur.toLowerCase());
102
- irregular(actualSingle, plur);
103
- deprecate(`WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\nPlease \`import { irregular } from '@ember-data-mirror/request-utils/string';\` instead to register a custom irregular rule for use with EmberData for '${actualSingle}' <=> '${plur}'.`, false, {
104
- id: 'warp-drive.ember-inflector',
105
- until: '6.0.0',
106
- for: 'warp-drive',
107
- since: {
108
- enabled: '5.3.4',
109
- available: '4.13'
110
- },
111
- url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
112
- });
113
- });
114
-
115
- // load uncountables
116
- Object.keys(rules.uncountable).forEach(word => {
117
- if (uncountableSet.has(word) || rules.uncountable[word] !== true) {
118
- return;
119
- }
120
- uncountable(word);
121
- deprecate(`WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\nPlease \`import { uncountable } from '@ember-data-mirror/request-utils/string';\` instead to register a custom uncountable rule for '${word}' for use with EmberData.`, false, {
122
- id: 'warp-drive.ember-inflector',
123
- until: '6.0.0',
124
- for: 'warp-drive',
125
- since: {
126
- enabled: '5.3.4',
127
- available: '4.13'
128
- },
129
- url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
130
- });
131
- });
132
- inflector.plural = function (...args) {
133
- plural(...args);
134
- deprecate(`WarpDrive/EmberData no longer uses ember-inflector for pluralization.\nPlease \`import { plural } from '@ember-data-mirror/request-utils/string';\` instead to register a custom pluralization rule for use with EmberData.`, false, {
135
- id: 'warp-drive.ember-inflector',
136
- until: '6.0.0',
137
- for: 'warp-drive',
138
- since: {
139
- enabled: '5.3.4',
140
- available: '4.13'
141
- },
142
- url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
143
- });
144
- return originalPlural.apply(inflector, args);
145
- };
146
- inflector.singular = function (...args) {
147
- singular(...args);
148
- deprecate(`WarpDrive/EmberData no longer uses ember-inflector for singularization.\nPlease \`import { singular } from '@ember-data-mirror/request-utils/string';\` instead to register a custom singularization rule for use with EmberData.`, false, {
149
- id: 'warp-drive.ember-inflector',
150
- until: '6.0.0',
151
- for: 'warp-drive',
152
- since: {
153
- enabled: '5.3.4',
154
- available: '4.13'
155
- },
156
- url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
157
- });
158
- return originalSingular.apply(inflector, args);
159
- };
160
- inflector.irregular = function (...args) {
161
- irregular(...args);
162
- deprecate(`WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\nPlease \`import { irregular } from '@ember-data-mirror/request-utils/string';\` instead to register a custom irregular rule for use with EmberData.`, false, {
163
- id: 'warp-drive.ember-inflector',
164
- until: '6.0.0',
165
- for: 'warp-drive',
166
- since: {
167
- enabled: '5.3.4',
168
- available: '4.13'
169
- },
170
- url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
171
- });
172
- return originalIrregular.apply(inflector, args);
173
- };
174
- inflector.uncountable = function (...args) {
175
- uncountable(...args);
176
- deprecate(`WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\nPlease \`import { uncountable } from '@ember-data-mirror/request-utils/string';\` instead to register a custom uncountable rule for use with EmberData.`, false, {
177
- id: 'warp-drive.ember-inflector',
178
- until: '6.0.0',
179
- for: 'warp-drive',
180
- since: {
181
- enabled: '5.3.4',
182
- available: '4.13'
183
- },
184
- url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
185
- });
186
- return originalUncountable.apply(inflector, args);
187
- };
188
- }
8
+ if (macroCondition(dependencySatisfies("ember-inflector", "*"))) {
9
+ const Inflector = importSync("ember-inflector").default;
10
+ const { inflector } = Inflector;
11
+ const originalPlural = inflector.plural;
12
+ const originalSingular = inflector.singular;
13
+ const originalIrregular = inflector.irregular;
14
+ const originalUncountable = inflector.uncountable;
15
+ const defaultPluralKeys = /* @__PURE__ */ new Set();
16
+ const defaultSingularKeys = /* @__PURE__ */ new Set();
17
+ InflectionRuleDefaults.plurals.forEach(([regex]) => {
18
+ defaultPluralKeys.add(regex.toString());
19
+ });
20
+ InflectionRuleDefaults.singular.forEach(([regex]) => {
21
+ defaultSingularKeys.add(regex.toString());
22
+ });
23
+ const { defaultRules } = Inflector;
24
+ const { rules } = inflector;
25
+ const irregularMap = /* @__PURE__ */ new Map();
26
+ const toIgnore = /* @__PURE__ */ new Set();
27
+ const uncountableSet = new Set(defaultRules.uncountable);
28
+ defaultRules.irregularPairs.forEach(([single, plur]) => {
29
+ irregularMap.set(single.toLowerCase(), plur);
30
+ toIgnore.add(plur.toLowerCase());
31
+ });
32
+ const irregularLookups = /* @__PURE__ */ new Map();
33
+ Object.keys(rules.irregular).forEach((single) => {
34
+ const plur = rules.irregular[single];
35
+ irregularLookups.set(single, plur);
36
+ });
37
+ rules.plurals.forEach(([regex, replacement]) => {
38
+ if (defaultPluralKeys.has(regex.toString())) return;
39
+ (0, string_exports.plural)(regex, replacement);
40
+ deprecate(`WarpDrive/EmberData no longer uses ember-inflector for pluralization.\nPlease \`import { plural } from '@ember-data-mirror/request-utils/string';\` instead to register a custom pluralization rule for use with EmberData.`, false, {
41
+ id: "warp-drive.ember-inflector",
42
+ until: "6.0.0",
43
+ for: "warp-drive",
44
+ since: {
45
+ enabled: "5.3.4",
46
+ available: "4.13"
47
+ },
48
+ url: "https://deprecations.emberjs.com/id/warp-drive.ember-inflector"
49
+ });
50
+ });
51
+ rules.singular.forEach(([regex, replacement]) => {
52
+ if (defaultSingularKeys.has(regex.toString())) return;
53
+ (0, string_exports.singular)(regex, replacement);
54
+ deprecate(`WarpDrive/EmberData no longer uses ember-inflector for singularization.\nPlease \`import { singular } from '@ember-data-mirror/request-utils/string';\` instead to register a custom singularization rule for use with EmberData.`, false, {
55
+ id: "warp-drive.ember-inflector",
56
+ until: "6.0.0",
57
+ for: "warp-drive",
58
+ since: {
59
+ enabled: "5.3.4",
60
+ available: "4.13"
61
+ },
62
+ url: "https://deprecations.emberjs.com/id/warp-drive.ember-inflector"
63
+ });
64
+ });
65
+ Object.keys(rules.irregular).forEach((single) => {
66
+ const plur = rules.irregular[single];
67
+ const defaultPlur = irregularMap.get(single);
68
+ if (defaultPlur && defaultPlur === plur) return;
69
+ if (toIgnore.has(single)) return;
70
+ const actualSingle = irregularLookups.get(plur.toLowerCase()) || single;
71
+ toIgnore.add(plur.toLowerCase());
72
+ (0, string_exports.irregular)(actualSingle, plur);
73
+ deprecate(`WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\nPlease \`import { irregular } from '@ember-data-mirror/request-utils/string';\` instead to register a custom irregular rule for use with EmberData for '${actualSingle}' <=> '${plur}'.`, false, {
74
+ id: "warp-drive.ember-inflector",
75
+ until: "6.0.0",
76
+ for: "warp-drive",
77
+ since: {
78
+ enabled: "5.3.4",
79
+ available: "4.13"
80
+ },
81
+ url: "https://deprecations.emberjs.com/id/warp-drive.ember-inflector"
82
+ });
83
+ });
84
+ Object.keys(rules.uncountable).forEach((word) => {
85
+ if (uncountableSet.has(word) || rules.uncountable[word] !== true) return;
86
+ (0, string_exports.uncountable)(word);
87
+ deprecate(`WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\nPlease \`import { uncountable } from '@ember-data-mirror/request-utils/string';\` instead to register a custom uncountable rule for '${word}' for use with EmberData.`, false, {
88
+ id: "warp-drive.ember-inflector",
89
+ until: "6.0.0",
90
+ for: "warp-drive",
91
+ since: {
92
+ enabled: "5.3.4",
93
+ available: "4.13"
94
+ },
95
+ url: "https://deprecations.emberjs.com/id/warp-drive.ember-inflector"
96
+ });
97
+ });
98
+ inflector.plural = function(...args) {
99
+ (0, string_exports.plural)(...args);
100
+ deprecate(`WarpDrive/EmberData no longer uses ember-inflector for pluralization.\nPlease \`import { plural } from '@ember-data-mirror/request-utils/string';\` instead to register a custom pluralization rule for use with EmberData.`, false, {
101
+ id: "warp-drive.ember-inflector",
102
+ until: "6.0.0",
103
+ for: "warp-drive",
104
+ since: {
105
+ enabled: "5.3.4",
106
+ available: "4.13"
107
+ },
108
+ url: "https://deprecations.emberjs.com/id/warp-drive.ember-inflector"
109
+ });
110
+ return originalPlural.apply(inflector, args);
111
+ };
112
+ inflector.singular = function(...args) {
113
+ (0, string_exports.singular)(...args);
114
+ deprecate(`WarpDrive/EmberData no longer uses ember-inflector for singularization.\nPlease \`import { singular } from '@ember-data-mirror/request-utils/string';\` instead to register a custom singularization rule for use with EmberData.`, false, {
115
+ id: "warp-drive.ember-inflector",
116
+ until: "6.0.0",
117
+ for: "warp-drive",
118
+ since: {
119
+ enabled: "5.3.4",
120
+ available: "4.13"
121
+ },
122
+ url: "https://deprecations.emberjs.com/id/warp-drive.ember-inflector"
123
+ });
124
+ return originalSingular.apply(inflector, args);
125
+ };
126
+ inflector.irregular = function(...args) {
127
+ (0, string_exports.irregular)(...args);
128
+ deprecate(`WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\nPlease \`import { irregular } from '@ember-data-mirror/request-utils/string';\` instead to register a custom irregular rule for use with EmberData.`, false, {
129
+ id: "warp-drive.ember-inflector",
130
+ until: "6.0.0",
131
+ for: "warp-drive",
132
+ since: {
133
+ enabled: "5.3.4",
134
+ available: "4.13"
135
+ },
136
+ url: "https://deprecations.emberjs.com/id/warp-drive.ember-inflector"
137
+ });
138
+ return originalIrregular.apply(inflector, args);
139
+ };
140
+ inflector.uncountable = function(...args) {
141
+ (0, string_exports.uncountable)(...args);
142
+ deprecate(`WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\nPlease \`import { uncountable } from '@ember-data-mirror/request-utils/string';\` instead to register a custom uncountable rule for use with EmberData.`, false, {
143
+ id: "warp-drive.ember-inflector",
144
+ until: "6.0.0",
145
+ for: "warp-drive",
146
+ since: {
147
+ enabled: "5.3.4",
148
+ available: "4.13"
149
+ },
150
+ url: "https://deprecations.emberjs.com/id/warp-drive.ember-inflector"
151
+ });
152
+ return originalUncountable.apply(inflector, args);
153
+ };
154
+ }
189
155
  }
156
+
157
+ //#endregion
158
+ //# sourceMappingURL=deprecation-support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecation-support.js","names":["deprecate","dependencySatisfies","importSync","macroCondition","getGlobalConfig","InflectionRuleDefaults","irregular","plural","singular","uncountable","WarpDrive","deprecations","DEPRECATE_EMBER_INFLECTOR","Inflector","default","inflector","originalPlural","originalSingular","originalIrregular","originalUncountable","defaultPluralKeys","Set","defaultSingularKeys","plurals","forEach","regex","add","toString","defaultRules","rules","irregularMap","Map","toIgnore","uncountableSet","irregularPairs","single","plur","set","toLowerCase","irregularLookups","Object","keys","replacement","has","id","until","for","since","enabled","available","url","defaultPlur","get","actualSingle","word","args","apply"],"sources":["../src/deprecation-support.ts"],"sourcesContent":["import { deprecate } from '@ember/debug';\n\nimport { dependencySatisfies, importSync, macroCondition } from '@embroider/macros';\n\nimport { DEPRECATE_EMBER_INFLECTOR } from '@warp-drive-mirror/core/build-config/deprecations';\nimport { InflectionRuleDefaults } from '@warp-drive-mirror/utilities/-private';\n\nimport { irregular, plural, singular, uncountable } from './string.ts';\n\nif (DEPRECATE_EMBER_INFLECTOR) {\n if (macroCondition(dependencySatisfies('ember-inflector', '*'))) {\n const Inflector = (importSync('ember-inflector') as { default: typeof import('ember-inflector').default }).default;\n const { inflector } = Inflector;\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalPlural = inflector.plural;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalSingular = inflector.singular;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalIrregular = inflector.irregular;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalUncountable = inflector.uncountable;\n\n // copy over any already registered rules\n type DefaultRules = {\n plurals: [RegExp, string][];\n singular: [RegExp, string][];\n irregularPairs: [string, string][];\n uncountable: string[];\n };\n type InternalRules = {\n plurals: [RegExp, string][];\n singular: [RegExp, string][];\n\n // [str1, str2] =>\n // { [str1.lower]: str2 }\n // { [str2.lower]: str2 }\n irregular: Record<string, string>;\n\n // [str1, str2] =>\n // { [str2.lower]: str1 }\n // { [str1.lower]: str1 }\n irregularInverse: Record<string, string>;\n\n // lower cased string\n uncountable: Record<string, boolean>;\n };\n\n // ember-inflector mutates the default rules arrays\n // with user supplied rules, so we keep track of what\n // is default via our own list.\n const defaultPluralKeys = new Set<string>();\n const defaultSingularKeys = new Set<string>();\n InflectionRuleDefaults.plurals.forEach(([regex]) => {\n defaultPluralKeys.add(regex.toString());\n });\n InflectionRuleDefaults.singular.forEach(([regex]) => {\n defaultSingularKeys.add(regex.toString());\n });\n\n const { defaultRules } = Inflector as unknown as { defaultRules: DefaultRules };\n const { rules } = inflector as unknown as { rules: InternalRules };\n\n const irregularMap = new Map<string, string>();\n const toIgnore = new Set<string>();\n const uncountableSet = new Set(defaultRules.uncountable);\n\n defaultRules.irregularPairs.forEach(([single, plur]) => {\n irregularMap.set(single.toLowerCase(), plur);\n toIgnore.add(plur.toLowerCase());\n });\n const irregularLookups = new Map<string, string>();\n Object.keys(rules.irregular).forEach((single) => {\n const plur = rules.irregular[single];\n irregularLookups.set(single, plur);\n });\n\n // load plurals\n rules.plurals.forEach(([regex, replacement]) => {\n if (defaultPluralKeys.has(regex.toString())) {\n return;\n }\n\n plural(regex, replacement);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for pluralization.\\nPlease \\`import { plural } from '@ember-data-mirror/request-utils/string';\\` instead to register a custom pluralization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '4.13',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n });\n\n // load singulars\n rules.singular.forEach(([regex, replacement]) => {\n if (defaultSingularKeys.has(regex.toString())) {\n return;\n }\n\n singular(regex, replacement);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for singularization.\\nPlease \\`import { singular } from '@ember-data-mirror/request-utils/string';\\` instead to register a custom singularization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '4.13',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n });\n\n // load irregulars\n Object.keys(rules.irregular).forEach((single) => {\n const plur = rules.irregular[single];\n const defaultPlur = irregularMap.get(single);\n if (defaultPlur && defaultPlur === plur) {\n return;\n }\n\n if (toIgnore.has(single)) {\n return;\n }\n\n const actualSingle = irregularLookups.get(plur.toLowerCase()) || single;\n toIgnore.add(plur.toLowerCase());\n irregular(actualSingle, plur);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\\nPlease \\`import { irregular } from '@ember-data-mirror/request-utils/string';\\` instead to register a custom irregular rule for use with EmberData for '${actualSingle}' <=> '${plur}'.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '4.13',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n });\n\n // load uncountables\n Object.keys(rules.uncountable).forEach((word) => {\n if (uncountableSet.has(word) || rules.uncountable[word] !== true) {\n return;\n }\n\n uncountable(word);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\\nPlease \\`import { uncountable } from '@ember-data-mirror/request-utils/string';\\` instead to register a custom uncountable rule for '${word}' for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '4.13',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n });\n\n inflector.plural = function (...args: Parameters<typeof originalPlural>) {\n plural(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for pluralization.\\nPlease \\`import { plural } from '@ember-data-mirror/request-utils/string';\\` instead to register a custom pluralization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '4.13',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalPlural.apply(inflector, args);\n };\n\n inflector.singular = function (...args: Parameters<typeof originalSingular>) {\n singular(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for singularization.\\nPlease \\`import { singular } from '@ember-data-mirror/request-utils/string';\\` instead to register a custom singularization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '4.13',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalSingular.apply(inflector, args);\n };\n\n inflector.irregular = function (...args: Parameters<typeof originalIrregular>) {\n irregular(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\\nPlease \\`import { irregular } from '@ember-data-mirror/request-utils/string';\\` instead to register a custom irregular rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '4.13',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalIrregular.apply(inflector, args);\n };\n\n inflector.uncountable = function (...args: Parameters<typeof originalUncountable>) {\n uncountable(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\\nPlease \\`import { uncountable } from '@ember-data-mirror/request-utils/string';\\` instead to register a custom uncountable rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '4.13',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalUncountable.apply(inflector, args);\n };\n }\n}\n"],"mappings":";;;;;;AASA,IAAAG,eAAAC,gBAAA,CAAA,CAAAM,UAAAC,aAAAC,yBAAA,GACE;KAAIT,eAAeF,oBAAoB,mBAAmB,GAAG,CAAC,GAAG;EAC/D,MAAMY,YAAaX,WAAW,iBAAiB,CAAC,CAA2DY;EAC3G,MAAM,EAAEC,cAAcF;EAGtB,MAAMG,iBAAiBD,UAAUR;EAEjC,MAAMU,mBAAmBF,UAAUP;EAEnC,MAAMU,oBAAoBH,UAAUT;EAEpC,MAAMa,sBAAsBJ,UAAUN;EA8BtC,MAAMW,oCAAoB,IAAIC,IAAY;EAC1C,MAAMC,sCAAsB,IAAID,IAAY;EAC5ChB,uBAAuBkB,QAAQC,SAAS,CAACC,WAAW;GAClDL,kBAAkBM,IAAID,MAAME,SAAS,CAAC;EACxC,CAAC;EACDtB,uBAAuBG,SAASgB,SAAS,CAACC,WAAW;GACnDH,oBAAoBI,IAAID,MAAME,SAAS,CAAC;EAC1C,CAAC;EAED,MAAM,EAAEC,iBAAiBf;EACzB,MAAM,EAAEgB,UAAUd;EAElB,MAAMe,+BAAe,IAAIC,IAAoB;EAC7C,MAAMC,2BAAW,IAAIX,IAAY;EACjC,MAAMY,iBAAiB,IAAIZ,IAAIO,aAAanB,WAAW;EAEvDmB,aAAaM,eAAeV,SAAS,CAACW,QAAQC,UAAU;GACtDN,aAAaO,IAAIF,OAAOG,YAAY,GAAGF,IAAI;GAC3CJ,SAASN,IAAIU,KAAKE,YAAY,CAAC;EACjC,CAAC;EACD,MAAMC,mCAAmB,IAAIR,IAAoB;EACjDS,OAAOC,KAAKZ,MAAMvB,SAAS,CAAC,CAACkB,SAASW,WAAW;GAC/C,MAAMC,OAAOP,MAAMvB,UAAU6B;GAC7BI,iBAAiBF,IAAIF,QAAQC,IAAI;EACnC,CAAC;EAGDP,MAAMN,QAAQC,SAAS,CAACC,OAAOiB,iBAAiB;GAC9C,IAAItB,kBAAkBuB,IAAIlB,MAAME,SAAS,CAAC,GACxC;GAGFpB,2BAAOkB,OAAOiB,WAAW;GAEzB1C,UACE,wNACA,OACA;IACE4C,IAAI;IACJC,OAAO;IACPC,KAAK;IACLC,OAAO;KACLC,SAAS;KACTC,WAAW;IACb;IACAC,KAAK;GACP,CACF;EACF,CAAC;EAGDrB,MAAMrB,SAASgB,SAAS,CAACC,OAAOiB,iBAAiB;GAC/C,IAAIpB,oBAAoBqB,IAAIlB,MAAME,SAAS,CAAC,GAC1C;GAGFnB,6BAASiB,OAAOiB,WAAW;GAE3B1C,UACE,8NACA,OACA;IACE4C,IAAI;IACJC,OAAO;IACPC,KAAK;IACLC,OAAO;KACLC,SAAS;KACTC,WAAW;IACb;IACAC,KAAK;GACP,CACF;EACF,CAAC;EAGDV,OAAOC,KAAKZ,MAAMvB,SAAS,CAAC,CAACkB,SAASW,WAAW;GAC/C,MAAMC,OAAOP,MAAMvB,UAAU6B;GAC7B,MAAMgB,cAAcrB,aAAasB,IAAIjB,MAAM;GAC3C,IAAIgB,eAAeA,gBAAgBf,MACjC;GAGF,IAAIJ,SAASW,IAAIR,MAAM,GACrB;GAGF,MAAMkB,eAAed,iBAAiBa,IAAIhB,KAAKE,YAAY,CAAC,KAAKH;GACjEH,SAASN,IAAIU,KAAKE,YAAY,CAAC;GAC/BhC,8BAAU+C,cAAcjB,IAAI;GAE5BpC,UACE,6NAA6NqD,aAAY,SAAUjB,KAAI,KACvP,OACA;IACEQ,IAAI;IACJC,OAAO;IACPC,KAAK;IACLC,OAAO;KACLC,SAAS;KACTC,WAAW;IACb;IACAC,KAAK;GACP,CACF;EACF,CAAC;EAGDV,OAAOC,KAAKZ,MAAMpB,WAAW,CAAC,CAACe,SAAS8B,SAAS;GAC/C,IAAIrB,eAAeU,IAAIW,IAAI,KAAKzB,MAAMpB,YAAY6C,UAAU,MAC1D;GAGF7C,gCAAY6C,IAAI;GAEhBtD,UACE,4MAA4MsD,KAAI,4BAChN,OACA;IACEV,IAAI;IACJC,OAAO;IACPC,KAAK;IACLC,OAAO;KACLC,SAAS;KACTC,WAAW;IACb;IACAC,KAAK;GACP,CACF;EACF,CAAC;EAEDnC,UAAUR,SAAS,SAAU,GAAGgD,MAAyC;GACvEhD,2BAAO,GAAGgD,IAAI;GAEdvD,UACE,wNACA,OACA;IACE4C,IAAI;IACJC,OAAO;IACPC,KAAK;IACLC,OAAO;KACLC,SAAS;KACTC,WAAW;IACb;IACAC,KAAK;GACP,CACF;GAEA,OAAOlC,eAAewC,MAAMzC,WAAWwC,IAAI;EAC7C;EAEAxC,UAAUP,WAAW,SAAU,GAAG+C,MAA2C;GAC3E/C,6BAAS,GAAG+C,IAAI;GAEhBvD,UACE,8NACA,OACA;IACE4C,IAAI;IACJC,OAAO;IACPC,KAAK;IACLC,OAAO;KACLC,SAAS;KACTC,WAAW;IACb;IACAC,KAAK;GACP,CACF;GAEA,OAAOjC,iBAAiBuC,MAAMzC,WAAWwC,IAAI;EAC/C;EAEAxC,UAAUT,YAAY,SAAU,GAAGiD,MAA4C;GAC7EjD,8BAAU,GAAGiD,IAAI;GAEjBvD,UACE,yNACA,OACA;IACE4C,IAAI;IACJC,OAAO;IACPC,KAAK;IACLC,OAAO;KACLC,SAAS;KACTC,WAAW;IACb;IACAC,KAAK;GACP,CACF;GAEA,OAAOhC,kBAAkBsC,MAAMzC,WAAWwC,IAAI;EAChD;EAEAxC,UAAUN,cAAc,SAAU,GAAG8C,MAA8C;GACjF9C,gCAAY,GAAG8C,IAAI;GAEnBvD,UACE,+NACA,OACA;IACE4C,IAAI;IACJC,OAAO;IACPC,KAAK;IACLC,OAAO;KACLC,SAAS;KACTC,WAAW;IACb;IACAC,KAAK;GACP,CACF;GAEA,OAAO/B,oBAAoBqC,MAAMzC,WAAWwC,IAAI;EAClD;CACF"}
@@ -0,0 +1 @@
1
+ export * from "@warp-drive-mirror/utilities/handlers";
package/dist/handlers.js CHANGED
@@ -1 +1 @@
1
- export * from '@warp-drive-mirror/utilities/handlers';
1
+ export * from "@warp-drive-mirror/utilities/handlers"
@@ -0,0 +1,9 @@
1
+ import { CacheControlValue, DefaultCachePolicy, PolicyConfig, parseCacheControl } from "@warp-drive-mirror/core/store";
2
+ export * from "@warp-drive-mirror/utilities";
3
+ //#region src/index.d.ts
4
+ declare class LifetimesService extends DefaultCachePolicy {
5
+ constructor(config: PolicyConfig);
6
+ }
7
+ //#endregion
8
+ export { type CacheControlValue, DefaultCachePolicy as CachePolicy, LifetimesService, type PolicyConfig, parseCacheControl };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAoDa,yBAAyB;EACpC,YAAY,QAAQ"}
package/dist/index.js CHANGED
@@ -1,60 +1,62 @@
1
- import { deprecate } from '@ember/debug';
2
- import { DefaultCachePolicy } from '@warp-drive-mirror/core/store';
3
- export { DefaultCachePolicy as CachePolicy, parseCacheControl } from '@warp-drive-mirror/core/store';
4
- export * from '@warp-drive-mirror/utilities';
1
+ import { deprecate } from "@ember/debug";
2
+ import { DefaultCachePolicy, parseCacheControl } from "@warp-drive-mirror/core/store";
5
3
 
6
- /**
7
- * Simple utility function to assist in url building,
8
- * query params, and other common request operations.
9
- *
10
- * These primitives may be used directly or composed
11
- * by request builders to provide a consistent interface
12
- * for building requests.
13
- *
14
- * For instance:
15
- *
16
- * ```ts
17
- * import { buildBaseURL, buildQueryParams } from '@ember-data-mirror/request-utils';
18
- *
19
- * const baseURL = buildBaseURL({
20
- * host: 'https://api.example.com',
21
- * namespace: 'api/v1',
22
- * resourcePath: 'emberDevelopers',
23
- * op: 'query',
24
- * identifier: { type: 'ember-developer' }
25
- * });
26
- * const url = `${baseURL}?${buildQueryParams({ name: 'Chris', include:['pets'] })}`;
27
- * // => 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris'
28
- * ```
29
- *
30
- * This is useful, but not as useful as the REST request builder for query which is sugar
31
- * over this (and more!):
32
- *
33
- * ```ts
34
- * import { query } from '@ember-data-mirror/rest/request';
35
- *
36
- * const options = query('ember-developer', { name: 'Chris', include:['pets'] });
37
- * // => { url: 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris' }
38
- * // Note: options will also include other request options like headers, method, etc.
39
- * ```
40
- *
41
- * @module
42
- * @public
43
- */
4
+ export * from "@warp-drive-mirror/utilities"
44
5
 
45
- class LifetimesService extends DefaultCachePolicy {
46
- constructor(config) {
47
- deprecate(`\`import { LifetimesService } from '@ember-data-mirror/request-utils';\` is deprecated, please use \`import { CachePolicy } from '@ember-data-mirror/request-utils';\` instead.`, false, {
48
- id: 'ember-data-mirror:deprecate-lifetimes-service-import',
49
- since: {
50
- enabled: '5.4',
51
- available: '4.13'
52
- },
53
- for: 'ember-data-mirror',
54
- until: '6.0'
55
- });
56
- super(config);
57
- }
58
- }
6
+ //#region src/index.ts
7
+ /**
8
+ * Simple utility function to assist in url building,
9
+ * query params, and other common request operations.
10
+ *
11
+ * These primitives may be used directly or composed
12
+ * by request builders to provide a consistent interface
13
+ * for building requests.
14
+ *
15
+ * For instance:
16
+ *
17
+ * ```ts
18
+ * import { buildBaseURL, buildQueryParams } from '@ember-data-mirror/request-utils';
19
+ *
20
+ * const baseURL = buildBaseURL({
21
+ * host: 'https://api.example.com',
22
+ * namespace: 'api/v1',
23
+ * resourcePath: 'emberDevelopers',
24
+ * op: 'query',
25
+ * identifier: { type: 'ember-developer' }
26
+ * });
27
+ * const url = `${baseURL}?${buildQueryParams({ name: 'Chris', include:['pets'] })}`;
28
+ * // => 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris'
29
+ * ```
30
+ *
31
+ * This is useful, but not as useful as the REST request builder for query which is sugar
32
+ * over this (and more!):
33
+ *
34
+ * ```ts
35
+ * import { query } from '@ember-data-mirror/rest/request';
36
+ *
37
+ * const options = query('ember-developer', { name: 'Chris', include:['pets'] });
38
+ * // => { url: 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris' }
39
+ * // Note: options will also include other request options like headers, method, etc.
40
+ * ```
41
+ *
42
+ * @module
43
+ * @public
44
+ */
45
+ var LifetimesService = class extends DefaultCachePolicy {
46
+ constructor(config) {
47
+ deprecate(`\`import { LifetimesService } from '@ember-data-mirror/request-utils';\` is deprecated, please use \`import { CachePolicy } from '@ember-data-mirror/request-utils';\` instead.`, false, {
48
+ id: "ember-data-mirror:deprecate-lifetimes-service-import",
49
+ since: {
50
+ enabled: "5.4",
51
+ available: "4.13"
52
+ },
53
+ for: "ember-data-mirror",
54
+ until: "6.0"
55
+ });
56
+ super(config);
57
+ }
58
+ };
59
59
 
60
- export { LifetimesService };
60
+ //#endregion
61
+ export { DefaultCachePolicy as CachePolicy, LifetimesService, parseCacheControl };
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["deprecate","DefaultCachePolicy","parseCacheControl","CachePolicy","LifetimesService","constructor","config","id","since","enabled","available","for","until"],"sources":["../src/index.ts"],"sourcesContent":["/**\n * Simple utility function to assist in url building,\n * query params, and other common request operations.\n *\n * These primitives may be used directly or composed\n * by request builders to provide a consistent interface\n * for building requests.\n *\n * For instance:\n *\n * ```ts\n * import { buildBaseURL, buildQueryParams } from '@ember-data-mirror/request-utils';\n *\n * const baseURL = buildBaseURL({\n * host: 'https://api.example.com',\n * namespace: 'api/v1',\n * resourcePath: 'emberDevelopers',\n * op: 'query',\n * identifier: { type: 'ember-developer' }\n * });\n * const url = `${baseURL}?${buildQueryParams({ name: 'Chris', include:['pets'] })}`;\n * // => 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris'\n * ```\n *\n * This is useful, but not as useful as the REST request builder for query which is sugar\n * over this (and more!):\n *\n * ```ts\n * import { query } from '@ember-data-mirror/rest/request';\n *\n * const options = query('ember-developer', { name: 'Chris', include:['pets'] });\n * // => { url: 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris' }\n * // Note: options will also include other request options like headers, method, etc.\n * ```\n *\n * @module\n * @public\n */\n\nimport { deprecate } from '@ember/debug';\n\nimport {\n type CacheControlValue,\n DefaultCachePolicy,\n parseCacheControl,\n type PolicyConfig,\n} from '@warp-drive-mirror/core/store';\n\nexport * from '@warp-drive-mirror/utilities';\n\nexport { DefaultCachePolicy as CachePolicy, type PolicyConfig, type CacheControlValue, parseCacheControl };\n\nexport class LifetimesService extends DefaultCachePolicy {\n constructor(config: PolicyConfig) {\n deprecate(\n `\\`import { LifetimesService } from '@ember-data-mirror/request-utils';\\` is deprecated, please use \\`import { CachePolicy } from '@ember-data-mirror/request-utils';\\` instead.`,\n false,\n {\n id: 'ember-data-mirror:deprecate-lifetimes-service-import',\n since: {\n enabled: '5.4',\n available: '4.13',\n },\n for: 'ember-data-mirror',\n until: '6.0',\n }\n );\n super(config);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,IAAaI,mBAAb,cAAsCH,mBAAmB;CACvDI,YAAYC,QAAsB;EAChCN,UACE,qKACA,OACA;GACEO,IAAI;GACJC,OAAO;IACLC,SAAS;IACTC,WAAW;GACb;GACAC,KAAK;GACLC,OAAO;EACT,CACF;EACA,MAAMN,MAAM;CACd;AACF"}
@@ -0,0 +1 @@
1
+ export * from "@warp-drive-mirror/utilities/string";
package/dist/string.js CHANGED
@@ -1 +1,45 @@
1
- export * from '@warp-drive-mirror/utilities/string';
1
+ export * from "@warp-drive-mirror/utilities/string"
2
+
3
+ //#region \0rolldown/runtime.js
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __exportAll = (all, no_symbols) => {
9
+ let target = {};
10
+ for (var name in all) {
11
+ __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ }
16
+ if (!no_symbols) {
17
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
18
+ }
19
+ return target;
20
+ };
21
+ var __copyProps = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") {
23
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
24
+ key = keys[i];
25
+ if (!__hasOwnProp.call(to, key) && key !== except) {
26
+ __defProp(to, key, {
27
+ get: ((k) => from[k]).bind(null, key),
28
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29
+ });
30
+ }
31
+ }
32
+ }
33
+ return to;
34
+ };
35
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
36
+
37
+ //#endregion
38
+ //#region src/string.ts
39
+ var string_exports = /* @__PURE__ */ __exportAll({});
40
+ import * as import__warp_drive_utilities_string from "@warp-drive-mirror/utilities/string";
41
+ __reExport(string_exports, import__warp_drive_utilities_string);
42
+
43
+ //#endregion
44
+ export { string_exports as t };
45
+ //# sourceMappingURL=string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.js","names":[],"sources":["../src/string.ts"],"sourcesContent":["/**\n * String utilties for transforming and inflecting strings useful for\n * when the format provided by the server is not the format you want to use\n * in your application.\n *\n * Each transformation function stores its results in an LRUCache to avoid\n * recomputing the same value multiple times. The cache size can be set\n * using the `setMaxLRUCacheSize` function. The default size is 10,000.\n *\n * @module\n */\nexport * from '@warp-drive-mirror/utilities/string';\n"],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-data-mirror/request-utils",
3
3
  "description": "(Legacy) Request Building Utilities for use with EmberData",
4
- "version": "5.9.0-alpha.20",
4
+ "version": "5.9.0-alpha.22",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "author": "Chris Thoburn <runspired@users.noreply.github.com>",
@@ -19,12 +19,12 @@
19
19
  "extends": "../../../../../../package.json"
20
20
  },
21
21
  "files": [
22
- "unstable-preview-types",
23
22
  "addon-main.cjs",
24
23
  "dist",
25
24
  "README.md",
26
25
  "LICENSE.md",
27
- "logos"
26
+ "logos",
27
+ "unstable-preview-types"
28
28
  ],
29
29
  "exports": {
30
30
  ".": {
@@ -52,19 +52,19 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@embroider/macros": "^1.20.6",
55
- "@warp-drive-mirror/core": "5.9.0-alpha.20",
56
- "@warp-drive-mirror/utilities": "5.9.0-alpha.20"
55
+ "@warp-drive-mirror/core": "5.9.0-alpha.22",
56
+ "@warp-drive-mirror/utilities": "5.9.0-alpha.22"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@babel/core": "^7.28.3",
60
60
  "@babel/plugin-transform-typescript": "^7.28.0",
61
61
  "@babel/preset-env": "^7.28.3",
62
62
  "@babel/preset-typescript": "^7.27.1",
63
- "@warp-drive/internal-config": "5.9.0-alpha.20",
63
+ "@warp-drive/internal-config": "5.9.0-alpha.22",
64
64
  "ember-inflector": "6.0.0",
65
65
  "ember-source": "~6.12.0",
66
- "typescript": "^5.9.3",
67
- "vite": "^7.3.1"
66
+ "tsdown": "^0.22.14",
67
+ "typescript": "^5.9.3"
68
68
  },
69
69
  "ember": {
70
70
  "edition": "octane"
@@ -78,8 +78,9 @@
78
78
  },
79
79
  "scripts": {
80
80
  "lint": "eslint . --quiet --cache --cache-strategy=content",
81
- "build:pkg": "vite build",
81
+ "check:types": "tsc --noEmit",
82
+ "build:pkg": "node node_modules/tsdown/dist/run.mjs",
82
83
  "sync": "echo \"syncing\"",
83
- "start": "vite"
84
+ "start": "node node_modules/tsdown/dist/run.mjs --watch"
84
85
  }
85
86
  }
@@ -1,4 +1,3 @@
1
1
  declare module '@ember-data-mirror/request-utils/deprecation-support' {
2
- export {};
3
-
2
+ export {}
4
3
  }
@@ -1,10 +1,3 @@
1
1
  declare module '@ember-data-mirror/request-utils/handlers' {
2
- /**
3
- * A selection of pre-built request handlers for handling common
4
- * request scenarios.
5
- *
6
- * @module
7
- */
8
2
  export * from "@warp-drive-mirror/utilities/handlers";
9
-
10
3
  }
@@ -1,13 +1,14 @@
1
- /// <reference path="./string.d.ts" />
2
- /// <reference path="./deprecation-support.d.ts" />
3
1
  /// <reference path="./handlers.d.ts" />
2
+ /// <reference path="./deprecation-support.d.ts" />
3
+ /// <reference path="./string.d.ts" />
4
4
  declare module '@ember-data-mirror/request-utils' {
5
- import { type CacheControlValue, DefaultCachePolicy, parseCacheControl, type PolicyConfig } from "@warp-drive-mirror/core/store";
5
+ import { CacheControlValue, DefaultCachePolicy, PolicyConfig, parseCacheControl } from "@warp-drive-mirror/core/store";
6
6
  export * from "@warp-drive-mirror/utilities";
7
- export type * from "@warp-drive-mirror/utilities";
8
- export { DefaultCachePolicy as CachePolicy, type PolicyConfig, type CacheControlValue, parseCacheControl };
9
- export class LifetimesService extends DefaultCachePolicy {
10
- constructor(config: PolicyConfig);
7
+ //#region src/index.d.ts
8
+ class LifetimesService extends DefaultCachePolicy {
9
+ constructor(config: PolicyConfig);
11
10
  }
12
-
13
- }
11
+ //#endregion
12
+ export { type CacheControlValue, DefaultCachePolicy as CachePolicy, LifetimesService, type PolicyConfig, parseCacheControl };
13
+ }
14
+ //# sourceMappingURL=index.d.ts.map
@@ -1,15 +1,3 @@
1
1
  declare module '@ember-data-mirror/request-utils/string' {
2
- /**
3
- * String utilties for transforming and inflecting strings useful for
4
- * when the format provided by the server is not the format you want to use
5
- * in your application.
6
- *
7
- * Each transformation function stores its results in an LRUCache to avoid
8
- * recomputing the same value multiple times. The cache size can be set
9
- * using the `setMaxLRUCacheSize` function. The default size is 10,000.
10
- *
11
- * @module
12
- */
13
2
  export * from "@warp-drive-mirror/utilities/string";
14
-
15
3
  }