Skip to content

Commit d640163

Browse files
Fix channel is undefined bug (#42)
* Fix channel is undefined bug * Fix entry
1 parent 8139d19 commit d640163

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Bugfixes:
1212

1313
Other improvements:
1414

15+
## [v11.0.1](https://github.com/purescript-node/purescript-node-process/releases/tag/v11.0.1) - 2023-07-21
16+
17+
Bugfixes:
18+
- Fix FFI for `channelRef`/`channelUnref` (#40 by @JordanMartinez)
19+
1520
## [v11.0.0](https://github.com/purescript-node/purescript-node-process/releases/tag/v11.0.0) - 2023-07-21
1621

1722
Breaking changes:

src/Node/Process.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export { process };
44
export const abortImpl = process.abort ? () => process.abort() : null;
55
export const argv = () => process.argv.slice();
66
export const argv0 = () => process.argv0;
7-
export const channelRefImpl = process.channel.ref ? () => process.channel.ref() : null;
8-
export const channelUnrefImpl = process.channel.unref ? () => process.channel.unref() : null;
7+
export const channelRefImpl = process.channel && process.channel.ref ? () => process.channel.ref() : null;
8+
export const channelUnrefImpl = process.channel && process.channel.unref ? () => process.channel.unref() : null;
99
export const chdirImpl = (dir) => process.chdir(dir);
1010
export const config = () => Object.assign({}, process.config);
1111
export const connected = () => process.connected;

0 commit comments

Comments
 (0)