From 3a5aa2eeab0929bb0ab10a72f4a257f5ae0cf54f Mon Sep 17 00:00:00 2001 From: Mike Christensen Date: Thu, 9 May 2024 11:09:10 +0100 Subject: [PATCH] release: bump version to 0.0.3 --- package.json | 2 +- src/stream/Stream.integration.test.ts | 3 ++- src/version.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0f81b551..714be986 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ably-labs/models", - "version": "0.0.2", + "version": "0.0.3", "description": "", "main": "dist/cjs/index.js", "module": "dist/mjs/index.js", diff --git a/src/stream/Stream.integration.test.ts b/src/stream/Stream.integration.test.ts index 1f48c389..d9910c3c 100644 --- a/src/stream/Stream.integration.test.ts +++ b/src/stream/Stream.integration.test.ts @@ -6,6 +6,7 @@ import Stream from './Stream.js'; import { defaultSyncOptions, defaultEventBufferOptions } from '../Options.js'; import type { StreamOptions } from '../types/stream.js'; import { createAblyApp } from '../utilities/test/createAblyApp.js'; +import { VERSION } from '../version.js'; interface StreamTestContext extends StreamOptions { stream: Stream; @@ -51,7 +52,7 @@ describe('Stream integration', () => { it('sets agent options when state is not attached', async ({ channel, stream }) => { await stream.replay('0'); //@ts-ignore - `agent` is filtered out in `channel.params`, so that's the only way to check this - expect(channel.channelOptions.params).toEqual({ agent: 'models/0.0.2' }); // initial call from test + expect(channel.channelOptions.params).toEqual({ agent: `models/${VERSION}` }); // initial call from test }); it('does not sets agent options when state is attached', async ({ channel }) => { diff --git a/src/version.ts b/src/version.ts index 4f0d2351..b277728f 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,3 +1,3 @@ // Manually update when bumping version -const VERSION = '0.0.2'; +const VERSION = '0.0.3'; export { VERSION };