@ember-data-mirror/request-utils 5.6.0-alpha.15 → 5.6.0-alpha.17

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.
@@ -187,4 +187,3 @@ if (macroCondition(getGlobalConfig().WarpDriveMirror.deprecations.DEPRECATE_EMBE
187
187
  };
188
188
  }
189
189
  }
190
- //# sourceMappingURL=deprecation-support.js.map
package/dist/handlers.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from '@warp-drive-mirror/utilities/handlers';
2
- //# sourceMappingURL=handlers.js.map
package/dist/index.js CHANGED
@@ -58,4 +58,3 @@ class LifetimesService extends DefaultCachePolicy {
58
58
  }
59
59
 
60
60
  export { LifetimesService };
61
- //# sourceMappingURL=index.js.map
package/dist/string.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from '@warp-drive-mirror/utilities/string';
2
- //# sourceMappingURL=string.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-data-mirror/request-utils",
3
3
  "description": "Request Building Utilities for use with EmberData",
4
- "version": "5.6.0-alpha.15",
4
+ "version": "5.6.0-alpha.17",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "author": "Chris Thoburn <runspired@users.noreply.github.com>",
@@ -52,19 +52,19 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@embroider/macros": "^1.16.12",
55
- "@warp-drive-mirror/core": "5.6.0-alpha.15",
56
- "@warp-drive-mirror/utilities": "5.6.0-alpha.15"
55
+ "@warp-drive-mirror/core": "5.6.0-alpha.17",
56
+ "@warp-drive-mirror/utilities": "5.6.0-alpha.17"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@babel/core": "^7.26.10",
60
60
  "@babel/plugin-transform-typescript": "^7.27.0",
61
61
  "@babel/preset-env": "^7.26.9",
62
62
  "@babel/preset-typescript": "^7.27.0",
63
- "@warp-drive/internal-config": "5.6.0-alpha.15",
63
+ "@warp-drive/internal-config": "5.6.0-alpha.17",
64
64
  "ember-source": "~6.3.0",
65
65
  "ember-inflector": "6.0.0",
66
66
  "typescript": "^5.8.3",
67
- "vite": "^5.4.15"
67
+ "vite": "^7.0.0"
68
68
  },
69
69
  "ember": {
70
70
  "edition": "octane"
@@ -1,4 +1,4 @@
1
1
  declare module '@ember-data-mirror/request-utils/deprecation-support' {
2
2
  export {};
3
- }
4
- //# sourceMappingURL=deprecation-support.d.ts.map
3
+
4
+ }
@@ -1,10 +1,10 @@
1
1
  declare module '@ember-data-mirror/request-utils/handlers' {
2
2
  /**
3
- * A selection of pre-built request handlers for handling common
4
- * request scenarios.
5
- *
6
- * @module
7
- */
8
- export * from '@warp-drive-mirror/utilities/handlers';
9
- }
10
- //# sourceMappingURL=handlers.d.ts.map
3
+ * A selection of pre-built request handlers for handling common
4
+ * request scenarios.
5
+ *
6
+ * @module
7
+ */
8
+ export * from "@warp-drive-mirror/utilities/handlers";
9
+
10
+ }
@@ -2,50 +2,12 @@
2
2
  /// <reference path="./handlers.d.ts" />
3
3
  /// <reference path="./string.d.ts" />
