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

[pull] main from smithy-lang:main #214

Merged
merged 4 commits into from
Dec 27, 2023
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
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:integration": "yarn build-test-packages && turbo run test:integration",
"lint": "turbo run lint",
"lint-fix": "turbo run lint -- --fix",
"lint:pkgJson": "node scripts/check-dev-dependencies.js",
"lint:pkgJson": "node scripts/check-dependencies.js",
"format": "turbo run format --parallel",
"stage-release": "turbo run stage-release",
"extract:docs": "mkdir -p api-extractor-packages && turbo run extract:docs",
Expand Down
9 changes: 9 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 1.2.1

### Patch Changes

- Updated dependencies [164f3bbd]
- Updated dependencies [164f3bbd]
- @smithy/smithy-client@2.2.0
- @smithy/middleware-retry@2.0.25

## 1.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smithy/core",
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
Expand Down
7 changes: 7 additions & 0 deletions packages/experimental-identity-and-auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 0.0.30

### Patch Changes

- 164f3bbd: add missing dependency declarations
- @smithy/middleware-retry@2.0.25

## 0.0.29

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/experimental-identity-and-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smithy/experimental-identity-and-auth",
"version": "0.0.29",
"version": "0.0.30",
"scripts": {
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
Expand Down Expand Up @@ -30,6 +30,7 @@
"@smithy/protocol-http": "workspace:^",
"@smithy/signature-v4": "workspace:^",
"@smithy/types": "workspace:^",
"@smithy/util-middleware": "workspace:^",
"tslib": "^2.5.0"
},
"engines": {
Expand Down
8 changes: 8 additions & 0 deletions packages/middleware-retry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 2.0.25

### Patch Changes

- Updated dependencies [164f3bbd]
- Updated dependencies [164f3bbd]
- @smithy/smithy-client@2.2.0

## 2.0.24

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware-retry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smithy/middleware-retry",
"version": "2.0.24",
"version": "2.0.25",
"scripts": {
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
Expand Down
10 changes: 10 additions & 0 deletions packages/smithy-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## 2.2.0

### Minor Changes

- 164f3bbd: add Command classBuilder

### Patch Changes

- 164f3bbd: add missing dependency declarations

## 2.1.18

### Patch Changes
Expand Down
4 changes: 3 additions & 1 deletion packages/smithy-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smithy/smithy-client",
"version": "2.1.18",
"version": "2.2.0",
"scripts": {
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
"build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
Expand All @@ -23,7 +23,9 @@
},
"license": "Apache-2.0",
"dependencies": {
"@smithy/middleware-endpoint": "workspace:^",
"@smithy/middleware-stack": "workspace:^",
"@smithy/protocol-http": "workspace:^",
"@smithy/types": "workspace:^",
"@smithy/util-stream": "workspace:^",
"tslib": "^2.5.0"
Expand Down
38 changes: 38 additions & 0 deletions packages/smithy-client/src/command.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { Command } from "./command";

describe(Command.name, () => {
it("implements a classBuilder", async () => {
class MyCommand extends Command.classBuilder<any, any, any, any, any>()
.ep({
Endpoint: { type: "builtInParams", name: "Endpoint" },
})
.m(function () {
return [];
})
.s("SmithyMyClient", "SmithyMyOperation", {})
.n("MyClient", "MyCommand")
.f()
.ser(async (_) => _)
.de(async (_) => _)
.build() {}

const myCommand = new MyCommand({
Prop: "prop1",
});

expect(myCommand).toBeInstanceOf(Command);
expect(myCommand).toBeInstanceOf(MyCommand);
expect(MyCommand.getEndpointParameterInstructions()).toEqual({
Endpoint: { type: "builtInParams", name: "Endpoint" },
});
expect(myCommand.input).toEqual({
Prop: "prop1",
});

// private method exists for compatibility
expect((myCommand as any).serialize).toBeDefined();

// private method exists for compatibility
expect((myCommand as any).deserialize).toBeDefined();
});
});
Loading
Loading