feat: Node.js SDK update for version 22.0.2#139
Conversation
WalkthroughThis pull request downgrades the package version from 22.1.0 to 22.0.2, removes the entire Backups service implementation along with associated enums, types, and documentation examples, removes five Health service methods (queue billing and priority methods), adds an optional Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
docs/examples/databases/create-mediumtext-attribute.md (1)
11-18:⚠️ Potential issue | 🟡 MinorUse
xdefaultin the example to match the SDK parameter name.
defaultis not read by the SDK method, so the example won’t set a default value.📝 Suggested doc fix
- default: '<DEFAULT>', // optional + xdefault: '<DEFAULT>', // optional🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/examples/databases/create-mediumtext-attribute.md` around lines 11 - 18, Update the example call to databases.createMediumtextAttribute to use the SDK's actual default parameter name xdefault (instead of default) so the default value is applied; update the payload in the createMediumtextAttribute call to set xdefault: '<DEFAULT>' and ensure key is a non-empty placeholder (e.g., 'attribute_key') to avoid an invalid empty key.docs/examples/databases/create-longtext-attribute.md (1)
11-18:⚠️ Potential issue | 🟡 MinorUse
xdefaultin the example to match the SDK parameter name.
defaultis not read by the SDK method, so the example won’t set a default value.📝 Suggested doc fix
- default: '<DEFAULT>', // optional + xdefault: '<DEFAULT>', // optional🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/examples/databases/create-longtext-attribute.md` around lines 11 - 18, The example call to databases.createLongtextAttribute uses the wrong parameter name "default" which the SDK ignores; change the parameter to "xdefault" so the default value is actually passed to databases.createLongtextAttribute (update the example argument key from default to xdefault and leave the value string as before).
🧹 Nitpick comments (1)
package.json (1)
51-54: Consider documenting the intentional transitivebignumber.jsdependency.
src/client.ts(line 5) importsBigNumber from 'bignumber.js', which is no longer a direct dependency. This works becausejson-bigintpulls it in transitively (as a declared dependency). While this intentionally fixes the bundler conflict (documented in CHANGELOG), adding a comment near the import would clarify this design choice for future maintainers and reduce the risk of accidental breakage if the dependency tree changes.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@package.json` around lines 51 - 54, Add a short inline comment above the BigNumber import in src/client.ts explaining that BigNumber is intentionally consumed as a transitive dependency (import BigNumber from 'bignumber.js') that is provided via the json-bigint dependency declared in package.json, and reference the CHANGELOG note about this bundler conflict workaround so future maintainers understand this design choice and avoid accidentally adding/removing it.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@docs/examples/databases/create-longtext-attribute.md`:
- Around line 11-18: The example call to databases.createLongtextAttribute uses
the wrong parameter name "default" which the SDK ignores; change the parameter
to "xdefault" so the default value is actually passed to
databases.createLongtextAttribute (update the example argument key from default
to xdefault and leave the value string as before).
In `@docs/examples/databases/create-mediumtext-attribute.md`:
- Around line 11-18: Update the example call to
databases.createMediumtextAttribute to use the SDK's actual default parameter
name xdefault (instead of default) so the default value is applied; update the
payload in the createMediumtextAttribute call to set xdefault: '<DEFAULT>' and
ensure key is a non-empty placeholder (e.g., 'attribute_key') to avoid an
invalid empty key.
---
Nitpick comments:
In `@package.json`:
- Around line 51-54: Add a short inline comment above the BigNumber import in
src/client.ts explaining that BigNumber is intentionally consumed as a
transitive dependency (import BigNumber from 'bignumber.js') that is provided
via the json-bigint dependency declared in package.json, and reference the
CHANGELOG note about this bundler conflict workaround so future maintainers
understand this design choice and avoid accidentally adding/removing it.
This PR contains updates to the Node.js SDK for version 22.0.2.
Summary by CodeRabbit
Bug Fixes
New Features
Removed Features
Documentation