Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jul 26, 2023
1 parent 5f70760 commit 9fe1043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ and this project try to adheres to [Semantic Versioning](https://semver.org/),
but not always is possible (due the use of unstable features from Deno).
Any BREAKING CHANGE between minor versions will be documented here in upper case.

## [Unreleased]
## [1.18.3] - 2023-07-26
### Fixed
- `relative_urls` give wrong URL when `prettyUrls` is disabled [#451]
- `module` loader cache.

## [1.18.2] - 2023-07-21
### Added
Expand Down Expand Up @@ -2340,7 +2341,7 @@ The first version.
[#450]: https://github.com/lumeland/lume/issues/450
[#451]: https://github.com/lumeland/lume/issues/451

[Unreleased]: https://github.com/lumeland/lume/compare/v1.18.2...HEAD
[1.18.3]: https://github.com/lumeland/lume/compare/v1.18.2...v1.18.3
[1.18.2]: https://github.com/lumeland/lume/compare/v1.18.1...v1.18.2
[1.18.1]: https://github.com/lumeland/lume/compare/v1.18.0...v1.18.1
[1.18.0]: https://github.com/lumeland/lume/compare/v1.17.5...v1.18.0
Expand Down
1 change: 1 addition & 0 deletions core/loaders/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const cached = new Set<string>();
export default async function module(path: string): Promise<Data> {
const url = isUrl(path) ? path : `file://${path}`;
const specifier = cached.has(url) ? `${url}#${Date.now()}` : url;
cached.add(url);
const mod = await import(specifier);
return toData(mod);
}
Expand Down

0 comments on commit 9fe1043

Please sign in to comment.