4
4
  declare module '@ember-data-mirror/request-utils' {
5
- /**
6
- * Simple utility function to assist in url building,
7
- * query params, and other common request operations.
8
- *
9
- * These primitives may be used directly or composed
10
- * by request builders to provide a consistent interface
11
- * for building requests.
12
- *
13
- * For instance:
14
- *
15
- * ```ts
16
- * import { buildBaseURL, buildQueryParams } from '@ember-data-mirror/request-utils';
17
- *
18
- * const baseURL = buildBaseURL({
19
- * host: 'https://api.example.com',
20
- * namespace: 'api/v1',
21
- * resourcePath: 'emberDevelopers',
22
- * op: 'query',
23
- * identifier: { type: 'ember-developer' }
24
- * });
25
- * const url = `${baseURL}?${buildQueryParams({ name: 'Chris', include:['pets'] })}`;
26
- * // => 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris'
27
- * ```
28
- *
29
- * This is useful, but not as useful as the REST request builder for query which is sugar
30
- * over this (and more!):
31
- *
32
- * ```ts
33
- * import { query } from '@ember-data-mirror/rest/request';
34
- *
35
- * const options = query('ember-developer', { name: 'Chris', include:['pets'] });
36
- * // => { url: 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris' }
37
- * // Note: options will also include other request options like headers, method, etc.
38
- * ```
39
- *
40
- * @module
41
- * @public
42
- */
43
- import { type CacheControlValue, DefaultCachePolicy, parseCacheControl, type PolicyConfig } from '@warp-drive-mirror/core/store';
44
- export * from '@warp-drive-mirror/utilities';
45
- export type * from '@warp-drive-mirror/utilities';
5
+ import { type CacheControlValue, DefaultCachePolicy, parseCacheControl, type PolicyConfig } from "@warp-drive-mirror/core/store";
6
+ export * from "@warp-drive-mirror/utilities";
7
+ export type * from "@warp-drive-mirror/utilities";
46
8
  export { DefaultCachePolicy as CachePolicy, type PolicyConfig, type CacheControlValue, parseCacheControl };
47
9
  export class LifetimesService extends DefaultCachePolicy {
48
- constructor(config: PolicyConfig);
10
+ constructor(config: PolicyConfig);
49
11
  }
50
- }
51
- //# sourceMappingURL=index.d.ts.map
12
+
13
+ }
@@ -1,15 +1,15 @@
1
1
  declare module '@ember-data-mirror/request-utils/string' {
2
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
- export * from '@warp-drive-mirror/utilities/string';
14
- }
15
- //# sourceMappingURL=string.d.ts.map
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
+ export * from "@warp-drive-mirror/utilities/string";
14
+
15
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"deprecation-support.js","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"],"names":["macroCondition","getGlobalConfig","WarpDrive","deprecations","DEPRECATE_EMBER_INFLECTOR","dependencySatisfies","Inflector","importSync","default","inflector","originalPlural","plural","originalSingular","singular","originalIrregular","irregular","originalUncountable","uncountable","defaultPluralKeys","Set","defaultSingularKeys","InflectionRuleDefaults","plurals","forEach","regex","add","toString","defaultRules","rules","irregularMap","Map","toIgnore","uncountableSet","irregularPairs","single","plur","set","toLowerCase","irregularLookups","Object","keys","replacement","has","deprecate","id","until","for","since","enabled","available","url","defaultPlur","get","actualSingle","word","args","apply"],"mappings":";;;;;AASA,IAAAA,cAAA,CAAAC,eAAA,EAAA,CAAAC,SAAA,CAAAC,YAAA,CAAAC,yBAAA,CAA+B,EAAA;EAC7B,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,UAAAA,OAAO,EAAE,OAAO;AAChBC,UAAAA,SAAS,EAAE;SACZ;AACDC,QAAAA,GAAG,EAAE;AACP,OACF,CAAC;AAED,MAAA,OAAOlC,mBAAmB,CAACwC,KAAK,CAAC/C,SAAS,EAAE8C,IAAI,CAAC;KAClD;AACH;AACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"handlers.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","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';\nexport type * 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"],"names":["LifetimesService","DefaultCachePolicy","constructor","config","deprecate","id","since","enabled","available","for","until"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBO,MAAMA,gBAAgB,SAASC,kBAAkB,CAAC;EACvDC,WAAWA,CAACC,MAAoB,EAAE;AAChCC,IAAAA,SAAS,CACP,CAAA,iKAAA,CAAmK,EACnK,KAAK,EACL;AACEC,MAAAA,EAAE,EAAE,+CAA+C;AACnDC,MAAAA,KAAK,EAAE;AACLC,QAAAA,OAAO,EAAE,KAAK;AACdC,QAAAA,SAAS,EAAE;OACZ;AACDC,MAAAA,GAAG,EAAE,YAAY;AACjBC,MAAAA,KAAK,EAAE;AACT,KACF,CAAC;IACD,KAAK,CAACP,MAAM,CAAC;AACf;AACF;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"string.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"deprecation-support.d.ts","sourceRoot":"","sources":["../src/deprecation-support.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../src/handlers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,gCAAgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAIH,OAAO,EACL,KAAK,iBAAiB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,YAAY,EAClB,MAAM,wBAAwB,CAAC;AAEhC,cAAc,uBAAuB,CAAC;AACtC,mBAAmB,uBAAuB,CAAC;AAE3C,OAAO,EAAE,kBAAkB,IAAI,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;AAE3G,qBAAa,gBAAiB,SAAQ,kBAAkB;gBAC1C,MAAM,EAAE,YAAY;CAgBjC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../src/string.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,cAAc,8BAA8B,CAAC"}