react-streaming
Advanced tools
Comparing version 0.3.11 to 0.3.12
@@ -1,2 +0,4 @@ | ||
export { useAsync } from './useAsync'; | ||
export { useStream } from './useStream'; | ||
export { useAsync }; | ||
export { useStream }; | ||
import { useAsync } from './useAsync'; | ||
import { useStream } from './useStream'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useStream = exports.useAsync = void 0; | ||
var useAsync_1 = require("./useAsync"); | ||
// We don't import from ./utils.ts because utils/debug.js contains a !isBrowser() assertion | ||
const assert_1 = require("../utils/assert"); | ||
const isBrowser_1 = require("../utils/isBrowser"); | ||
(0, assert_1.assertUsage)(!(0, isBrowser_1.isBrowser)(), "The file node_modules/react-streaming/dist/{esm,cjs}/server/hooks.js is loaded in the browser but it shouldn't. Make sure to never `import { something } from 'react-streaming/server'` in code that runs on the client-side. Also make sure your bundler picks the right node_modules/react-streaming/package.json#exports entries."); | ||
const useAsync_1 = require("./useAsync"); | ||
Object.defineProperty(exports, "useAsync", { enumerable: true, get: function () { return useAsync_1.useAsync; } }); | ||
var useStream_1 = require("./useStream"); | ||
const useStream_1 = require("./useStream"); | ||
Object.defineProperty(exports, "useStream", { enumerable: true, get: function () { return useStream_1.useStream; } }); |
@@ -1,2 +0,4 @@ | ||
export { renderToStream, disable } from './renderToStream'; | ||
export type { InjectToStream } from './renderToStream/createBuffer'; | ||
export { renderToStream, disable }; | ||
export type { InjectToStream }; | ||
import { renderToStream, disable } from './renderToStream'; | ||
import type { InjectToStream } from './renderToStream/createBuffer'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.disable = exports.renderToStream = void 0; | ||
var renderToStream_1 = require("./renderToStream"); | ||
// We don't import from ./utils.ts because utils/debug.js contains a !isBrowser() assertion | ||
const assert_1 = require("../utils/assert"); | ||
const isBrowser_1 = require("../utils/isBrowser"); | ||
(0, assert_1.assertUsage)(!(0, isBrowser_1.isBrowser)(), "The file node_modules/react-streaming/dist/{esm,cjs}/server/index.js is loaded in the browser but it shouldn't. Make sure to never `import { something } from 'react-streaming/server'` in code that runs on the client-side. Also make sure your bundler picks the right node_modules/react-streaming/package.json#exports entries."); | ||
const renderToStream_1 = require("./renderToStream"); | ||
Object.defineProperty(exports, "renderToStream", { enumerable: true, get: function () { return renderToStream_1.renderToStream; } }); | ||
Object.defineProperty(exports, "disable", { enumerable: true, get: function () { return renderToStream_1.disable; } }); |
@@ -5,1 +5,2 @@ export * from '../utils/assert'; | ||
export * from '../utils/isPromise'; | ||
export * from '../utils/isBrowser'; |
@@ -21,1 +21,2 @@ "use strict"; | ||
__exportStar(require("../utils/isPromise"), exports); | ||
__exportStar(require("../utils/isBrowser"), exports); |
@@ -9,4 +9,4 @@ "use strict"; | ||
// Ensure that this is never loaded in the browser. (In order to avoid this file to be included in the client-side bundle.) | ||
// For isomorphic code: instead of `import { createDebugger } from './utils'`, use `globalThis.createDebugger()`. | ||
(0, assert_1.assert)(!(0, isBrowser_1.isBrowser)()); | ||
// For isomorphic code: use `globalThis.createDebugger()` instead of `import { createDebugger } from './utils'`. | ||
(0, assert_1.assert)(!(0, isBrowser_1.isBrowser)(), 'utils/debug.js loaded in browser'); | ||
globalThis.__brillout_debug_createDebugger = createDebugger; | ||
@@ -13,0 +13,0 @@ function createDebugger(namespace, optionsGlobal) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.projectInfo = void 0; | ||
const PROJECT_VERSION = '0.3.11'; | ||
const PROJECT_VERSION = '0.3.12'; | ||
exports.projectInfo = { | ||
@@ -6,0 +6,0 @@ projectName: 'react-streaming', |
@@ -1,2 +0,4 @@ | ||
export { useAsync } from './useAsync'; | ||
export { useStream } from './useStream'; | ||
export { useAsync }; | ||
export { useStream }; | ||
import { useAsync } from './useAsync'; | ||
import { useStream } from './useStream'; |
@@ -1,2 +0,8 @@ | ||
export { useAsync } from './useAsync'; | ||
export { useStream } from './useStream'; | ||
export { useAsync }; | ||
export { useStream }; | ||
// We don't import from ./utils.ts because utils/debug.js contains a !isBrowser() assertion | ||
import { assertUsage } from '../utils/assert'; | ||
import { isBrowser } from '../utils/isBrowser'; | ||
assertUsage(!isBrowser(), "The file node_modules/react-streaming/dist/{esm,cjs}/server/hooks.js is loaded in the browser but it shouldn't. Make sure to never `import { something } from 'react-streaming/server'` in code that runs on the client-side. Also make sure your bundler picks the right node_modules/react-streaming/package.json#exports entries."); | ||
import { useAsync } from './useAsync'; | ||
import { useStream } from './useStream'; |
@@ -1,2 +0,4 @@ | ||
export { renderToStream, disable } from './renderToStream'; | ||
export type { InjectToStream } from './renderToStream/createBuffer'; | ||
export { renderToStream, disable }; | ||
export type { InjectToStream }; | ||
import { renderToStream, disable } from './renderToStream'; | ||
import type { InjectToStream } from './renderToStream/createBuffer'; |
@@ -1,1 +0,6 @@ | ||
export { renderToStream, disable } from './renderToStream'; | ||
export { renderToStream, disable }; | ||
// We don't import from ./utils.ts because utils/debug.js contains a !isBrowser() assertion | ||
import { assertUsage } from '../utils/assert'; | ||
import { isBrowser } from '../utils/isBrowser'; | ||
assertUsage(!isBrowser(), "The file node_modules/react-streaming/dist/{esm,cjs}/server/index.js is loaded in the browser but it shouldn't. Make sure to never `import { something } from 'react-streaming/server'` in code that runs on the client-side. Also make sure your bundler picks the right node_modules/react-streaming/package.json#exports entries."); | ||
import { renderToStream, disable } from './renderToStream'; |
@@ -5,1 +5,2 @@ export * from '../utils/assert'; | ||
export * from '../utils/isPromise'; | ||
export * from '../utils/isBrowser'; |
@@ -5,1 +5,2 @@ export * from '../utils/assert'; | ||
export * from '../utils/isPromise'; | ||
export * from '../utils/isBrowser'; |
@@ -8,4 +8,4 @@ export { createDebugger }; | ||
// Ensure that this is never loaded in the browser. (In order to avoid this file to be included in the client-side bundle.) | ||
// For isomorphic code: instead of `import { createDebugger } from './utils'`, use `globalThis.createDebugger()`. | ||
assert(!isBrowser()); | ||
// For isomorphic code: use `globalThis.createDebugger()` instead of `import { createDebugger } from './utils'`. | ||
assert(!isBrowser(), 'utils/debug.js loaded in browser'); | ||
globalThis.__brillout_debug_createDebugger = createDebugger; | ||
@@ -12,0 +12,0 @@ function createDebugger(namespace, optionsGlobal) { |
@@ -1,2 +0,2 @@ | ||
const PROJECT_VERSION = '0.3.11'; | ||
const PROJECT_VERSION = '0.3.12'; | ||
export const projectInfo = { | ||
@@ -3,0 +3,0 @@ projectName: 'react-streaming', |
{ | ||
"name": "react-streaming", | ||
"description": "React 18 Streaming. Full-fledged & Easy.", | ||
"version": "0.3.11", | ||
"version": "0.3.12", | ||
"main": "./dist/cjs/server/hooks.js", | ||
@@ -28,3 +28,4 @@ "peerDependencies": { | ||
"// === Release ===": "", | ||
"release": "release-me patch" | ||
"release": "release-me patch", | ||
"release:commit": "release-me commit" | ||
}, | ||
@@ -46,3 +47,3 @@ "exports": { | ||
"@brillout/part-regex": "^0.1.2", | ||
"@brillout/release-me": "^0.0.7", | ||
"@brillout/release-me": "^0.1.6", | ||
"@types/node": "^15.12.2", | ||
@@ -49,0 +50,0 @@ "@types/react": "^18.0.9", |
@@ -33,3 +33,3 @@ <p align="center"> | ||
Features (for React users): | ||
**Features (for React users)** | ||
@@ -42,3 +42,3 @@ - Unlocks `<Suspense>` for SSR apps. | ||
Features (for library authors): | ||
**Features (for library authors)** | ||
@@ -48,3 +48,3 @@ - `useAsync()`: add data fetching capabilities to your library. High-level and easy to use. | ||
Easy: | ||
**Easy** | ||
@@ -51,0 +51,0 @@ ```jsx |
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
120716
2655