Files
Nitro_Render_V3/package.json
T
simoleo89 87cf47847c feat(events,session): add React-friendly subscribe APIs and snapshot getters
Adds backwards-compatible primitives needed to consume the renderer from
React 19 hooks (useSyncExternalStore, use(), TanStack Query) without
re-architecting the event bus.

- EventDispatcher.subscribe(type, cb): () => void — unsubscriber-returning
  wrapper matching the useSyncExternalStore subscribe signature.
- CommunicationManager.subscribeMessage(eventCtor, handler): () => void —
  packet-stream equivalent.
- SessionDataManager.getUserDataSnapshot() and
  RoomSessionManager.getActiveRoomSessionSnapshot() — referentially-stable
  read-only views invalidated through new SESSION_DATA_UPDATED and
  ROOM_SESSION_UPDATED events.

All additive; existing addEventListener/removeEventListener / IRoomSession
APIs are unchanged. Bumps renderer to 2.1.0.
2026-05-10 19:16:32 +02:00

56 lines
1.4 KiB
JSON

{
"name": "@nitrots/nitro-renderer",
"description": "Javascript library for rendering Nitro in the browser using PixiJS",
"version": "2.1.0",
"private": true,
"type": "module",
"workspaces": [
"packages/*"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/duckietm/Nitro_Render_V3.git"
},
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/duckietm/Nitro_Render_V3/issues"
},
"homepage": "https://github.com/duckietm/Nitro_Render_V3",
"scripts": {
"build": "vite build",
"compile": "tsc --project ./tsconfig.json --noEmit false",
"eslint": "eslint ./src ./packages/*/src",
"eslint-fix": "eslint ./src --fix",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"main": "./index",
"dependencies": {
"@thumbmarkjs/thumbmarkjs": "^1.8.1",
"gifuct-js": "^2.1.2",
"howler": "^2.2.4",
"pako": "^2.1.0",
"pixi-filters": "^6.1.5",
"pixi.js": "^8.18.1"
},
"devDependencies": {
"@eslint/js": "^9.13.0",
"@rollup/plugin-typescript": "^11.1.6",
"@types/howler": "^2.2.11",
"@types/node": "^20.14.12",
"@types/pako": "^2.0.3",
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^9.8.0",
"jsdom": "^27.4.0",
"tslib": "^2.6.3",
"typescript": "~5.8.2",
"typescript-eslint": "^8.26.1",
"vite": "^8.0.10",
"vitest": "^4.1.5"
}
}