Skip to content

js-utils-kit@4.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Apr 10:19
· 5 commits to main since this release
0bd47c6

Major Changes

  • #155 ae4c3ab Thanks @teneplaysofficial! - Relocate isBrowser from @js-utils-kit/env to juk-web.

    Migration

    - import { isBrowser } from '@js-utils-kit/env'
    + import { isBrowser } from 'juk-web'

Patch Changes

  • #158 82eab17 Thanks @teneplaysofficial! - Correct character counting for whitespace and unicode (fixes spaces, tabs, newlines, and emoji handling).

    Before

    • Whitespace could be inconsistently counted

    After

    • All characters are counted correctly:
      • spaces
      • tabs (\t)
      • newlines (\n)
      • unicode characters (emoji, symbols, etc.)
  • #157 d329b4e Thanks @teneplaysofficial! - Improve safety and validation in resolveModuleRelative

    • Enforces stricter rules for relative paths
    • Allow a single parent traversal (../file)
    • Prevents multiple parent traversals (../../)
    • Blocks unsafe patterns like nested traversal (a/../file)
    • Ensures resolved paths cannot escape the module directory
    • Improves documentation with clear path constraints
  • Updated dependencies [82eab17, ae4c3ab, d329b4e]:

    • @js-utils-kit/core@4.0.0