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

release: 0.1.0-beta.8 #44

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-beta.7"
".": "0.1.0-beta.8"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.1.0-beta.8 (2025-01-15)

Full Changelog: [v0.1.0-beta.7...v0.1.0-beta.8](https://github.com/steel-dev/steel-node/compare/v0.1.0-beta.7...v0.1.0-beta.8)

### Bug Fixes

* **sessions:** remove conditional request options causing incorrect params ([3d524a7](https://github.com/steel-dev/steel-node/commit/3d524a7feb97babfe7a0c1d9b3dcde49a3eff91b))


### Chores

* **internal:** codegen related update ([#43](https://github.com/steel-dev/steel-node/issues/43)) ([b013f25](https://github.com/steel-dev/steel-node/commit/b013f25e7057674daf2038a6b7b66c1dd69ad54b))

## 0.1.0-beta.7 (2025-01-08)

Full Changelog: [v0.1.0-beta.6...v0.1.0-beta.7](https://github.com/steel-dev/steel-node/compare/v0.1.0-beta.6...v0.1.0-beta.7)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ await client.sessions.create({
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:

1. Changes that only affect static types, without breaking runtime behavior.
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals)_.
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
3. Changes that we do not expect to impact the vast majority of users in practice.

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "steel-sdk",
"version": "0.1.0-beta.7",
"version": "0.1.0-beta.8",
"description": "The official TypeScript library for the Steel API",
"author": "Steel <team@steel.dev>",
"types": "dist/index.d.ts",
Expand Down
10 changes: 1 addition & 9 deletions src/resources/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@ export class Sessions extends APIResource {
/**
* Creates a new session with the provided configuration.
*/
create(body?: SessionCreateParams, options?: Core.RequestOptions): Core.APIPromise<Session>;
create(options?: Core.RequestOptions): Core.APIPromise<Session>;
create(
body: SessionCreateParams | Core.RequestOptions = {},
options?: Core.RequestOptions,
): Core.APIPromise<Session> {
if (isRequestOptions(body)) {
return this.create({}, body);
}
create(body: SessionCreateParams = {}, options?: Core.RequestOptions): Core.APIPromise<Session> {
return this._client.post('/v1/sessions', { body, ...options });
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.1.0-beta.7'; // x-release-please-version
export const VERSION = '0.1.0-beta.8'; // x-release-please-version
7 changes: 0 additions & 7 deletions tests/api-resources/sessions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ describe('resource sessions', () => {
expect(dataAndResponse.response).toBe(rawResponse);
});

test('create: request options instead of params are passed correctly', async () => {
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
await expect(client.sessions.create({ path: '/_stainless_unknown_path' })).rejects.toThrow(
Steel.NotFoundError,
);
});

test('create: request options and params are passed correctly', async () => {
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
await expect(
Expand Down
Loading