Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unjs/mlly
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.10
Choose a base ref
...
head repository: unjs/mlly
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.5.11
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Aug 12, 2022

  1. Copy the full SHA
    26c02d5 View commit details
  2. chore(release): 0.5.11

    pi0 committed Aug 12, 2022
    Copy the full SHA
    3d4de6b View commit details
Showing with 9 additions and 2 deletions.
  1. +7 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +1 −1 src/utils.ts
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.5.11](https://github.com/unjs/mlly/compare/v0.5.10...v0.5.11) (2022-08-12)


### Bug Fixes

* encode uri when constructing `file://` url ([#68](https://github.com/unjs/mlly/issues/68)) ([26c02d5](https://github.com/unjs/mlly/commit/26c02d5e01b14a7c166a967b44b617c87e4dcef0))

### [0.5.10](https://github.com/unjs/mlly/compare/v0.5.9...v0.5.10) (2022-08-11)


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mlly",
"version": "0.5.10",
"version": "0.5.11",
"description": "Missing ECMAScript module utils for Node.js",
"repository": "unjs/mlly",
"license": "MIT",
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ export function normalizeid (id: string): string {
if (BUILTIN_MODULES.has(id)) {
return 'node:' + id
}
return 'file://' + normalizeSlash(id)
return 'file://' + normalizeSlash(encodeURI(id))
}

export async function loadURL (url: string): Promise<string> {