Skip to content

Commit 4ffbaca

Browse files
committed
pub zenblog js 1.0
1 parent 554933b commit 4ffbaca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/zenblog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zenblog",
3-
"version": "0.7.6",
3+
"version": "1.0.0",
44
"description": "The typescript client for zenblog",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

packages/zenblog/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export function createZenblogClient({
6363
_debug,
6464
}: CreateClientOpts) {
6565
if (typeof window !== "undefined") {
66-
throwError(
67-
"Zenblog is not supported in the browser. Make sure you don't leak your access token."
66+
console.warn(
67+
"Looks like you're trying to use Zenblog in the browser. This is not advised. We recommend using server-side rendering frameworks to fetch data."
6868
);
6969
}
7070

0 commit comments

Comments
 (0)