react-two.js 0.2.0 → 0.2.2

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 +1 -32
  2. package/package.json +5 -10
package/README.md CHANGED
@@ -293,7 +293,7 @@ function () {
293
293
  - **[Two.js Examples](https://two.js.org/examples/)** — Interactive examples and demos
294
294
  - **[Two.js Repository](https://github.com/jonobr1/two.js)** — Source code and issues
295
295
 
296
- ## Development & Deployment
296
+ ## Development
297
297
 
298
298
  ### Building the Library
299
299
 
@@ -308,37 +308,6 @@ npm run build:docs
308
308
  npm run preview:docs
309
309
  ```
310
310
 
311
- ### Publishing to NPM
312
-
313
- 1. **Increment version** (choose one):
314
- ```bash
315
- npm run version:patch # Bug fixes (0.1.0 → 0.1.1)
316
- npm run version:minor # New features (0.1.0 → 0.2.0)
317
- npm run version:major # Breaking changes (0.1.0 → 1.0.0)
318
- ```
319
-
320
- 2. **Create a GitHub release** with the new version tag. This automatically triggers npm publishing via GitHub Actions.
321
-
322
- Or **publish manually**:
323
- ```bash
324
- npm run publish:npm
325
- ```
326
-
327
- ### GitHub Pages Deployment
328
-
329
- The documentation site automatically deploys to GitHub Pages on every push to `main`. The site will be available at:
330
- - **Live URL**: https://jonobr1.github.io/react-two.js
331
-
332
- #### Manual Setup (if needed):
333
-
334
- 1. **Enable GitHub Pages** in repository settings:
335
- - Go to Settings → Pages
336
- - Source: "GitHub Actions"
337
-
338
- 2. **Set up NPM_TOKEN secret** (for npm publishing):
339
- - Go to Settings → Secrets and variables → Actions
340
- - Add `NPM_TOKEN` with your npm access token
341
-
342
311
  ### Local Development
343
312
 
344
313
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-two.js",
3
- "version": "v0.2.0",
3
+ "version": "v0.2.2",
4
4
  "type": "module",
5
5
  "description": "A React virtual DOM for Two.js — a renderer agnostic two-dimensional drawing API for the web",
6
6
  "main": "./dist/react-two-main.es.js",
@@ -48,12 +48,7 @@
48
48
  "test": "vitest",
49
49
  "test:watch": "vitest --watch",
50
50
  "test:ui": "vitest --ui",
51
- "test:coverage": "vitest --coverage",
52
- "prepublishOnly": "npm run build:lib",
53
- "publish": "npm publish",
54
- "version:patch": "npm version patch",
55
- "version:minor": "npm version minor",
56
- "version:major": "npm version major"
51
+ "test:coverage": "vitest --coverage"
57
52
  },
58
53
  "devDependencies": {
59
54
  "@eslint/js": "^9.13.0",
@@ -83,8 +78,8 @@
83
78
  "vitest": "^3.2.4"
84
79
  },
85
80
  "peerDependencies": {
86
- "react": "^18.3.1",
87
- "react-dom": "^18.3.1",
88
- "two.js": "^v0.8.21"
81
+ "react": ">=19.2.0",
82
+ "react-dom": ">=19.2.0",
83
+ "two.js": ">=v0.8.21"
89
84
  }
90
85
  }