Skip to content

Commit 02e153e

Browse files
Revert event-emiter externalization
1 parent d88fc5f commit 02e153e

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

.changeset/lovely-birds-kick.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@powersync/common': minor
3+
'@powersync/node': minor
4+
'@powersync/react-native': minor
5+
'@powersync/web': minor
6+
---
7+
8+
Revert `event-iterator` externalization in `@powersync/common` rollup config. This now bundles `event-iterator` again in `@powersync/common`

.changeset/slow-birds-breathe.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@powersync/web': minor
3+
---
4+
5+
Fixes regression introduced in `@powersync/web@1.28.1`. Vite users don't need to include `event-iterator` in included optimized dependencies.
6+
7+
vite.config.js
8+
9+
```diff
10+
include: [
11+
- '@powersync/web > event-iterator'
12+
]
13+
```

packages/common/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
},
5757
"dependencies": {
5858
"async-mutex": "^0.5.0",
59-
"buffer": "^6.0.3",
60-
"event-iterator": "^2.0.0"
59+
"buffer": "^6.0.3"
6160
},
6261
"devDependencies": {
6362
"@rollup/plugin-commonjs": "^29.0.0",
@@ -71,6 +70,7 @@
7170
"js-logger": "^1.6.1",
7271
"rsocket-core": "1.0.0-alpha.3",
7372
"rsocket-websocket-client": "1.0.0-alpha.3",
74-
"bson": "^6.10.4"
73+
"bson": "^6.10.4",
74+
"event-iterator": "^2.0.0"
7575
}
7676
}

packages/common/rollup.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as path from 'node:path';
2-
31
import commonjs from '@rollup/plugin-commonjs';
42
import inject from '@rollup/plugin-inject';
53
import json from '@rollup/plugin-json';
@@ -33,7 +31,7 @@ function defineBuild(isNode) {
3331
})
3432
]
3533
],
36-
external: ['async-mutex', 'bson', 'buffer/', 'event-iterator']
34+
external: ['async-mutex', 'bson', 'buffer/']
3735
};
3836
}
3937

packages/web/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
- Updated dependencies [3e4a25c]
1717
- @powersync/common@1.41.1
1818

19+
Note for Vite users:
20+
21+
This release introduced a regression which requires including `'@powersync/web > event-iterator'` in the Vite `optimizeDeps -> include` config. This regression was fixed in `@powersync/web@1.29.0`.
22+
1923
## 1.28.0
2024

2125
### Minor Changes

0 commit comments

Comments
 (0)