strict-qs 7.0.2 → 8.0.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [8.0.1](https://github.com/nfroidure/strict-qs/compare/v8.0.0...v8.0.1) (2023-08-16)
2
+
3
+
4
+
5
+ # [8.0.0](https://github.com/nfroidure/strict-qs/compare/v7.0.2...v8.0.0) (2023-08-12)
6
+
7
+
8
+
1
9
  ## [7.0.2](https://github.com/nfroidure/strict-qs/compare/v7.0.1...v7.0.2) (2023-01-05)
2
10
 
3
11
 
package/README.md CHANGED
@@ -7,8 +7,8 @@
7
7
  # strict-qs
8
8
  > A stricter Query String parser
9
9
 
10
- [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nfroidure/strict-qs/blob/master/LICENSE)
11
- [![Coverage Status](https://coveralls.io/repos/github/nfroidure/strict-qs/badge.svg?branch=master)](https://coveralls.io/github/nfroidure/strict-qs?branch=master)
10
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nfroidure/strict-qs/blob/main/LICENSE)
11
+ [![Coverage Status](https://coveralls.io/repos/github/nfroidure/strict-qs/badge.svg?branch=main)](https://coveralls.io/github/nfroidure/strict-qs?branch=main)
12
12
 
13
13
 
14
14
  [//]: # (::contents:start)
@@ -139,4 +139,4 @@ qs(qsOptions, qsDefinition, '?pages=0&pages=1&pages=2');
139
139
  - [Nicolas Froidure](http://insertafter.com/en/index.html)
140
140
 
141
141
  # License
142
- [MIT](https://github.com/nfroidure/strict-qs/blob/master/LICENSE)
142
+ [MIT](https://github.com/nfroidure/strict-qs/blob/main/LICENSE)
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  export declare const SEARCH_FLAG = "?";
2
2
  export declare const BASE_10 = 10;
3
- export declare type QSOptions = {
3
+ export type QSOptions = {
4
4
  allowEmptySearch?: boolean;
5
5
  allowUnknownParams?: boolean;
6
6
  allowDefault?: boolean;
7
7
  allowUnorderedParams?: boolean;
8
8
  };
9
- export declare type QSValue = string | number | boolean;
10
- export declare type QSParamValue = QSValue;
11
- export declare type QSParamType = 'string' | 'number' | 'boolean';
12
- export declare type QSUniqueParameter = {
9
+ export type QSValue = string | number | boolean;
10
+ export type QSParamValue = QSValue;
11
+ export type QSParamType = 'string' | 'number' | 'boolean';
12
+ export type QSUniqueParameter = {
13
13
  name: string;
14
14
  description?: string;
15
15
  in: 'query';
@@ -19,7 +19,7 @@ export declare type QSUniqueParameter = {
19
19
  type: QSParamType;
20
20
  default?: QSParamValue;
21
21
  };
22
- export declare type QSArrayParameter = {
22
+ export type QSArrayParameter = {
23
23
  name: string;
24
24
  description?: string;
25
25
  in: 'query';
@@ -33,8 +33,8 @@ export declare type QSArrayParameter = {
33
33
  type: QSParamType;
34
34
  };
35
35
  };
36
- export declare type QSParameter = QSUniqueParameter | QSArrayParameter;
37
- export declare type QSParameterValues = {
36
+ export type QSParameter = QSUniqueParameter | QSArrayParameter;
37
+ export type QSParameterValues = {
38
38
  [name: string]: QSValue | QSValue[];
39
39
  };
40
40
  /**
package/package.json CHANGED
@@ -1,10 +1,4 @@
1
1
  {
2
- "name": "strict-qs",
3
- "version": "7.0.2",
4
- "description": "A stricter Query String parser",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
2
  "metapak": {
9
3
  "configs": [
10
4
  "main",
@@ -13,7 +7,6 @@
13
7
  "tsesm",
14
8
  "eslint",
15
9
  "codeclimate",
16
- "coveralls",
17
10
  "jsdocs",
18
11
  "jest"
19
12
  ],
@@ -30,8 +23,14 @@
30
23
  ]
31
24
  }
32
25
  },
26
+ "name": "strict-qs",
27
+ "version": "8.0.1",
28
+ "description": "A stricter Query String parser",
29
+ "type": "module",
30
+ "main": "dist/index.js",
31
+ "types": "dist/index.d.ts",
33
32
  "scripts": {
34
- "build": "rimraf -f 'dist' && tsc --outDir dist",
33
+ "build": "rimraf 'dist' && tsc --outDir dist",
35
34
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
36
35
  "cli": "env NODE_ENV=${NODE_ENV:-cli}",
37
36
  "cover": "npm run jest -- --coverage",
@@ -44,7 +43,9 @@
44
43
  "precz": "npm t && npm run lint && npm run build && npm run doc && npm run metapak -- -s",
45
44
  "prettier": "prettier --write src/*.ts",
46
45
  "preversion": "npm t && npm run lint && npm run build && npm run doc && npm run metapak -- -s",
46
+ "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
47
47
  "test": "npm run jest",
48
+ "type-check": "tsc --pretty --noEmit",
48
49
  "version": "npm run changelog"
49
50
  },
50
51
  "repository": {
@@ -68,31 +69,33 @@
68
69
  },
69
70
  "homepage": "https://github.com/nfroidure/strict-qs#readme",
70
71
  "devDependencies": {
71
- "@typescript-eslint/eslint-plugin": "^5.36.0",
72
- "@typescript-eslint/parser": "^5.36.0",
73
- "commitizen": "^4.2.5",
74
- "conventional-changelog-cli": "^2.2.2",
72
+ "@swc/cli": "^0.1.62",
73
+ "@swc/core": "^1.3.77",
74
+ "@swc/helpers": "^0.5.1",
75
+ "@swc/jest": "^0.2.29",
76
+ "@typescript-eslint/eslint-plugin": "^6.4.0",
77
+ "@typescript-eslint/parser": "^6.4.0",
78
+ "commitizen": "^4.3.0",
79
+ "conventional-changelog-cli": "^3.0.0",
75
80
  "coveralls": "^3.1.1",
76
81
  "cz-conventional-changelog": "^3.3.0",
77
- "esbuild": "^0.15.6",
78
- "esbuild-jest": "^0.5.0",
79
- "eslint": "^8.23.0",
80
- "eslint-config-prettier": "^8.5.0",
81
- "eslint-plugin-prettier": "^4.2.1",
82
- "jest": "^29.0.1",
83
- "jsdoc-to-markdown": "^7.1.1",
84
- "metapak": "^4.0.6",
85
- "metapak-nfroidure": "13.0.0",
86
- "prettier": "^2.7.1",
87
- "rimraf": "^3.0.2",
88
- "typescript": "^4.8.2"
82
+ "eslint": "^8.47.0",
83
+ "eslint-config-prettier": "^9.0.0",
84
+ "eslint-plugin-prettier": "^5.0.0",
85
+ "jest": "^29.6.2",
86
+ "jsdoc-to-markdown": "^8.0.0",
87
+ "metapak": "^5.1.6",
88
+ "metapak-nfroidure": "15.0.2",
89
+ "prettier": "^3.0.2",
90
+ "rimraf": "^5.0.1",
91
+ "typescript": "^5.1.6"
89
92
  },
90
93
  "dependencies": {
91
94
  "debug": "^4.3.4",
92
- "yerror": "^6.2.1"
95
+ "yerror": "^8.0.0"
93
96
  },
94
97
  "engines": {
95
- "node": ">=16.15.0"
98
+ "node": ">=18.16.0"
96
99
  },
97
100
  "config": {
98
101
  "commitizen": {
@@ -106,15 +109,19 @@
106
109
  "conventional-changelog-cli",
107
110
  "typescript",
108
111
  "rimraf",
112
+ "@swc/cli",
113
+ "@swc/core",
114
+ "@swc/helpers",
109
115
  "eslint",
116
+ "prettier",
110
117
  "eslint-config-prettier",
111
118
  "eslint-plugin-prettier",
112
- "prettier",
113
119
  "@typescript-eslint/eslint-plugin",
114
120
  "@typescript-eslint/parser",
115
121
  "jsdoc-to-markdown",
116
122
  "jest",
117
- "coveralls"
123
+ "coveralls",
124
+ "@swc/jest"
118
125
  ]
119
126
  },
120
127
  "contributors": [],
@@ -173,11 +180,8 @@
173
180
  ],
174
181
  "transform": {
175
182
  "^.+\\.tsx?$": [
176
- "esbuild-jest",
177
- {
178
- "sourcemap": true,
179
- "format": "esm"
180
- }
183
+ "@swc/jest",
184
+ {}
181
185
  ]
182
186
  },
183
187
  "testEnvironment": "node",
@@ -186,6 +190,7 @@
186
190
  },
187
191
  "extensionsToTreatAsEsm": [
188
192
  ".ts"
189
- ]
193
+ ],
194
+ "prettierPath": null
190
195
  }
191
196
  }