@scaleway/regex 5.2.0 → 5.2.2

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,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2461](https://github.com/scaleway/scaleway-lib/pull/2461) [`3779419`](https://github.com/scaleway/scaleway-lib/commit/3779419f6cec8271d99638e0377106bc23a5b75e) Thanks [@Lawndlwd](https://github.com/Lawndlwd)! - fix the cron regex
8
+
9
+ ## 5.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`be2d1a8`](https://github.com/scaleway/scaleway-lib/commit/be2d1a82fc21f3c04fddfcf2217c8ccc5e2e492e) Thanks [@Lawndlwd](https://github.com/Lawndlwd)! - Add new regex underscore uppercase
14
+
3
15
  ## 5.2.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export declare const alphanumDashDotsOrEmpty: RegExp;
9
9
  export declare const alphanumDashDotsSpaces: RegExp;
10
10
  export declare const alphanumDashLowercase: RegExp;
11
11
  export declare const alphanumDashSpaces: RegExp;
12
+ export declare const alphaUpperUnderscore: RegExp;
12
13
  export declare const alphanumDashOrEmpty: RegExp;
13
14
  export declare const alphanumDashUnderscoreDots: RegExp;
14
15
  export declare const alphanumDashUnderscore: RegExp;
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ const alphanumDashDotsOrEmpty = /^$|^[a-zA-Z0-9-.]*$/;
9
9
  const alphanumDashDotsSpaces = /^[a-zA-Z0-9-.\s]*$/;
10
10
  const alphanumDashLowercase = /^[a-z0-9-]+$/;
11
11
  const alphanumDashSpaces = /^[a-zA-Z0-9-\s]*$/;
12
+ const alphaUpperUnderscore = /^[A-Z_]+$/;
12
13
  const alphanumDashOrEmpty = /^$|^[a-zA-Z0-9-]*$/;
13
14
  const alphanumDashUnderscoreDots = /^[a-zA-Z0-9-._]*$/;
14
15
  const alphanumDashUnderscore = /^[a-zA-Z0-9-_]*$/;
@@ -24,7 +25,7 @@ const basicDomain = /^[a-z0-9-]+(\.[a-z0-9-]{1,63})+$/;
24
25
  const uppercaseBasicDomain = /^(?![-])+[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]{1,63})+$/;
25
26
  const uppercaseBasicSubdomain = /^(?![-])+[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]{1,63})+$/;
26
27
  const advancedDomainName = /^(?:(?:(?:[a-zA-Z0-9À-ÖØ-öø-ÿ](?:[a-zA-Z0-9À-ÖØ-öø-ÿ-]{0,61}[a-zA-Z0-9À-ÖØ-öø-ÿ])?)\.)+[a-zA-Z]{2,}|(?:[0-9]{1,3}\.){3}[0-9]{1,3})(?::[\d]{1,5})?$/;
27
- const cron = /^((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})$/;
28
+ const cron = /^((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*|\*\/\d+) ?){5,7})$/;
28
29
  const digits = /^[0-9]*$/;
29
30
  const macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;
30
31
  const email = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
@@ -71,6 +72,7 @@ export {
71
72
  alpha,
72
73
  alphaDashes,
73
74
  alphaLowercase,
75
+ alphaUpperUnderscore,
74
76
  alphanum,
75
77
  alphanumDash,
76
78
  alphanumDashDots,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/regex",
3
- "version": "5.2.0",
3
+ "version": "5.2.2",
4
4
  "description": "A small utility to use regex",
5
5
  "type": "module",
6
6
  "engines": {
package/vite.config.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  import { defineConfig, mergeConfig } from 'vite'
2
2
  import { defaultConfig } from '../../vite.config'
3
+ import { defaultConfig as vitestDefaultConfig } from '../../vitest.config'
3
4
 
4
- export default mergeConfig(defineConfig(defaultConfig), {
5
+ const config = {
6
+ ...defineConfig(defaultConfig),
7
+ ...vitestDefaultConfig,
8
+ }
9
+
10
+ export default mergeConfig(config, {
5
11
  build: {
6
12
  target: ['node20'],
7
13
  },