umaki 0.13.2 → 0.14.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.
- package/README.md +8 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +1 -1
- package/dist/libs/callback/index.cjs +1 -1
- package/dist/libs/callback/index.es.js +1 -1
- package/dist/libs/config/index.cjs +1 -1
- package/dist/libs/config/index.es.js +1 -1
- package/dist/libs/control/index.cjs +1 -1
- package/dist/libs/control/index.es.js +1 -1
- package/dist/libs/convert/index.cjs +1 -1
- package/dist/libs/convert/index.es.js +1 -1
- package/dist/libs/eventControl/index.cjs +1 -1
- package/dist/libs/eventControl/index.es.js +1 -1
- package/dist/libs/get/get-query-params.d.ts +1 -0
- package/dist/libs/get/index.cjs +1 -1
- package/dist/libs/get/index.es.js +1 -1
- package/dist/libs/is/index.cjs +1 -1
- package/dist/libs/is/index.es.js +1 -1
- package/dist/libs/remove/index.cjs +1 -1
- package/dist/libs/remove/index.es.js +1 -1
- package/dist/libs/security/index.cjs +1 -1
- package/dist/libs/security/index.es.js +1 -1
- package/dist/libs/set/index.cjs +1 -1
- package/dist/libs/set/index.es.js +1 -1
- package/dist/libs/to/index.cjs +1 -1
- package/dist/libs/to/index.es.js +1 -1
- package/dist/libs/transform/index.cjs +1 -1
- package/dist/libs/transform/index.es.js +1 -1
- package/dist/libs/wait/index.cjs +1 -1
- package/dist/libs/wait/index.es.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -42,7 +42,9 @@ Category subpaths are also available to keep bundles small:
|
|
|
42
42
|
import { debounce } from "umaki/eventControl";
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
CommonJS (`require("umaki")`) is supported as well. Some dependencies are ESM-only, so loading umaki with `require` from Node.js needs a version that supports `require(esm)
|
|
45
|
+
CommonJS (`require("umaki")`) is supported as well. Some dependencies are ESM-only, so loading umaki with `require` from Node.js needs a version that supports `require(esm)`.
|
|
46
|
+
|
|
47
|
+
umaki requires Node.js `^22.22.2 || ^24.15.0 || >=26.0.0`. Node.js 20 users should stay on umaki 0.13.x.
|
|
46
48
|
|
|
47
49
|
## Configuration
|
|
48
50
|
|
|
@@ -564,8 +566,13 @@ const customParamWithOptions = getQueryParams("id", {
|
|
|
564
566
|
searchString: "?id=123",
|
|
565
567
|
parseOptions: { arrayFormat: "bracket" },
|
|
566
568
|
});
|
|
569
|
+
|
|
570
|
+
// A repeated key returns an array
|
|
571
|
+
getQueryParams("a", { searchString: "?a=1&a=2" }); // [1, 2]
|
|
567
572
|
```
|
|
568
573
|
|
|
574
|
+
Percent-encoded bytes that are not valid UTF-8 are decoded to `U+FFFD`, like `URLSearchParams`.
|
|
575
|
+
|
|
569
576
|
[View file →](src/libs/get/get-query-params.ts)
|
|
570
577
|
|
|
571
578
|
### getRandomInt
|
package/dist/index.cjs
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -10,6 +10,7 @@ export type GetQueryParamsOptions = {
|
|
|
10
10
|
* @param query - The name of the query parameter to retrieve.
|
|
11
11
|
* @param options - Optional. An object containing searchString and parseOptions.
|
|
12
12
|
* @returns The value of the query parameter, which can be a string, number, array of strings or numbers, or null if the parameter is not found.
|
|
13
|
+
* A repeated key returns an array, and percent-encoded bytes that are not valid UTF-8 are decoded to `U+FFFD`.
|
|
13
14
|
* In SSR environments where window is undefined, `searchString` defaults to an empty string.
|
|
14
15
|
*/
|
|
15
16
|
export declare const getQueryParams: (query: string, options?: GetQueryParamsOptions) => GetQueryParamsReturnType;
|
package/dist/libs/get/index.cjs
CHANGED
package/dist/libs/is/index.cjs
CHANGED
package/dist/libs/is/index.es.js
CHANGED
package/dist/libs/set/index.cjs
CHANGED
package/dist/libs/to/index.cjs
CHANGED
package/dist/libs/to/index.es.js
CHANGED
package/dist/libs/wait/index.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umaki",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "A utility that is often used in web production.",
|
|
5
5
|
"author": "TsubasaHiga",
|
|
6
6
|
"homepage": "https://github.com/TsubasaHiga/umaki",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"packageManager": "pnpm@10.24.0",
|
|
13
13
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
14
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
@@ -111,15 +111,15 @@
|
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"dayjs": "^1.11.23",
|
|
114
|
-
"isomorphic-dompurify": "^
|
|
114
|
+
"isomorphic-dompurify": "^4.6.0",
|
|
115
115
|
"md5": "^2.3.0",
|
|
116
|
-
"query-string": "^
|
|
116
|
+
"query-string": "^10.0.0",
|
|
117
117
|
"runes2": "^1.1.10",
|
|
118
118
|
"store2": "^2.14.4",
|
|
119
119
|
"ua-parser-js": "^1.0.41"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
|
-
"@biomejs/biome": "2.
|
|
122
|
+
"@biomejs/biome": "2.6.2",
|
|
123
123
|
"@types/md5": "^2.3.6",
|
|
124
124
|
"@types/node": "^24.19.2",
|
|
125
125
|
"@types/ua-parser-js": "^0.7.39",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"jsdom": "^30.1.3",
|
|
129
129
|
"rollup-plugin-license": "^3.7.1",
|
|
130
130
|
"rollup-plugin-visualizer": "^7.1.1",
|
|
131
|
-
"typescript": "~
|
|
131
|
+
"typescript": "~6.0.3",
|
|
132
132
|
"vite": "^8.3.5",
|
|
133
133
|
"vite-plugin-dts": "^5.1.2",
|
|
134
134
|
"vitest": "^5.0.5"
|