Skip to content

Releases: NaverPayDev/nurl

v1.0.1

05 Jun 08:39
06df9cb
Compare
Choose a tag to compare

Patch Changes

v1.0.0

26 May 07:22
c5f0299
Compare
Choose a tag to compare

Major Changes

  • 393bd3d: 🔧 Fix pathname handling and href generation in NURL class

    • Previously, when creating an NURL instance with an explicitly empty string ('') for the pathname, the resulting URL automatically defaulted to a root path ('/'). This behavior was inconsistent with the native JavaScript URL object, which retains an empty pathname as-is, resulting in a URL consisting only of query parameters.
    // as-is
    // Input
    const url = new NURL({pathname: '', query: {test: '1'}})
    
    // Output
    url.href === '/?test=1'
    
    // to-be
    // Input
    const url = new NURL({pathname: '', query: {test: '1'}})
    
    // Output
    url.href === '?test=1'
    • Previously, assigning an empty string ('') to the pathname property via setter retained the existing pathname. However, to align with the native JavaScript URL object’s behavior, assigning an empty string now explicitly clears the pathname.
    // Before
    url.pathname = '' // pathname remained '/hello'
    
    // After (new default behavior):
    url.pathname = '' // pathname becomes '', resulting in removal of '/hello'

    PR: 🔧 Fix pathname handling and href generation in NURL class

v0.1.1

02 Apr 02:36
1568f3a
Compare
Choose a tag to compare

Patch Changes

v0.1.0

20 Mar 01:54
6274994
Compare
Choose a tag to compare

Minor Changes

Patch Changes

v0.0.12

11 Mar 08:29
edf0e27
Compare
Choose a tag to compare

Patch Changes

v0.0.11

06 Mar 08:36
291dec5
Compare
Choose a tag to compare

Patch Changes

v0.0.10

09 Jan 14:09
9e0b580
Compare
Choose a tag to compare

Patch Changes

v0.0.9

16 Dec 05:38
67fcea3
Compare
Choose a tag to compare

Patch Changes

  • 0e6c484: Add basePath Support to NURL Class with Duplicate Prevention

v0.0.8

25 Nov 06:15
593b762
Compare
Choose a tag to compare

Patch Changes

  • 1047b48: 🚚 punycode 를 내재화합니다.

v0.0.7

11 Nov 04:21
799a6cb
Compare
Choose a tag to compare