durablews 2.0.0-alpha.1 → 2.0.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.
Files changed (2) hide show
  1. package/README.md +4 -5
  2. package/package.json +37 -2
package/README.md CHANGED
@@ -4,11 +4,10 @@
4
4
  > bounded queueing, and typed messages. Zero dependencies, every modern
5
5
  > runtime, durable by default.
6
6
 
7
- > ⚠️ **v2 is in alpha** (`npm install durablews@alpha`). The features below
8
- > are built and tested (unit, integration, real-browser e2e); the API may
9
- > still shift before 2.0. The
7
+ > The features below are built and tested (unit, integration, real-browser
8
+ > e2e). The
10
9
  > [architecture RFC](https://github.com/imnsco/DurableWS/blob/main/rfcs/0001-v2-architecture.md)
11
- > tracks design and status. The `1.x` release predates this rewrite — don't
10
+ > tracks design and status. The `1.x` line predates the v2 rewrite — don't
12
11
  > use it.
13
12
 
14
13
  ## What you get
@@ -43,7 +42,7 @@
43
42
  ## Installation
44
43
 
45
44
  ```bash
46
- npm install durablews@alpha
45
+ npm install durablews
47
46
  ```
48
47
 
49
48
  ## Quick start
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "durablews",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.1",
4
4
  "description": "A resilient, TypeScript-based WebSocket client",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -104,6 +104,7 @@
104
104
  "devDependencies": {
105
105
  "@arethetypeswrong/cli": "^0.18.3",
106
106
  "@playwright/test": "^1.60.0",
107
+ "@size-limit/preset-small-lib": "^12.1.0",
107
108
  "@testing-library/react": "^16.3.2",
108
109
  "@types/node": "^22.19.20",
109
110
  "@types/react": "^19.2.17",
@@ -113,6 +114,7 @@
113
114
  "publint": "^0.3.21",
114
115
  "react": "^19.2.7",
115
116
  "react-dom": "^19.2.7",
117
+ "size-limit": "^12.1.0",
116
118
  "tsup": "^8.5.1",
117
119
  "typescript": "^5.3.3",
118
120
  "vitest": "^1.2.2",
@@ -120,6 +122,38 @@
120
122
  "vue": "^3.5.35",
121
123
  "ws": "^8.21.0"
122
124
  },
125
+ "size-limit": [
126
+ {
127
+ "name": "core (durablews)",
128
+ "path": "dist/index.js",
129
+ "limit": "3 KB",
130
+ "brotli": true
131
+ },
132
+ {
133
+ "name": "durablews/vue",
134
+ "path": "dist/vue.js",
135
+ "limit": "3.5 KB",
136
+ "brotli": true,
137
+ "ignore": [
138
+ "vue"
139
+ ]
140
+ },
141
+ {
142
+ "name": "durablews/react",
143
+ "path": "dist/react.js",
144
+ "limit": "3.5 KB",
145
+ "brotli": true,
146
+ "ignore": [
147
+ "react"
148
+ ]
149
+ },
150
+ {
151
+ "name": "durablews/compat",
152
+ "path": "dist/compat.js",
153
+ "limit": "4 KB",
154
+ "brotli": true
155
+ }
156
+ ],
123
157
  "scripts": {
124
158
  "build": "tsup",
125
159
  "test": "vitest",
@@ -128,6 +162,7 @@
128
162
  "e2e:install": "playwright install --with-deps chromium",
129
163
  "typecheck": "tsc --noEmit",
130
164
  "typecheck:next": "pnpm --package=typescript@next dlx tsc --noEmit",
131
- "check:publish": "publint && attw --pack . --profile node16"
165
+ "check:publish": "publint && attw --pack . --profile node16",
166
+ "size": "size-limit"
132
167
  }
133
168
  }