Skip to content

Commit e90d45d

Browse files
authored
chore (rsc): move HANGING_STREAM_WARNING_TIME constant into @ai-sdk/rsc package (#6195)
## Background The constant `HANGING_STREAM_WARNING_TIME` is only moved `@ai-sdk/rsc` after the removal of `StreamData`. ## Summary Move the `HANGING_STREAM_WARNING_TIME` constant into `@ai-sdk/rsc`
1 parent 35fc02c commit e90d45d

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

‎.changeset/chatty-ladybugs-nail.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@ai-sdk/rsc': patch
3+
'ai': patch
4+
---
5+
6+
chore (rsc): move HANGING_STREAM_WARNING_TIME constant into @ai-sdk/rsc package

‎packages/ai/internal/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ export {
88
createCallbacksTransformer,
99
type StreamCallbacks,
1010
} from '../streams/stream-callbacks';
11-
12-
export * from '../util/constants';

‎packages/rsc/src/streamable-ui/create-streamable-ui.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HANGING_STREAM_WARNING_TIME_MS } from 'ai/internal';
1+
import { HANGING_STREAM_WARNING_TIME_MS } from '../util/constants';
22
import { createResolvablePromise } from '../util/create-resolvable-promise';
33
import { createSuspendedChunk } from './create-suspended-chunk';
44

‎packages/rsc/src/streamable-value/create-streamable-value.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HANGING_STREAM_WARNING_TIME_MS } from 'ai/internal';
1+
import { HANGING_STREAM_WARNING_TIME_MS } from '../util/constants';
22
import { createResolvablePromise } from '../util/create-resolvable-promise';
33
import {
44
STREAMABLE_VALUE_TYPE,
File renamed without changes.

0 commit comments

Comments
 (0)