Back to Explore

pillarjs/encodeurl

GitHub
1 watchersOpen source

Last release: 3/29/2024

Encode a URL into a percent-encoded form, leaving already-encoded sequences alone. Useful for safely encoding user-controlled URLs for cases like building HTML output or header values, without throwing errors. It percent-encodes non-URL code points as UTF-8 and avoids re-encoding characters like “%” when it is part of a valid escape sequence.

Project status

  • The source appears to be at least intermittently maintained, with a recent upstream push on 2026-01-03, though the last published version in the provided history is v2.0.0 (2024-03-29).
  • Apparent update cadence is slow, with updates at v1.0.2 (2018-01-22), then a major v2.0.0 (2024-03-29), and no additional version updates shown after v2.0.0 in the provided data.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.0.0

    3/29/2024

    v2.0.0 changes encodeurl's percent-encoding behavior to better align with the WHATWG URL specification. The release specifically focuses on stopping encoding for the characters backslash, caret, and pipe, which also addresses a security concern described in the release notes.

    BreakingSecurity
  • v1.0.2

    1/22/2018

    Release v1.0.2 contains a fix for how the module encodes a trailing percent sign character. The core code change adjusts the URL-encoding regex, and the test suite is updated accordingly to reflect the new behavior.

  • v1.0.1

    6/10/2016

    Release v1.0.1 contains a targeted fix for how the library handles unpaired surrogate code points when they occur at the beginning or end of the input string. The code change updates the surrogate-detection regular expression to correctly match these edge positions, and the test suite was expanded to cover those cases.

  • v1.0.0

    6/10/2016

    This release is version 1.0.0 and is labeled as the initial release. No release notes details are provided beyond stating that the project is newly published.