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.25.0 #165

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 7, 2024

Mend Renovate

This PR contains the following updates:

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

Release Notes

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

v0.25.0

Full Changelog: sdk-v0.24.3...sdk-v0.25.0

Features
  • add back compat alias for InputJsonDelta (8b08161)
  • client: make request-id header more accessible (#​462) (5ea6f8b)
Bug Fixes
Chores
Refactors
  • extract model out to a named type and rename partialjson (#​477) (d2d4e36)

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 was generated by Mend Renovate. View the repository job log.

Copy link

github-actions bot commented Aug 7, 2024

openai debug - [puLL-Merge] - anthropics/anthropic-sdk-typescript@sdk-v0.24.3..sdk-v0.25.0

Description

This pull request introduces several enhancements, bug fixes, and refactorings across various parts of the anthropic-sdk-typescript project. The major changes include renaming variables for consistency, improving documentation, modifying the CI workflow, and upgrading dependencies. The motivation for this PR seems to be to improve code quality, update documentation, and ensure the package is up-to-date.

Possible Issues

  • None

Security Hotspots

  • None
Changes

Changes

.github/workflows/ci.yml

  • Added the next branch to the workflow trigger configuration to also run CI workflows for PRs targeting the next branch.

.release-please-manifest.json

  • Updated the version information for the SDK and its packages.

.stats.yml

  • Updated the OpenAPI specification URL.

CHANGELOG.md

  • Added a new section for version 0.25.0 detailing new features, bug fixes, chores, and refactors.

README.md

  • Renamed instances of anthropic to client for consistent client naming.
  • Improved readability of the documentation links.
  • Added a warning about web browser runtimes not being supported.

api.md

  • Renamed InputJsonDelta to InputJSONDelta.
  • Added Model type to the types list.

package.json

  • Bumped the package version from 0.24.3 to 0.25.0.
  • Removed web-streams-polyfill from dependencies.

packages/bedrock-sdk/CHANGELOG.md

  • Added a new section for version 0.10.2 detailing internal changes.

packages/bedrock-sdk/README.md

  • Renamed instances of anthropic to client.

packages/bedrock-sdk/package.json

  • Bumped the package version from 0.10.1 to 0.10.2.
  • Updated test script to provide a placeholder message.

packages/bedrock-sdk/src/streaming.ts

  • Renamed events from completion to chunk for internal SSE parsing.

packages/vertex-sdk/CHANGELOG.md

  • Added a new section for version 0.4.1 detailing internal changes.

packages/vertex-sdk/package.json

  • Bumped the package version from 0.4.0 to 0.4.1.
  • Updated test script to provide a placeholder message.

scripts/mock

  • Switched from @stoplight/prism-cli to @stainless-api/prism-cli.

src/_shims/node-runtime.ts

  • Switched from web-streams-polyfill to node:stream/web.

src/error.ts

  • Added request_id attribute to APIError class.

src/index.ts

  • Added a check to throw an error if running in a browser-like environment.
  • Exposed a DEFAULT_TIMEOUT constant.

src/resource.ts

  • Corrected import paths for core modules.

src/resources/completions.ts

  • Renamed core module imports and added Model type references.

src/resources/index.ts

  • Added default and renamed import for InputJSONDelta.
  • Added Model type to exports.

src/resources/messages.ts

  • Made similar changes as in completions.ts with regard to imports and Model type references.

src/version.ts

  • Bumped the version to 0.25.0.

tests/api-resources/completions.test.ts, tests/api-resources/messages.test.ts

  • Renamed instances of anthropic to client for consistency in test files.

Copy link

github-actions bot commented Aug 7, 2024

anthropic debug - [puLL-Merge] - anthropics/anthropic-sdk-typescript@sdk-v0.24.3..sdk-v0.25.0

Description

This PR introduces several updates and improvements to the Anthropic TypeScript SDK. It includes version bumps, documentation updates, code refactoring, and minor feature additions.

Changes

Changes

  1. .github/workflows/ci.yml:

    • Added 'next' branch to the CI workflow triggers.
  2. .release-please-manifest.json:

    • Updated version numbers for the main SDK and sub-packages.
  3. .stats.yml:

    • Updated the OpenAPI spec URL.
  4. CHANGELOG.md:

    • Added changelog entries for version 0.25.0, including new features, bug fixes, and various chores.
  5. README.md:

    • Updated documentation, including renaming anthropic to client in examples.
    • Added a warning about lack of support for web browser runtimes.
  6. api.md:

    • Updated type definitions, including renaming InputJsonDelta to InputJSONDelta.
  7. package.json:

    • Bumped version to 0.25.0.
    • Removed web-streams-polyfill dependency.
  8. src/:

    • Various updates across multiple files, including:
      • Refactoring import statements to use relative paths.
      • Adding a browser runtime check to prevent usage in browser environments.
      • Updating type definitions and adding new types.
      • Minor changes to error handling and timeout configuration.
  9. scripts/mock:

    • Updated the Prism CLI package used for mocking.
  10. tests/:

    • Updated test files to use client instead of anthropic.

Possible Issues

  • The removal of the web-streams-polyfill dependency might affect compatibility with certain environments. However, this change seems intentional as the SDK is not meant for browser use.

Security Hotspots

No significant security issues were identified in this PR.

Copy link

github-actions bot commented Aug 7, 2024

bedrock debug - [puLL-Merge] - anthropics/anthropic-sdk-typescript@sdk-v0.24.3..sdk-v0.25.0

Description

This PR makes several improvements and fixes to the Anthropic TypeScript SDK, including:

  • Removing an unnecessary polyfill for ReadableStream that is redundant since Node v16
  • Using relative import paths instead of package-scoped paths
  • Renaming the anthropic variable to client in examples and docs for clarity
  • Updating documentation and examples
  • Extracting model names to a Model type and renaming InputJsonDelta to InputJSONDelta
  • Syncing with the latest API spec
  • Updating the Prism mock server version used in tests
Changes

Changes

  • compat: remove ReadableStream polyfill that is redundant since Node v16 (75f5710)
  • Use relative import paths instead of package-scoped paths (a8ca93c)
  • bedrock: use chunk for internal SSE parsing instead of completion (0f6190a)
  • docs:
    • Fix incorrect client variable names (a247935)
    • Mention lack of support for web browser runtimes (968a7fb)
    • Minor formatting update to API link in README (50b9f2b)
    • Rename anthropic const to client (e1a7f9f)
    • Use client instead of package name in Node examples (8961ebf)
  • refactor: Extract model out to a named Model type and rename InputJsonDelta to InputJSONDelta (d2d4e36)
  • Sync with latest API spec (b493aa4)
  • tests: Update Prism mock server to v5.8.4 (6f21ecf)

Chores

  • ci: Also run workflows for PRs targeting next branch (cc405a8)
  • internal:
    • Add constant for default timeout of 10min (dc89753)
    • Minor test changes (c1fd563)
    • Remove old reference to check-test-server script (8dc9afc)

@thypon thypon merged commit 5b10fe4 into main Aug 8, 2024
8 checks passed
@thypon thypon deleted the renovate/anthropic-ai-sdk-0.x branch August 8, 2024 15:39
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