@scaleway/regex 5.5.0 → 5.6.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 +12 -0
- package/biome.json +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
- package/tsconfig.build.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2872](https://github.com/scaleway/scaleway-lib/pull/2872) [`5a4a5dc`](https://github.com/scaleway/scaleway-lib/commit/5a4a5dc80a8404abb7e76ed54082f5c0c8de3b0b) Thanks [@philibea](https://github.com/philibea)! - Isolated modules, better export of types generated by typescript
|
|
8
|
+
|
|
9
|
+
## 5.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#2782](https://github.com/scaleway/scaleway-lib/pull/2782) [`aececf9`](https://github.com/scaleway/scaleway-lib/commit/aececf9ba62bf9c7d78251504eac3f147b87005f) Thanks [@MathildeJolly](https://github.com/MathildeJolly)! - feat(regex): add new kafka username regex
|
|
14
|
+
|
|
3
15
|
## 5.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/biome.json
ADDED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -68,6 +68,7 @@ const pathSegment = /^[_a-zA-Z0-9]([-_.a-zA-Z0-9]*[_a-zA-Z0-9])?$/;
|
|
|
68
68
|
const absolutePath = /^\/(([\w. -]*)[^\s?]\/?)+$/;
|
|
69
69
|
const sgPortRange = /^(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5]?[0-9]{1,4})(-(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5]?[0-9]{1,4}))?$/;
|
|
70
70
|
const password = /^(?!@)[^`]*$/;
|
|
71
|
+
const kafkaUsernameRegex = /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/;
|
|
71
72
|
export {
|
|
72
73
|
absoluteLinuxPath,
|
|
73
74
|
absolutePath,
|
|
@@ -108,6 +109,7 @@ export {
|
|
|
108
109
|
ipv4Cidr,
|
|
109
110
|
ipv6,
|
|
110
111
|
ipv6Cidr,
|
|
112
|
+
kafkaUsernameRegex,
|
|
111
113
|
macAddress,
|
|
112
114
|
nineDigitsCode,
|
|
113
115
|
organizationAlias,
|
package/package.json
CHANGED
package/tsconfig.build.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
|
-
"noEmit": false,
|
|
5
3
|
"emitDeclarationOnly": true,
|
|
6
|
-
"
|
|
7
|
-
"
|
|
4
|
+
"isolatedDeclarations": true,
|
|
5
|
+
"noEmit": false,
|
|
6
|
+
"outDir": "dist",
|
|
7
|
+
"rootDir": "src"
|
|
8
8
|
},
|
|
9
9
|
"exclude": [
|
|
10
10
|
"*.config.ts",
|
|
@@ -12,5 +12,6 @@
|
|
|
12
12
|
"**/__tests__",
|
|
13
13
|
"**/__mocks__",
|
|
14
14
|
"src/**/*.test.tsx"
|
|
15
|
-
]
|
|
15
|
+
],
|
|
16
|
+
"extends": "./tsconfig.json"
|
|
16
17
|
}
|