Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency @anthropic-ai/sdk to v0.24.2 #152

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 3, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@anthropic-ai/sdk 0.24.0 -> 0.24.2 age adoption passing confidence

Release Notes

anthropics/anthropic-sdk-typescript (@​anthropic-ai/sdk)

v0.24.2

Full Changelog: sdk-v0.24.1...sdk-v0.24.2

Bug Fixes
  • partial-json: don't error on unknown tokens (d212ce1)
  • partial-json: handle null token properly (f53742f)
Chores

v0.24.1

Full Changelog: sdk-v0.24.0...sdk-v0.24.1

Bug Fixes
Chores

Configuration

📅 Schedule: Branch creation - "* 0-4 * * 3" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Copy link

github-actions bot commented Jul 3, 2024

anthropic debug - [puLL-Merge] - anthropics/anthropic-sdk-typescript@sdk-v0.24.0..sdk-v0.24.2

Description

This PR includes multiple updates and bug fixes across the Anthropic SDK TypeScript repository. The changes span version updates, bug fixes in partial JSON parsing, updates to dependencies, and additions to the test suite.

Changes

Changes

  1. .gitignore:

    • Added .prism.log to the ignored files.
  2. .release-please-manifest.json:

    • Updated version numbers for the main package and the bedrock-sdk.
  3. .stats.yml:

    • Updated the openapi_spec_url.
  4. CHANGELOG.md:

    • Added entries for versions 0.24.2 and 0.24.1, detailing bug fixes and chores.
  5. package.json:

    • Updated the version to 0.24.2.
  6. packages/bedrock-sdk/:

    • Updated CHANGELOG.md and package.json for version 0.24.1.
    • In auth.ts, replaced some AWS SDK imports with Smithy imports.
  7. src/_vendor/partial-json-parser/parser.ts:

    • Modified the tokenization logic to handle 'null' values and unknown tokens more gracefully.
  8. src/index.ts, src/resources/completions.ts, src/resources/messages.ts:

    • Minor refactoring and import adjustments.
  9. src/resources/messages.ts:

    • Updated the ToolResultBlockParam interface to allow string content.
  10. src/version.ts:

    • Updated the VERSION constant to '0.24.2'.
  11. tests/lib/partial-json.test.ts:

    • Added new unit tests for the partial JSON parser.
  12. tests/stringifyQuery.test.ts:

    • Updated import statement and minor adjustments to the test suite.

Possible Issues

No major non-security issues are apparent in this PR.

Security Hotspots

There are no obvious security vulnerabilities introduced in this PR. The changes primarily focus on bug fixes, dependency updates, and test improvements.

Copy link

github-actions bot commented Jul 3, 2024

openai debug - [puLL-Merge] - anthropics/anthropic-sdk-typescript@sdk-v0.24.0..sdk-v0.24.2

Description

This PR includes various updates to the Anthropic SDK TypeScript codebase. It involves version bumps, updating dependencies, fixing bugs, adding tests, and documentation. The main motivation behind these changes seems to be keeping dependencies up to date, improving error handling, and increasing test coverage.

Changes

Changes

  1. .gitignore:

    • Added +.prism.log to ignore list.
  2. .release-please-manifest.json:

    • Version updates for the main package and bedrock-sdk.
  3. .stats.yml:

    • Updated openapi_spec_url to a new OpenAPI spec URL.
  4. CHANGELOG.md:

    • Added release notes for version 0.24.2.
  5. package.json:

    • Bumped main package version from 0.24.0 to 0.24.2.
  6. packages/bedrock-sdk/CHANGELOG.md:

    • Added release notes for 0.10.1.
  7. packages/bedrock-sdk/package.json:

    • Bumped version from 0.10.0 to 0.10.1.
    • Replaced deprecated aws-sdk packages with smithy packages.
  8. packages/bedrock-sdk/src/auth.ts:

    • Updated imports to use smithy packages instead of aws-sdk.
  9. src/_vendor/partial-json-parser/parser.ts:

    • Improved handling of null token in JSON parsing.
    • Gracefully handle unknown tokens.
  10. src/index.ts:

    • Minor reformatting and reordering of imports.
  11. src/resources/completions.ts:

    • Reordered imports.
  12. src/resources/messages.ts:

    • Reordered imports and adjusted ToolResultBlockParam type.
  13. src/version.ts:

    • Updated version constant to 0.24.2.
  14. tests/lib/partial-json.test.ts:

    • Added new test suite for partialParse function with various test cases.
  15. tests/stringifyQuery.test.ts:

    • Changed import to use Anthropic class.
    • Added a test case for stringifyQuery.

Security Hotspots

None identified.

Possible Issues

  1. Graceful Handling of Unknown Tokens (in partial-json-parser/parser.ts):

    • Skipping over unknown tokens may mask underlying issues in the JSON structure that should be caught and handled. This could lead to silent failures or harder-to-debug issues later on.
  2. Reordering Imports (in various files):

    • Check for any unintended side effects due to reordering imports, especially if some imports have side effects.

Copy link

github-actions bot commented Jul 3, 2024

bedrock debug - [puLL-Merge] - anthropics/anthropic-sdk-typescript@sdk-v0.24.0..sdk-v0.24.2

Description

This PR updates the Anthropic TypeScript SDK to version 0.24.2. It includes several bug fixes, chores, and dependency updates.

Changes

Changes

  • .gitignore: Add .prism.log to gitignore file
  • .release-please-manifest.json: Bump version numbers for main SDK and bedrock-sdk packages
  • .stats.yml: Update OpenAPI spec URL
  • CHANGELOG.md: Add changelog entries for 0.24.2 and 0.24.1 releases
  • package.json: Bump SDK version to 0.24.2
  • packages/bedrock-sdk/CHANGELOG.md: Add changelog entry for bedrock-sdk 0.10.1
  • packages/bedrock-sdk/package.json: Bump bedrock-sdk version to 0.10.1
  • packages/bedrock-sdk/src/auth.ts: Replace deprecated aws-sdk packages with @smithy equivalents
  • src/_vendor/partial-json-parser/parser.ts:
    • Don't error on unknown tokens, just skip them
    • Handle null token properly
  • src/index.ts: Minor import reordering
  • src/resources/completions.ts: Minor import reordering
  • src/resources/messages.ts:
    • Minor import reordering
    • Add string type to content field of ToolResultBlockParam interface
  • src/version.ts: Update version string to 0.24.2
  • tests/lib/partial-json.test.ts: Add new unit tests for partial JSON parser
  • tests/stringifyQuery.test.ts: Update import to use main SDK entrypoint

Possible Issues

The changes to the partial JSON parser could potentially have unintended side effects if the parser is used in ways not covered by the new unit tests. The parser will now silently ignore unknown tokens instead of erroring.

@thypon thypon merged commit 8045a1a into main Jul 3, 2024
8 checks passed
@thypon thypon deleted the renovate/anthropic-ai-sdk-0.x branch July 3, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant