@smithy/eventstream-serde-universal 4.2.12 → 4.2.13

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/README.md CHANGED
@@ -3,8 +3,15 @@
3
3
  [![NPM version](https://img.shields.io/npm/v/@smithy/eventstream-serde-universal/latest.svg)](https://www.npmjs.com/package/@smithy/eventstream-serde-universal)
4
4
  [![NPM downloads](https://img.shields.io/npm/dm/@smithy/eventstream-serde-universal.svg)](https://www.npmjs.com/package/@smithy/eventstream-serde-universal)
5
5
 
6
- > An internal package
6
+ ### :warning: Internal API :warning:
7
7
 
8
- ## Usage
8
+ > This is an internal package.
9
+ > That means this is used as a dependency for other, public packages, but
10
+ > should not be taken directly as a dependency in your application's `package.json`.
9
11
 
10
- You probably shouldn't, at least directly.
12
+ > If you are updating the version of this package, for example to bring in a
13
+ > bug-fix, you should do so by updating your application lockfile with
14
+ > e.g. `npm up @scope/package` or equivalent command in another
15
+ > package manager, rather than taking a direct dependency.
16
+
17
+ ---
package/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
2
  "name": "@smithy/eventstream-serde-universal",
3
- "version": "4.2.12",
3
+ "version": "4.2.13",
4
4
  "scripts": {
5
- "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
- "build:cjs": "node ../../scripts/inline eventstream-serde-universal",
7
- "build:es": "yarn g:tsc -p tsconfig.es.json",
5
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
6
+ "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline eventstream-serde-universal",
8
7
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
8
  "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
- "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
9
  "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
- "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
10
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
11
+ "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
12
+ "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
14
13
  "test": "yarn g:vitest run",
15
- "test:watch": "yarn g:vitest watch",
16
14
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
17
- "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
15
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
16
+ "test:watch": "yarn g:vitest watch"
18
17
  },
19
18
  "main": "./dist-cjs/index.js",
20
19
  "module": "./dist-es/index.js",
@@ -26,8 +25,8 @@
26
25
  "license": "Apache-2.0",
27
26
  "sideEffects": false,
28
27
  "dependencies": {
29
- "@smithy/eventstream-codec": "^4.2.12",
30
- "@smithy/types": "^4.13.1",
28
+ "@smithy/eventstream-codec": "^4.2.13",
29
+ "@smithy/types": "^4.14.0",
31
30
  "tslib": "^2.6.2"
32
31
  },
33
32
  "devDependencies": {
@@ -1,23 +0,0 @@
1
- import { Decoder, Encoder, EventStreamMarshaller as IEventStreamMarshaller, Message } from "@smithy/types";
2
- /**
3
- * @internal
4
- */
5
- export interface EventStreamMarshaller extends IEventStreamMarshaller {
6
- }
7
- /**
8
- * @internal
9
- */
10
- export interface EventStreamMarshallerOptions {
11
- utf8Encoder: Encoder;
12
- utf8Decoder: Decoder;
13
- }
14
- /**
15
- * @internal
16
- */
17
- export declare class EventStreamMarshaller {
18
- private readonly eventStreamCodec;
19
- private readonly utfEncoder;
20
- constructor({ utf8Encoder, utf8Decoder }: EventStreamMarshallerOptions);
21
- deserialize<T>(body: AsyncIterable<Uint8Array>, deserializer: (input: Record<string, Message>) => Promise<T>): AsyncIterable<T>;
22
- serialize<T>(inputStream: AsyncIterable<T>, serializer: (event: T) => Message): AsyncIterable<Uint8Array>;
23
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * @internal
3
- */
4
- export declare function getChunkedStream(source: AsyncIterable<Uint8Array>): AsyncIterable<Uint8Array>;
@@ -1,18 +0,0 @@
1
- import { EventStreamCodec } from "@smithy/eventstream-codec";
2
- import { Encoder, Message } from "@smithy/types";
3
- /**
4
- * @internal
5
- */
6
- export type UnmarshalledStreamOptions<T> = {
7
- eventStreamCodec: EventStreamCodec;
8
- deserializer: (input: Record<string, Message>) => Promise<T>;
9
- toUtf8: Encoder;
10
- };
11
- /**
12
- * @internal
13
- */
14
- export declare function getUnmarshalledStream<T extends Record<string, any>>(source: AsyncIterable<Uint8Array>, options: UnmarshalledStreamOptions<T>): AsyncIterable<T>;
15
- /**
16
- * @internal
17
- */
18
- export declare function getMessageUnmarshaller<T extends Record<string, any>>(deserializer: (input: Record<string, Message>) => Promise<T>, toUtf8: Encoder): (input: Message) => Promise<T | undefined>;
@@ -1,8 +0,0 @@
1
- /**
2
- * @internal
3
- */
4
- export * from "./EventStreamMarshaller";
5
- /**
6
- * @internal
7
- */
8
- export * from "./provider";
@@ -1,3 +0,0 @@
1
- import { EventStreamSerdeProvider } from "@smithy/types";
2
- /** NodeJS event stream utils provider */
3
- export declare const eventStreamSerdeProvider: EventStreamSerdeProvider;