Skip to content

Commit 765cadb

Browse files
authored
Use "||=" instead of "??=" for improved compatibility (#139)
1 parent 01f1580 commit 765cadb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.3.33 (2023-12-8)
4+
5+
- Improve code compatibility with older versions of node.
6+
37
## 0.3.32 (2023-09-30)
48

59
- Revert 0.3.31 changes.

src/transformations/fix-import-directives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function fixImportDirectives(withPeerProject?: boolean) {
3737
const importFromPeer = getData(node).importFromPeer;
3838
const importPath = importFromPeer ?? renamePath(imp.file);
3939

40-
imports[importPath] ??= [];
40+
imports[importPath] ||= [];
4141
imports[importPath].push(
4242
[
4343
importFromPeer === undefined ? renameContract(a.foreign.name) : a.foreign.name,

0 commit comments

Comments
 (0)