@scaleway/regex 5.5.0 → 5.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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
8
+
3
9
  ## 5.5.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -52,3 +52,4 @@ export declare const pathSegment: RegExp;
52
52
  export declare const absolutePath: RegExp;
53
53
  export declare const sgPortRange: RegExp;
54
54
  export declare const password: RegExp;
55
+ export declare const kafkaUsernameRegex: RegExp;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/regex",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "A small utility to use regex",
5
5
  "type": "module",
6
6
  "engines": {