@vaadin/hilla-react-signals
Advanced tools
Comparing version 24.6.0 to 24.6.1
@@ -12,7 +12,2 @@ import { nanoid } from "nanoid"; | ||
constructor(value, onFirstSubscribe, onLastUnsubscribe) { | ||
if (!globalThis.Vaadin?.featureFlags?.fullstackSignals) { | ||
throw new Error( | ||
`The Hilla Fullstack Signals API is currently considered experimental and may change in the future. To use it you need to explicitly enable it in Copilot or by adding com.vaadin.experimental.fullstackSignals=true to vaadin-featureflags.properties` | ||
); | ||
} | ||
super(value); | ||
@@ -19,0 +14,0 @@ this.#onFirstSubscribe = onFirstSubscribe; |
@@ -37,3 +37,6 @@ import { CollectionSignal } from "./CollectionSignal.js"; | ||
if (!event.accepted) { | ||
this[$resolveOperation](event.id, "server rejected the operation"); | ||
this[$resolveOperation]( | ||
event.id, | ||
`Server rejected the operation with id '${event.id}'. See the server log for more details.` | ||
); | ||
return; | ||
@@ -40,0 +43,0 @@ } |
{ | ||
"name": "@vaadin/hilla-react-signals", | ||
"version": "24.6.0", | ||
"version": "24.6.1", | ||
"description": "Signals for Hilla React", | ||
@@ -49,11 +49,11 @@ "main": "index.js", | ||
"dependencies": { | ||
"@preact/signals-react": "^2.0.0", | ||
"@vaadin/hilla-frontend": "24.6.0", | ||
"@preact/signals-react": "^2.3.0", | ||
"@vaadin/hilla-frontend": "24.6.1", | ||
"nanoid": "^5.0.7" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18" | ||
"react": "^18", | ||
"react-dom": "^18" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4-fix.0", | ||
"@testing-library/dom": "^10.4.0", | ||
@@ -66,15 +66,17 @@ "@testing-library/react": "^16.1.0", | ||
"@types/mocha": "^10.0.2", | ||
"@types/react": "^18.2.23", | ||
"@types/sinon": "^10.0.17", | ||
"@types/sinon-chai": "^3.2.10", | ||
"@types/validator": "^13.11.2", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-dom": "^1.11.0", | ||
"chai-like": "^1.1.1", | ||
"karma": "^6.4.3", | ||
"@types/react": "^18.3.17", | ||
"@types/react-dom": "^18", | ||
"@types/sinon": "^10.0.20", | ||
"@types/sinon-chai": "^3.2.12", | ||
"@types/validator": "^13.12.2", | ||
"chai": "^5.1.2", | ||
"chai-as-promised": "^7.1.2", | ||
"chai-dom": "^1.12.0", | ||
"chai-like": "^1.1.3", | ||
"karma": "^6.4.4", | ||
"karma-viewport": "^1.0.9", | ||
"sinon": "^16.0.0", | ||
"sinon-chai": "^3.7.0", | ||
"typescript": "5.6.2" | ||
"typescript": "5.7.2" | ||
} | ||
} |
@@ -90,3 +90,3 @@ import { nanoid } from "nanoid"; | ||
} else { | ||
reason = "server rejected the operation"; | ||
reason = `Server rejected the operation with id '${event.id}'. See the server log for more details.`; | ||
} | ||
@@ -93,0 +93,0 @@ [record?.id, event.id].filter(Boolean).forEach((id) => this[$resolveOperation](id, reason)); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
85808
5
21
1021
+ Added@vaadin/hilla-frontend@24.6.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removed@vaadin/hilla-frontend@24.6.0(transitive)
Updated@preact/signals-react@^2.3.0