react-streaming
Advanced tools
Comparing version 0.3.42 to 0.3.43
@@ -5,3 +5,3 @@ export { renderToStream }; | ||
export { renderToWebStream_set }; | ||
export type { StreamUtils }; | ||
export type { StreamReturnUtils }; | ||
export type { SetAbortFn }; | ||
@@ -29,3 +29,3 @@ export type { ClearTimeouts }; | ||
}; | ||
declare type StreamReturn = { | ||
declare type StreamReturnMain = { | ||
pipe: Pipe; | ||
@@ -37,3 +37,3 @@ readable: null; | ||
}; | ||
declare type StreamUtils = { | ||
declare type StreamReturnUtils = { | ||
injectToStream: InjectToStream; | ||
@@ -43,3 +43,3 @@ hasStreamEnded: () => boolean; | ||
}; | ||
declare type Return = StreamReturn & StreamUtils & { | ||
declare type StreamReturn = StreamReturnMain & StreamReturnUtils & { | ||
streamEnd: Promise<boolean>; | ||
@@ -53,4 +53,4 @@ disabled: boolean; | ||
declare function disable(): void; | ||
declare function renderToStream(element: React.ReactNode, options?: Options): Promise<Return>; | ||
declare function renderToStream(element: React.ReactNode, options?: Options): Promise<StreamReturn>; | ||
declare function renderToNodeStream_set(renderToNodeStream: typeof renderToNodeStream_): void; | ||
declare function renderToWebStream_set(renderToWebStream: typeof renderToWebStream_): void; |
export { useStream }; | ||
export { StreamProvider }; | ||
import React from 'react'; | ||
import type { StreamUtils } from './renderToStream'; | ||
declare const StreamProvider: React.Provider<StreamUtils | null>; | ||
declare function useStream(): StreamUtils | null; | ||
import type { StreamReturnUtils } from './renderToStream'; | ||
declare const StreamProvider: React.Provider<StreamReturnUtils | null>; | ||
declare function useStream(): StreamReturnUtils | null; |
@@ -5,6 +5,6 @@ "use strict"; | ||
const getGlobalObject_1 = require("./getGlobalObject"); | ||
const PROJECT_VERSION = '0.3.42'; | ||
const PROJECT_VERSION_1 = require("./PROJECT_VERSION"); | ||
const projectInfo = { | ||
projectName: 'react-streaming', | ||
projectVersion: PROJECT_VERSION, | ||
projectVersion: PROJECT_VERSION_1.PROJECT_VERSION, | ||
npmPackageName: 'react-streaming', | ||
@@ -11,0 +11,0 @@ githubRepository: 'https://github.com/brillout/react-streaming', |
@@ -5,3 +5,3 @@ export { renderToStream }; | ||
export { renderToWebStream_set }; | ||
export type { StreamUtils }; | ||
export type { StreamReturnUtils }; | ||
export type { SetAbortFn }; | ||
@@ -29,3 +29,3 @@ export type { ClearTimeouts }; | ||
}; | ||
declare type StreamReturn = { | ||
declare type StreamReturnMain = { | ||
pipe: Pipe; | ||
@@ -37,3 +37,3 @@ readable: null; | ||
}; | ||
declare type StreamUtils = { | ||
declare type StreamReturnUtils = { | ||
injectToStream: InjectToStream; | ||
@@ -43,3 +43,3 @@ hasStreamEnded: () => boolean; | ||
}; | ||
declare type Return = StreamReturn & StreamUtils & { | ||
declare type StreamReturn = StreamReturnMain & StreamReturnUtils & { | ||
streamEnd: Promise<boolean>; | ||
@@ -53,4 +53,4 @@ disabled: boolean; | ||
declare function disable(): void; | ||
declare function renderToStream(element: React.ReactNode, options?: Options): Promise<Return>; | ||
declare function renderToStream(element: React.ReactNode, options?: Options): Promise<StreamReturn>; | ||
declare function renderToNodeStream_set(renderToNodeStream: typeof renderToNodeStream_): void; | ||
declare function renderToWebStream_set(renderToWebStream: typeof renderToWebStream_): void; |
export { useStream }; | ||
export { StreamProvider }; | ||
import React from 'react'; | ||
import type { StreamUtils } from './renderToStream'; | ||
declare const StreamProvider: React.Provider<StreamUtils | null>; | ||
declare function useStream(): StreamUtils | null; | ||
import type { StreamReturnUtils } from './renderToStream'; | ||
declare const StreamProvider: React.Provider<StreamReturnUtils | null>; | ||
declare function useStream(): StreamReturnUtils | null; |
export { projectInfo }; | ||
import { getGlobalObject } from './getGlobalObject'; | ||
const PROJECT_VERSION = '0.3.42'; | ||
import { PROJECT_VERSION } from './PROJECT_VERSION'; | ||
const projectInfo = { | ||
@@ -5,0 +5,0 @@ projectName: 'react-streaming', |
{ | ||
"name": "react-streaming", | ||
"description": "React 18 Streaming. Full-fledged & Easy.", | ||
"version": "0.3.42", | ||
"version": "0.3.43", | ||
"peerDependencies": { | ||
@@ -71,3 +71,3 @@ "react": ">=18", | ||
"@brillout/part-regex": "^0.1.2", | ||
"@brillout/release-me": "^0.3.8", | ||
"@brillout/release-me": "^0.4.0", | ||
"@types/node": "^15.12.2", | ||
@@ -74,0 +74,0 @@ "@types/react": "^18.0.9", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152435
161
3149