Conversation
The React getting started pages were removed in 2e439ab because they were outdated, which left /sdk/js/7/getting-started/react/* answering a 404 to every inbound link (#590). They are restored here, rewritten against a current stack: - Vite instead of create-react-app, Node 20 instead of Node 8 - function components and hooks instead of class components - Redux Toolkit instead of hand-written actions/reducers + redux-saga - the realtime subscription is opened before the history is fetched and is closed on unmount, so no message is lost and Strict Mode does not leak a room Snippets are plain files, like the node-js and raw-web pages, instead of symlinks into a full CRA application with its own Cypress suite. react-native is deliberately left out. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…started docs(getting-started): restore the React getting started, modernized
The types of src/types (JSONObject, KDocument*, RequestPayload / ResponsePayload, Notification, mappings, security definitions, m* requests and responses...) now come from kuzzle-types, the types-only package the server and the SDK share (Kuzzle ADR-0002 step 03). Every file of src/types stays, as a type re-export under the same names, so deep imports keep working. Document stays here: it is a class, a runtime value, which kuzzle-types declares as an interface. DocumentHit, which extends it, stays too. Not breaking: the 139 exported names and their kinds are unchanged, the 27 runtime exports are unchanged, and each contract type is identical to kuzzle-sdk 7.17.1's (Document included). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…anged test/types/kuzzle-types.ts, type-checked in strict mode against the built declarations by `npm run test:types` (run in the unit-tests CI action after the build): every contract type is still exported, identical to kuzzle-types' — which asserts they are kuzzle-sdk 7.17.1's. Checked it bites. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat: take the API contract types from kuzzle-types
kuzzle-types 1.0.0 is published (kuzzleio/types#3): no prerelease runtime dependency in the SDK's next stable release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build: depend on the stable kuzzle-types ^1.0.0
Contributor
|
🎉 This PR is included in version 7.18.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Merged
Contributor
|
🎉 This PR is included in version 7.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Beta of the SDK with its API contract types taken from
kuzzle-types1.0.0 (Kuzzle ADR-0002 step 03).Once validated, straight to the stable release (beta → master).
🤖 Generated with Claude Code