Skip to content

@js-utils-kit/valid@3.0.0

Choose a tag to compare

@github-actions github-actions released this 02 May 00:19
· 71 commits to main since this release
2727c8a

Major Changes

  • #167 42bed98 Thanks @teneplaysofficial! - Enforce stricter case validation rules via shared regex package

    Changes

    • CAMEL_CASE_REGEX now requires at least one uppercase transition
      • Previously valid: "hello"
      • Now invalid: "hello"
      • Still valid: "helloWorld"
    • PASCAL_CASE_REGEX now requires at least two segments
      • Previously valid: "Hello"
      • Now invalid: "Hello"
      • Still valid: "HelloWorld"
    • Migrated to @js-utils-kit/regex for all regex patterns
    • Enforced stricter rules for:
      • camelCase
      • PascalCase
      • snake_case
      • kebab-case

    Affected exports

    • CAMEL_CASE_REGEX
    • PASCAL_CASE_REGEX
    • isCamelCase
    • isPascalCase

    Impact

    • These changes modify validation behavior and will cause some previously valid inputs to fail.
    • Downstream consumers must audit usages of:
      • isCamelCase
      • isPascalCase
      • direct usage of the regex constants

Patch Changes

  • #174 004efdb Thanks @teneplaysofficial! - Simplify Email Validation Using Centralized Regex

    • Replaces manual email parsing and validation logic with a single regex-based approach using EMAIL_REGEX. This reduces complexity and improves maintainability by delegating validation responsibility to a centralized regex.
    • Updates Typedoc to reflect the new behavior:
      • Removes explicit local and domain length enforcement from the function
      • Clarifies that validation is fully handled by the regex
      • Adds support and documentation for custom regex overrides
    • No breaking changes, but validation behavior may differ slightly due to removal of manual checks.
  • Updated dependencies [42bed98]:

    • @js-utils-kit/regex@0.1.0