@macpaw/ai-sdk 1.0.0-rc.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +83 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,91 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 1.0.0 (2026-04-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add missing @esbuild/win32-x64 lockfile snapshot after merge ([d10abb6](https://github.com/MacPaw/ai-sdk-typescript/commit/d10abb6b9ba0be79dfcd2c725310724ed5feb313))
|
|
7
|
+
* adjust test coverage command based on Node version ([10817d3](https://github.com/MacPaw/ai-sdk-typescript/commit/10817d3554fc0555a55fb65a835744ae9f4d0010))
|
|
8
|
+
* enhance CI workflow to output package metrics in a structured format for better readability ([9fb5be2](https://github.com/MacPaw/ai-sdk-typescript/commit/9fb5be279815fce2987703265a89ee0a94e2704a))
|
|
9
|
+
* enhance error handling for OpenAI API responses by adding status code checks for authentication and rate limit errors ([18f42f2](https://github.com/MacPaw/ai-sdk-typescript/commit/18f42f27f593d1d8453451849088880ed0686ebe))
|
|
10
|
+
* ensure newline at end of file in core index export ([0be9278](https://github.com/MacPaw/ai-sdk-typescript/commit/0be9278b90e5b3fb8abfc7307833a7b4da868b61))
|
|
11
|
+
* improve CI workflow to parse and display package metrics in a structured table format ([54c916f](https://github.com/MacPaw/ai-sdk-typescript/commit/54c916f06141d9fd075fe8522d024ea3a423f57a))
|
|
12
|
+
* remove NPM_TOKEN and NODE_AUTH_TOKEN from release workflow ([d5d7607](https://github.com/MacPaw/ai-sdk-typescript/commit/d5d76079aa5f530816f94e2001afbac2b57c690d))
|
|
13
|
+
* update chat completion stream test to avoid unused variable warning and refine content type validation in fetch implementation ([ccf272c](https://github.com/MacPaw/ai-sdk-typescript/commit/ccf272c1b05e30acc7dd5ba45d563a9617318976))
|
|
14
|
+
* update copyright holder in LICENSE file from MacPaw Inc. to MacPaw Way Ltd. ([e7d4535](https://github.com/MacPaw/ai-sdk-typescript/commit/e7d453559ca88b82750b2a4cedffabd50e0f0b63))
|
|
15
|
+
* update ESLint configuration to include 'scripts/' directory in ignores list ([b5923ce](https://github.com/MacPaw/ai-sdk-typescript/commit/b5923cedcb2643bc4a41275ec983e20fa8ca7f8d))
|
|
16
|
+
* update import path for AIGatewayModule in README to reflect correct package structure ([9e35931](https://github.com/MacPaw/ai-sdk-typescript/commit/9e35931b0c37c7344a2e64220a045f91749b510c))
|
|
17
|
+
* update repository URLs to use correct casing and remove GitHub release configuration ([647ca08](https://github.com/MacPaw/ai-sdk-typescript/commit/647ca08e93fa4f2bf0a8fba394655c30d05a731c))
|
|
18
|
+
* update tsconfig.json to exclude test files from compilation ([c025e98](https://github.com/MacPaw/ai-sdk-typescript/commit/c025e98c2f6643fb18e6a3a236c5a80fcdcbf765))
|
|
2
19
|
|
|
3
20
|
|
|
4
21
|
### Features
|
|
5
22
|
|
|
23
|
+
* add .gitignore file to exclude build artifacts, logs, and IDE configurations ([5946374](https://github.com/MacPaw/ai-sdk-typescript/commit/59463747dc875aae6f10eb70feef51ea1cb1c46a))
|
|
24
|
+
* add .nvmrc and CONTRIBUTING.md files for project setup and contribution guidelines ([9ceb9d6](https://github.com/MacPaw/ai-sdk-typescript/commit/9ceb9d69037c84e571feee48d4402cc22eb49cd5))
|
|
25
|
+
* add @vitest/coverage-v8 dependency to package.json and update pnpm-lock.yaml ([ef36590](https://github.com/MacPaw/ai-sdk-typescript/commit/ef3659022e03f0b14ccbbdc7295e3b52d829b303))
|
|
26
|
+
* add AIGatewayExceptionFilter for structured error handling in NestJS ([9652fb4](https://github.com/MacPaw/ai-sdk-typescript/commit/9652fb46786a53dccf3eaa219ec45109846c0f91))
|
|
27
|
+
* add Audio API facade for transcriptions and translations with request validation ([06f818c](https://github.com/MacPaw/ai-sdk-typescript/commit/06f818c12e34a0505b2605a88d75e00ea3d994cc))
|
|
28
|
+
* add client-side request validation with specific validation functions for various request types ([8616e43](https://github.com/MacPaw/ai-sdk-typescript/commit/8616e4316292146fd2b5eec78e4a87061dd4dff5))
|
|
29
|
+
* add compatibility check document for SDK and AI Gateway BFF ([a231005](https://github.com/MacPaw/ai-sdk-typescript/commit/a231005e06c050d0e18ffcf259ce4945125623ac))
|
|
30
|
+
* add comprehensive mock testing utilities for AIGatewayClient, including mock functions, data, streams, and transport handling ([941fb68](https://github.com/MacPaw/ai-sdk-typescript/commit/941fb6819653455bd21f4df5c8a785770716f9fc))
|
|
31
|
+
* add comprehensive test coverage for core functionalities including configuration resolution, error handling, request processing, and streaming results ([6a4300b](https://github.com/MacPaw/ai-sdk-typescript/commit/6a4300b45a1e8308c96a003da7a2fed020d59f2c))
|
|
32
|
+
* add comprehensive test suite for AI Gateway SDK, covering client, audio, chat, embeddings, images, models, responses, and error handling ([4b5a464](https://github.com/MacPaw/ai-sdk-typescript/commit/4b5a46419f776be6e8498a5fcbc772f85b8b4b21))
|
|
33
|
+
* add configurable fetch transport for browser and Node 18 plus with request signal management ([335712d](https://github.com/MacPaw/ai-sdk-typescript/commit/335712d81f5d6a48bc1c8ca7729898a7b0fafa5a))
|
|
34
|
+
* add configuration types and default settings for AI Gateway SDK client ([00ece89](https://github.com/MacPaw/ai-sdk-typescript/commit/00ece89cbc9d091961394715a9e16aef79a16e00))
|
|
35
|
+
* add core types for AI Gateway SDK including error codes, request/response structures, and chat completion interfaces ([3a0234e](https://github.com/MacPaw/ai-sdk-typescript/commit/3a0234eb6ec5acc89683ff34b59f0d82dd03b0bc))
|
|
36
|
+
* add createAIGatewayFetch function for custom fetch handling with Bearer auth ([d4339ff](https://github.com/MacPaw/ai-sdk-typescript/commit/d4339ffd3664f4c236faeb286de7ffe5d6b3f10a))
|
|
37
|
+
* add empty module files for core, nestjs, and provider directories ([757ac03](https://github.com/MacPaw/ai-sdk-typescript/commit/757ac03cf7898328b2101a45ac57c00022e67ff5))
|
|
38
|
+
* add ESLint configuration for TypeScript support ([9d62474](https://github.com/MacPaw/ai-sdk-typescript/commit/9d624748c658ce5a5ad9c06722ea5125fd53eecd))
|
|
39
|
+
* add helper functions and stream result objects for chat and response processing ([cddb5ee](https://github.com/MacPaw/ai-sdk-typescript/commit/cddb5eee83212117d5df389e4c396fefedd187eb))
|
|
40
|
+
* add Images API facade for image generation and editing with request validation ([5f07d3d](https://github.com/MacPaw/ai-sdk-typescript/commit/5f07d3d988c7bc707add261a29face721ef1a9ec))
|
|
41
|
+
* add initial project configuration files including .npmignore, .prettierrc, .releaserc.json, and build configurations for TypeScript and Vitest ([67c1b9d](https://github.com/MacPaw/ai-sdk-typescript/commit/67c1b9dfe57a5b5145b40453b8e835fae5ab558a))
|
|
42
|
+
* add InjectAIGateway decorator for dependency injection of AIGatewayClient ([f8e6dee](https://github.com/MacPaw/ai-sdk-typescript/commit/f8e6dee5e66d3c47ebdf4859376b0faa570bdad8))
|
|
43
|
+
* add integration instructions for AI Gateway SDK, including detailed setup for Cursor, Claude Code, and OpenAI Codex ([c943e21](https://github.com/MacPaw/ai-sdk-typescript/commit/c943e21a22f5b91719d69da893a52bfce52a2f21))
|
|
44
|
+
* add issue templates for bug reports and feature requests to improve issue tracking ([07a60cb](https://github.com/MacPaw/ai-sdk-typescript/commit/07a60cb2781445230dca1c1397630141cb8aa87f))
|
|
45
|
+
* add Model Info API facade for retrieving model information with optional parameters ([e890be8](https://github.com/MacPaw/ai-sdk-typescript/commit/e890be8ff67f28a141199c55950758f9defe2019))
|
|
46
|
+
* add package.json ([7fe1503](https://github.com/MacPaw/ai-sdk-typescript/commit/7fe15030df15e6648bc90a52476c8b7f3ae909a2))
|
|
47
|
+
* add pnpm lockfile for dependency management ([2da29ae](https://github.com/MacPaw/ai-sdk-typescript/commit/2da29aea8e5c589fad1b76d25639f9a8be67fd64))
|
|
48
|
+
* add Responses API facade with support for synchronous and streaming response creation ([ee287c3](https://github.com/MacPaw/ai-sdk-typescript/commit/ee287c31b91060ae3182a6dd83538c270e0210e1))
|
|
49
|
+
* add runtime module and enhance provider flexibility with new source resolution for AI Gateway SDK ([894d63d](https://github.com/MacPaw/ai-sdk-typescript/commit/894d63dd47b271480d137aa6501c0a4e21069df3))
|
|
50
|
+
* add SECURITY.md file to outline security policy and vulnerability reporting process ([01236c3](https://github.com/MacPaw/ai-sdk-typescript/commit/01236c34fbc4881e04550bc5f7367305789586f7))
|
|
51
|
+
* add setup script for Cursor skill and update README with usage instructions ([61acf79](https://github.com/MacPaw/ai-sdk-typescript/commit/61acf7943b7440d229177d6198fb9ecb873d2828))
|
|
52
|
+
* add src/index.ts as the main entry point for the application ([226f28a](https://github.com/MacPaw/ai-sdk-typescript/commit/226f28a08835637ae581e5fb3946eec556a725d3))
|
|
53
|
+
* add support for testing module in package.json and tsup configuration ([5a7245e](https://github.com/MacPaw/ai-sdk-typescript/commit/5a7245ebce61d2f6a742052ed3cd3f6a41340177))
|
|
54
|
+
* add tests for X-Request-ID handling and Retry-After header parsing, enhance retry logic with abort signal support ([7d432e4](https://github.com/MacPaw/ai-sdk-typescript/commit/7d432e487faf733230102c85f95a255b8235db30))
|
|
55
|
+
* add TypeScript configuration file ([ed292e4](https://github.com/MacPaw/ai-sdk-typescript/commit/ed292e48936669d0de129ff100d91b3211ef20fb))
|
|
56
|
+
* centralize API path constants for audio, chat, embeddings, images, models, and responses ([0502abc](https://github.com/MacPaw/ai-sdk-typescript/commit/0502abce67a1920901f5a70bad0713e7089b9850))
|
|
57
|
+
* consolidate exports in core index file for improved module accessibility ([d3ecdef](https://github.com/MacPaw/ai-sdk-typescript/commit/d3ecdef5a4eed7424c370c09a3deda0d3149242d))
|
|
58
|
+
* consolidate setup scripts for AI Gateway integration, replacing setup-cursor with a unified setup script for Cursor, Claude Code, and OpenAI Codex; update README and add new templates for documentation ([5951d9d](https://github.com/MacPaw/ai-sdk-typescript/commit/5951d9d7f27edbac5af2ad9835155c15d81cdc0f))
|
|
59
|
+
* enable code splitting in build configuration and enhance token fetching logic to handle forced refreshes correctly ([943a4a8](https://github.com/MacPaw/ai-sdk-typescript/commit/943a4a8c9fdf351f4294a456a46cbc7e37ed3f68))
|
|
60
|
+
* enable passWithNoTests option in Vitest configuration ([13b4cf4](https://github.com/MacPaw/ai-sdk-typescript/commit/13b4cf4fe9b24628f28f76b802378192543d705a))
|
|
61
|
+
* enhance AI Gateway integration documentation with automatic workflow steps and migration guidance ([cdb1a97](https://github.com/MacPaw/ai-sdk-typescript/commit/cdb1a9745b7fc458891304640637a51703ba5e4c))
|
|
62
|
+
* enhance AIGatewayExceptionFilter and AIGatewayModule with additional metadata handling and global configuration option ([bad042e](https://github.com/MacPaw/ai-sdk-typescript/commit/bad042e5b0facd3993344ff986d3f8c4805ada55))
|
|
63
|
+
* enhance AIGatewayFetch and request handling with new URL joining and gateway URL validation functions, improve token caching logic, and add sensitive header redaction for improved security ([aa3d185](https://github.com/MacPaw/ai-sdk-typescript/commit/aa3d185d1ffbd94d1c628de84e35cd3cb86af21a))
|
|
64
|
+
* enhance provider flexibility by allowing lazy factory options for AIGateway and OpenAI providers, improving source resolution and caching mechanisms ([c0adf05](https://github.com/MacPaw/ai-sdk-typescript/commit/c0adf0537d001ee5e250e5f7d80f5a9f0844906a))
|
|
65
|
+
* enhance SSE error handling and improve chat completion request structure ([044d17f](https://github.com/MacPaw/ai-sdk-typescript/commit/044d17f3314cfac2bbcfaed94ffa69880f2158e9))
|
|
66
|
+
* enhance validation for response requests and improve fetch implementation to prevent token leakage ([0b94aa4](https://github.com/MacPaw/ai-sdk-typescript/commit/0b94aa4fe2e97184fbafcc751a3bcebda9c47cf0))
|
|
67
|
+
* export AIGateway components and types for improved module integration ([c69b00a](https://github.com/MacPaw/ai-sdk-typescript/commit/c69b00a86d7817e171f24d928607ee9058645eab))
|
|
68
|
+
* export anySignal function from abort module for signal handling ([91e710a](https://github.com/MacPaw/ai-sdk-typescript/commit/91e710a1d949112bdc87cafc6ec3ca942555850f))
|
|
69
|
+
* implement AI Gateway client with API facades for chat ([110e24a](https://github.com/MacPaw/ai-sdk-typescript/commit/110e24a0485b65440d1bad19ba5b781b537350cc))
|
|
70
|
+
* implement AIGatewayModule with static and async configuration options for AI Gateway client ([831b352](https://github.com/MacPaw/ai-sdk-typescript/commit/831b352696bd5bea355c2d4986df15102ccae101))
|
|
71
|
+
* implement Chat Completions API facade with synchronous and streaming request handling ([746a8cc](https://github.com/MacPaw/ai-sdk-typescript/commit/746a8cc27a42153bae25d8a3a51fb0e71875ae0c))
|
|
72
|
+
* implement error normalization layer for AI Gateway SDK with specific error subclasses ([3d02644](https://github.com/MacPaw/ai-sdk-typescript/commit/3d02644a2af552bce766c187844d6b95c1a016f4))
|
|
73
|
+
* implement mock testing utilities for AIGatewayClient, including mock functions, data, and transport ([faaa77c](https://github.com/MacPaw/ai-sdk-typescript/commit/faaa77cfeb387ede552d08c1460cb523c7bae75a))
|
|
74
|
+
* implement SSE parser for streaming responses with error handling and JSON parsing ([4839879](https://github.com/MacPaw/ai-sdk-typescript/commit/4839879dcf5acc155d35fb3d2be2dfbfd16599fe))
|
|
75
|
+
* improve error handling for SSE streams and enhance content type validation in audio, chat, and response APIs ([89b3204](https://github.com/MacPaw/ai-sdk-typescript/commit/89b3204d5c9cebe5df293f2d84c3f4bbd762b22e))
|
|
76
|
+
* integrate API path management into mock configurations across audio, chat, embeddings, images, models, responses, and core request tests ([a9ffde0](https://github.com/MacPaw/ai-sdk-typescript/commit/a9ffde09db0a761b17f437a79bec5eff26be1826))
|
|
77
|
+
* introduce AI Gateway client with comprehensive API facades for chat, responses, embeddings, images, and audio, along with configuration and request handling improvements ([943305e](https://github.com/MacPaw/ai-sdk-typescript/commit/943305e6723ab02dc737802502d588d90cc1acc3))
|
|
78
|
+
* introduce AIGatewayProvider for Vercel AI SDK integration with AI Gateway authentication and error handling ([604c127](https://github.com/MacPaw/ai-sdk-typescript/commit/604c127bcb0865b60c060f9a745de896ca139e95))
|
|
79
|
+
* introduce API path constants and enhance request transport handling ([d9c5d1f](https://github.com/MacPaw/ai-sdk-typescript/commit/d9c5d1f8b7d9f340b3ea8bd5d872f0eb3ac473a3))
|
|
80
|
+
* introduce API versioning and path management, refactor API calls to utilize dynamic paths ([d7202c6](https://github.com/MacPaw/ai-sdk-typescript/commit/d7202c6c0bcc4ed38cf0454def6ef7f24d6abf22))
|
|
81
|
+
* introduce Embeddings API facade for creating embeddings with request validation ([d3eeddf](https://github.com/MacPaw/ai-sdk-typescript/commit/d3eeddfecea6b8f7d0ef766b3b9d93377a88448b))
|
|
82
|
+
* refactor import statements to remove file extensions and add request handling with retry logic ([9f99aea](https://github.com/MacPaw/ai-sdk-typescript/commit/9f99aeae9cf6c28cab3bfbb88180df9c1eeef319))
|
|
83
|
+
* refine AI Gateway integration documentation to clarify import practices for model providers ([7f70a7c](https://github.com/MacPaw/ai-sdk-typescript/commit/7f70a7cf63667b972d805545fc9c51d3f5b23651))
|
|
84
|
+
* update AI Gateway integration documentation to clarify import guidelines for model providers and React hooks; emphasize usage of `@macpaw/ai/provider` and `ai/react` for improved setup and common mistakes ([8449ed2](https://github.com/MacPaw/ai-sdk-typescript/commit/8449ed2d7447fe2fcfff809873fe03c872b97a3b))
|
|
85
|
+
* update dependencies and enhance AIGatewayProvider with built-in OpenAI support ([8a528bf](https://github.com/MacPaw/ai-sdk-typescript/commit/8a528bfa62403341d57374fa69e5d984a21a24f7))
|
|
86
|
+
* update import paths ([934939f](https://github.com/MacPaw/ai-sdk-typescript/commit/934939f758fac83bb202e9f2be3f513cdab5aa62))
|
|
6
87
|
* update Node.js version in release workflow and enhance tool version visibility ([a86be3a](https://github.com/MacPaw/ai-sdk-typescript/commit/a86be3a06107e92af665a1bcbb1303730f3a5f56))
|
|
88
|
+
* update README to reflect new SDK name and comprehensive features for @macpaw/ai ([1913a75](https://github.com/MacPaw/ai-sdk-typescript/commit/1913a7586784e213c9edea8d025a71831869c17b))
|
|
7
89
|
|
|
8
90
|
# @macpaw/ai-sdk
|
|
9
91
|
|