@scaleway/regex 5.7.0 → 5.8.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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @scaleway/regex@5.7.0 prebuild /home/runner/work/scaleway-lib/scaleway-lib/packages/regex
2
+ > @scaleway/regex@5.8.0 prebuild /home/runner/work/scaleway-lib/scaleway-lib/packages/regex
3
3
  > shx rm -rf dist
4
4
 
5
5
 
6
- > @scaleway/regex@5.7.0 build /home/runner/work/scaleway-lib/scaleway-lib/packages/regex
6
+ > @scaleway/regex@5.8.0 build /home/runner/work/scaleway-lib/scaleway-lib/packages/regex
7
7
  > vite build --config vite.config.ts && pnpm run type:generate
8
8
 
9
9
  vite v7.3.1 building client environment for production...
@@ -11,10 +11,10 @@ transforming...
11
11
  ✓ 1 modules transformed.
12
12
  rendering chunks...
13
13
  computing gzip size...
14
- dist/index.js 5.12 kB │ gzip: 1.57 kB
15
- dist/index.js 5.12 kB │ gzip: 1.57 kB
16
- ✓ built in 115ms
14
+ dist/index.js 5.22 kB │ gzip: 1.59 kB
15
+ dist/index.js 5.22 kB │ gzip: 1.59 kB
16
+ ✓ built in 257ms
17
17
 
18
- > @scaleway/regex@5.7.0 type:generate /home/runner/work/scaleway-lib/scaleway-lib/packages/regex
18
+ > @scaleway/regex@5.8.0 type:generate /home/runner/work/scaleway-lib/scaleway-lib/packages/regex
19
19
  > tsc --declaration -p tsconfig.build.json
20
20
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2975](https://github.com/scaleway/scaleway-lib/pull/2975) [`7f38853`](https://github.com/scaleway/scaleway-lib/commit/7f38853ffee6111a70e679452245dfe5369e2480) Thanks [@johnnydoubt](https://github.com/johnnydoubt)! - feat: add alphanumDashSegment regex for serverlessdb and datawarehouse resource names
8
+
3
9
  ## 5.7.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export declare const alphanumDashDots: RegExp;
8
8
  export declare const alphanumDashDotsOrEmpty: RegExp;
9
9
  export declare const alphanumDashDotsSpaces: RegExp;
10
10
  export declare const alphanumDashLowercase: RegExp;
11
+ export declare const alphanumDashSegment: RegExp;
11
12
  export declare const alphanumDashSpaces: RegExp;
12
13
  export declare const alphaUpperUnderscore: RegExp;
13
14
  export declare const alphanumDashOrEmpty: RegExp;
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ const alphanumDashDots = /^[a-zA-Z0-9-.]*$/;
8
8
  const alphanumDashDotsOrEmpty = /^$|^[a-zA-Z0-9-.]*$/;
9
9
  const alphanumDashDotsSpaces = /^[a-zA-Z0-9-.\s]*$/;
10
10
  const alphanumDashLowercase = /^[a-z0-9-]+$/;
11
+ const alphanumDashSegment = /^[A-Za-z](?:[A-Za-z0-9-]*[A-Za-z0-9])?$/;
11
12
  const alphanumDashSpaces = /^[a-zA-Z0-9-\s]*$/;
12
13
  const alphaUpperUnderscore = /^[A-Z_]+$/;
13
14
  const alphanumDashOrEmpty = /^$|^[a-zA-Z0-9-]*$/;
@@ -86,6 +87,7 @@ export {
86
87
  alphanumDashDotsSpaces,
87
88
  alphanumDashLowercase,
88
89
  alphanumDashOrEmpty,
90
+ alphanumDashSegment,
89
91
  alphanumDashSpaces,
90
92
  alphanumDashUnderscore,
91
93
  alphanumDashUnderscoreDollar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/regex",
3
- "version": "5.7.0",
3
+ "version": "5.8.0",
4
4
  "description": "A small utility to use regex",
5
5
  "type": "module",
6
6
  "engines": {