@couch-kit/core 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/package.json +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @couch-kit/core
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e763b56: Performance and dependency/bundle improvements
|
|
8
|
+
|
|
9
|
+
**Dependency cleanup:**
|
|
10
|
+
- Remove unused root-level dependencies (expo-\*, @react-native/assets-registry, js-sha1)
|
|
11
|
+
- Move `buffer` from root to @couch-kit/host where it's actually used
|
|
12
|
+
- Move `react-native-nitro-modules` to peerDependencies in @couch-kit/host
|
|
13
|
+
- Remove unused `chalk` dependency from @couch-kit/cli
|
|
14
|
+
- Replace `fs-extra`, `ora`, and `ws` with built-in alternatives in @couch-kit/cli
|
|
15
|
+
|
|
16
|
+
**Bundle & tree-shaking:**
|
|
17
|
+
- Add `sideEffects: false` to all library packages for better tree-shaking
|
|
18
|
+
- Add modern `exports` field to all package.json files
|
|
19
|
+
- Fix @couch-kit/core build target from `node` to `browser` (it's environment-agnostic)
|
|
20
|
+
|
|
21
|
+
**Runtime performance:**
|
|
22
|
+
- Throttle state broadcasts to ~30fps to reduce serialization overhead for fast-updating games
|
|
23
|
+
- Replace per-event `Buffer.concat` with a growing buffer strategy in WebSocket server to reduce GC pressure
|
|
24
|
+
- Replace deprecated `Buffer.slice()` with `Buffer.subarray()`
|
|
25
|
+
|
|
26
|
+
**CLI improvements:**
|
|
27
|
+
- Lazy-load CLI commands via dynamic `import()` for faster startup
|
|
28
|
+
- Replace `ws` with Bun's native WebSocket
|
|
29
|
+
- Replace `fs-extra` with `node:fs` built-in APIs
|
|
30
|
+
- Replace `ora` with simple console output
|
|
31
|
+
|
|
3
32
|
## 0.3.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@couch-kit/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Shared types, protocol, and game reducer for Couch Kit party games",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,8 +17,16 @@
|
|
|
17
17
|
"reducer"
|
|
18
18
|
],
|
|
19
19
|
"main": "./src/index.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./src/index.ts",
|
|
23
|
+
"import": "./src/index.ts",
|
|
24
|
+
"default": "./src/index.ts"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
20
28
|
"scripts": {
|
|
21
|
-
"build": "bun build ./src/index.ts --outdir ./dist --target
|
|
29
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target browser",
|
|
22
30
|
"test": "bun test",
|
|
23
31
|
"lint": "eslint src/",
|
|
24
32
|
"typecheck": "tsc --noEmit",
|