Skip to content

release: 0.1.0-alpha.3 #14

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

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
676a868
chore(internal): remove unused method (#13)
stainless-app[bot] Feb 13, 2025
a0b504c
chore(internal): codegen related update (#16)
stainless-app[bot] Feb 13, 2025
c41e942
chore(internal): update eslint config (#17)
stainless-app[bot] Feb 14, 2025
7d38d98
fix(client): fix export map for index exports, accept BunFile (#18)
stainless-app[bot] Feb 14, 2025
7f7be64
chore(internal): fix tests not always being type checked (#19)
stainless-app[bot] Feb 18, 2025
4818115
feat(client): improve logging (#20)
stainless-app[bot] Feb 22, 2025
bdccc24
chore(internal): fix devcontainers setup (#21)
stainless-app[bot] Feb 22, 2025
50b5b64
fix(internal): return in castToError instead of throwing (#22)
stainless-app[bot] Feb 22, 2025
43587fa
chore(internal): remove unnecessary todo (#23)
stainless-app[bot] Feb 22, 2025
8e0ab12
docs: update URLs from stainlessapi.com to stainless.com (#24)
stainless-app[bot] Feb 28, 2025
c5e8df8
chore(client): only accept standard types for file uploads (#25)
stainless-app[bot] Mar 4, 2025
ca13c87
chore(internal): fix tests failing on node v18 (#26)
stainless-app[bot] Mar 4, 2025
c5d034a
chore(internal): constrain synckit dev dependency (#27)
stainless-app[bot] Mar 4, 2025
2bc2cb6
fix(client): fix TypeError with undefined File (#28)
stainless-app[bot] Mar 4, 2025
313a6f7
fix(internal): clean up undefined File test (#29)
stainless-app[bot] Mar 4, 2025
8211340
fix(tests): manually reset node:buffer File (#30)
stainless-app[bot] Mar 4, 2025
4d59d92
chore(types): improved go to definition on fetchOptions (#31)
stainless-app[bot] Mar 5, 2025
71c7c33
chore(docs): improve docs for withResponse/asResponse (#32)
stainless-app[bot] Mar 5, 2025
27ce482
feat: add SKIP_BREW env var to ./scripts/bootstrap (#33)
stainless-app[bot] Mar 11, 2025
4d8f4ce
feat(client): accept RFC6838 JSON content types (#34)
stainless-app[bot] Mar 11, 2025
69a769b
chore(internal): remove extra empty newlines (#35)
stainless-app[bot] Mar 14, 2025
9861197
fix(internal): add mts file + crypto shim types (#36)
stainless-app[bot] Mar 15, 2025
9a5740b
chore(internal): minor client file refactoring (#37)
stainless-app[bot] Mar 19, 2025
989d3b5
chore(exports): cleaner resource index imports (#38)
stainless-app[bot] Mar 20, 2025
353feba
chore(exports): stop using path fallbacks (#39)
stainless-app[bot] Mar 20, 2025
e7ada47
codegen metadata
stainless-app[bot] Mar 27, 2025
7c40d45
chore(client): move misc public files to new `core/` directory, depre…
stainless-app[bot] Mar 27, 2025
a050b32
fix(client): send `X-Stainless-Timeout` in seconds (#41)
stainless-app[bot] Apr 3, 2025
2e1bebb
chore(internal): add aliases for Record and Array (#42)
stainless-app[bot] Apr 3, 2025
a39fa23
fix(api): improve type resolution when importing as a package (#43)
stainless-app[bot] Apr 4, 2025
c246dec
fix(mcp): remove unused tools.ts (#44)
stainless-app[bot] Apr 5, 2025
7b614cf
release: 0.1.0-alpha.3
stainless-app[bot] Apr 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(tests): manually reset node:buffer File (#30)
  • Loading branch information
stainless-app[bot] committed Mar 4, 2025
commit 82113405c05cefebce29191e8b810c287c763a82
12 changes: 8 additions & 4 deletions tests/uploads.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,25 @@ describe('toFile', () => {
});

describe('missing File error message', () => {
let prevFile: unknown;
let prevGlobalFile: unknown;
let prevNodeFile: unknown;
beforeEach(() => {
// The file shim captures the global File object when it's first imported.
// Reset modules before each test so we can test the error thrown when it's undefined.
jest.resetModules();
const buffer = require('node:buffer');
// @ts-ignore
prevFile = globalThis.File;
prevGlobalFile = globalThis.File;
prevNodeFile = buffer.File;
// @ts-ignore
globalThis.File = undefined;
require('node:buffer').File = undefined;
buffer.File = undefined;
});
afterEach(() => {
// Clean up
// @ts-ignore
globalThis.File = prevFile;
globalThis.File = prevGlobalFile;
require('node:buffer').File = prevNodeFile;
jest.resetModules();
});

Expand Down