@warp-drive/utilities 5.10.0-alpha.10 → 5.10.0-alpha.12

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 (2) hide show
  1. package/README.md +83 -7
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -8,13 +8,11 @@
8
8
  />
9
9
  </p>
10
10
 
11
- ![NPM Stable Version](https://img.shields.io/npm/v/ember-data/latest?label=version&style=flat&color=fdb155)
12
- ![NPM Downloads](https://img.shields.io/npm/dm/ember-data.svg?style=flat&color=fdb155)
11
+ ![NPM Stable Version](https://img.shields.io/npm/v/%40warp-drive%2Futilities/latest?label=version&style=flat&color=fdb155)
12
+ ![NPM Downloads](https://img.shields.io/npm/dm/%40warp-drive%2Futilities.svg?style=flat&color=fdb155)
13
13
  ![License](https://img.shields.io/github/license/warp-drive-data/warp-drive.svg?style=flat&color=fdb155)
14
- [![EmberJS Discord Community Server](https://img.shields.io/badge/EmberJS-grey?logo=discord&logoColor=fdb155)](https://discord.gg/zT3asNS
15
- )
16
- [![WarpDrive Discord Server](https://img.shields.io/badge/WarpDrive-grey?logo=discord&logoColor=fdb155)](https://discord.gg/PHBbnWJx5S
17
- )
14
+ [![EmberJS Discord Community Server](https://img.shields.io/badge/EmberJS-grey?logo=discord&logoColor=fdb155)](https://discord.gg/zT3asNS)
15
+ [![WarpDrive Discord Server](https://img.shields.io/badge/WarpDrive-grey?logo=discord&logoColor=fdb155)](https://discord.gg/PHBbnWJx5S)
18
16
 
19
17
  # @warp-drive/utilities
20
18
 
@@ -25,11 +23,29 @@
25
23
  Utilities that Apps building with <em>Warp</em><strong>Drive</strong> may find useful.
26
24
  </p>
27
25
 
26
+ ## Usage
27
+
28
+ Build URLs and query strings, or use the request builders that compose them:
29
+
30
+ ```ts
31
+ import { buildBaseURL, buildQueryParams } from '@warp-drive/utilities';
32
+
33
+ const baseURL = buildBaseURL({
34
+ host: 'https://api.example.com',
35
+ namespace: 'api/v1',
36
+ resourcePath: 'emberDevelopers',
37
+ op: 'query',
38
+ identifier: { type: 'ember-developer' }
39
+ });
40
+ const url = `${baseURL}?${buildQueryParams({ name: 'Chris', include:['pets'] })}`;
41
+ // => 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris'
42
+ ```
43
+
28
44
  <br>
29
45
 
30
46
  ## Documentation
31
47
 
32
- *Get Started* → [Guides](https://docs.warp-drive.io)
48
+ *Get Started* → [Guides](https://warp-drive.io/guides/)
33
49
 
34
50
 
35
51
  <br>
@@ -43,3 +59,63 @@ Refer to the [Code of Conduct](https://github.com/warp-drive-data/warp-drive/blo
43
59
  ### License
44
60
 
45
61
  This project is licensed under the [MIT License](LICENSE.md).
62
+
63
+ ### ♥️ Credits
64
+
65
+ <details>
66
+ <summary>Brought to you with ♥️ love by <a href="https://emberjs.com" title="EmberJS">🐹 Ember</a></summary>
67
+
68
+ <style type="text/css">
69
+ img.project-logo {
70
+ padding: 0 5em 1em 5em;
71
+ width: 100px;
72
+ border-bottom: 2px solid #bbb;
73
+ margin: 0 auto;
74
+ display: block;
75
+ }
76
+ details > summary {
77
+ font-size: 1.1rem;
78
+ line-height: 1rem;
79
+ margin-bottom: 1rem;
80
+ }
81
+ details {
82
+ font-size: 1rem;
83
+ }
84
+ details > summary strong {
85
+ display: inline-block;
86
+ padding: .2rem 0;
87
+ color: #000;
88
+ border-bottom: 3px solid #bbb;
89
+ }
90
+
91
+ details > details {
92
+ margin-left: 2rem;
93
+ }
94
+ details > details > summary {
95
+ font-size: 1rem;
96
+ line-height: 1rem;
97
+ margin-bottom: 1rem;
98
+ }
99
+ details > details > summary strong {
100
+ display: inline-block;
101
+ padding: .2rem 0;
102
+ color: #555;
103
+ border-bottom: 2px solid #555;
104
+ }
105
+ details > details {
106
+ font-size: .85rem;
107
+ }
108
+
109
+ @media (prefers-color-scheme: dark) {
110
+ details > summary strong {
111
+ color: #fff;
112
+ }
113
+ }
114
+ @media (prefers-color-scheme: dark) {
115
+ details > details > summary strong {
116
+ color: #afaba0;
117
+ border-bottom: 2px solid #afaba0;
118
+ }
119
+ }
120
+ </style>
121
+ </details>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/utilities",
3
- "version": "5.10.0-alpha.10",
3
+ "version": "5.10.0-alpha.12",
4
4
  "description": "Utilities package for WarpDrive | Things your app might find useful",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -44,7 +44,7 @@
44
44
  }
45
45
  },
46
46
  "peerDependencies": {
47
- "@warp-drive/core": "5.10.0-alpha.10"
47
+ "@warp-drive/core": "5.10.0-alpha.12"
48
48
  },
49
49
  "dependencies": {
50
50
  "@embroider/macros": "^1.21.1"
@@ -53,12 +53,12 @@
53
53
  "@babel/core": "^7.29.7",
54
54
  "@babel/plugin-transform-typescript": "^7.29.9",
55
55
  "@babel/preset-typescript": "^7.29.7",
56
- "@warp-drive/core": "5.10.0-alpha.10",
57
- "@warp-drive/internal-config": "5.10.0-alpha.10",
56
+ "@warp-drive/core": "5.10.0-alpha.12",
57
+ "@warp-drive/internal-config": "5.10.0-alpha.12",
58
58
  "decorator-transforms": "^2.4.0",
59
59
  "expect-type": "^1.4.0",
60
60
  "tsdown": "^0.23.0",
61
- "typescript-7": "npm:typescript@7.1.0-dev.20260920.1"
61
+ "typescript-7": "npm:typescript@7.1.0-dev.20260922.1"
62
62
  },
63
63
  "ember-addon": {
64
64
  "main": "addon-main.cjs",