Skip to content

Commit

Permalink
Merge tag '0.6.2'
Browse files Browse the repository at this point in the history
LogTape 0.6.2
  • Loading branch information
dahlia committed Sep 24, 2024
2 parents 6c08fe7 + 8dca126 commit f5a1599
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
25 changes: 23 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,21 @@ Version 0.7.0
To be released.


Version 0.6.2
-------------

Released on September 24, 2024.

- Fixed a build warning due to importing `node:util` module on [Next.js].
[[#11]]


Version 0.6.1
-------------

Released on September 24, 2024.

- Fixed a build error due to importing `node:fs` module on [Vite]. [[#18]]
- Fixed a build error due to importing `node:util` module on [Vite]. [[#18]]


Version 0.6.0
Expand Down Expand Up @@ -50,12 +59,24 @@ Released on September 24, 2024.
[#17]: https://github.com/dahlia/logtape/issues/17


Version 0.5.4
-------------

Released on September 24, 2024.

- Fixed a build warning due to importing `node:util` module on [Next.js].
[[#11]]

[Next.js]: https://nextjs.org/
[#11]: https://github.com/dahlia/logtape/issues/11


Version 0.5.3
-------------

Released on September 24, 2024.

- Fixed a build error due to importing `node:fs` module on [Vite]. [[#18]]
- Fixed a build error due to importing `node:util` module on [Vite]. [[#18]]

[#18]: https://github.com/dahlia/logtape/issues/18

Expand Down
3 changes: 2 additions & 1 deletion logtape/fs.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ if (
"Bun" in globalThis
) {
try {
fs = require(["node", "fs"].join(":"));
// Intentionally confuse static analysis of bundlers:
fs = require(`${["node", "fs"].join(":")}`);
} catch (_) {
fs = null;
}
Expand Down
3 changes: 2 additions & 1 deletion logtape/nodeUtil.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ if (
"Bun" in globalThis
) {
try {
util = require(["node", "util"].join(":"));
// Intentionally confuse static analysis of bundlers:
util = require(`${["node", "util"].join(":")}`);
} catch (_) {
util = null;
}
Expand Down

0 comments on commit f5a1599

Please sign in to comment.