Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yandeu committed Aug 29, 2023
1 parent ee4c719 commit 2e3f829
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 10 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@

<hr>

## News

nano-jsx is now at v0.1.x 🎉
This means, no breaking changes till v0.2.x
[Tweet about it!](http://twitter.com/share?text=nano-jsx%20has%20reached%20v0.1!&url=https://nanojsx.io/)

## Getting Started

- Visit the [website](http://nanojsx.io/)
Expand Down
2 changes: 1 addition & 1 deletion bundles/nano.full.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundles/nano.slim.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundles/nano.ui.min.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions deno.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "2",
"remote": {
"https://cdn.skypack.dev/-/@twind/[email protected]/dist=es2019,mode=imports/optimized/@twind/typography.js": "865040d2ed01c37044afd78fe1570d06880e8c07ad5181c6f1a6e2b677157e0a",
"https://cdn.skypack.dev/-/[email protected]/dist=es2019,mode=imports/optimized/style-vendorizer.js": "e91a6c68e6f347259a7ca221fb8f0b2682a91e0bbc2739b54f7f14911a2af1db",
"https://cdn.skypack.dev/-/[email protected]/dist=es2019,mode=imports/optimized/twind.js": "7a46f656d2682518a94287b30fccbf0ceaeb396215a0b961e6ce3bb77eddbeee",
"https://cdn.skypack.dev/-/[email protected]/dist=es2019,mode=imports/optimized/twind/sheets.js": "d8490b1c1f6157c358f5d6a1df980e9a5887239d4aa9c4a69bc2d107f36dab32",
"https://cdn.skypack.dev/@twind/typography": "47a13cb72f3549b92c0fc7b9d00dc1597f42da01d17350b7d07206ef30ce871a",
"https://cdn.skypack.dev/twind": "ce13d20ccb648f056539c3f2837905158216167e5300d0953c5e6da400c84855",
"https://cdn.skypack.dev/twind/sheets": "a46ba77c11288c5641bfeb6870e899ba466f30b056dc312b98961928da1ed961",
"https://deno.land/[email protected]/fmt/colors.ts": "8368ddf2d48dfe413ffd04cdbb7ae6a1009cf0dccc9c7ff1d76259d9c61a0621",
"https://deno.land/[email protected]/testing/_diff.ts": "e6a10d2aca8d6c27a9c5b8a2dbbf64353874730af539707b5b39d4128140642d",
"https://deno.land/[email protected]/testing/asserts.ts": "a1fef0239a2c343b0baa49c77dcdd7412613c46f3aba2887c331a2d7ed1f645e"
}
}
13 changes: 12 additions & 1 deletion deno_lib/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<p align="center">
<a href="http://nanojsx.io/">
<img src="https://raw.githubusercontent.com/nanojsx/nano/master/readme/nano-jsx-logo.svg" alt="Nano JSX Logo" width="350"/>
<!-- https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#specifying-the-theme-an-image-is-shown-to -->
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nanojsx/nano/master/readme/nano-jsx-logo-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/nanojsx/nano/master/readme/nano-jsx-logo.svg">
<img alt="Nano JSX Logo" src="https://raw.githubusercontent.com/nanojsx/nano/master/readme/nano-jsx-logo.svg">
</picture>
</a>
</p>

Expand Down Expand Up @@ -36,6 +41,12 @@

<hr>

## News

nano-jsx is now at v0.1.x 🎉
This means, no breaking changes till v0.2.x
[Tweet about it!](http://twitter.com/share?text=nano-jsx%20has%20reached%20v0.1!&url=https://nanojsx.io/)

## Getting Started

- Visit the [website](http://nanojsx.io/)
Expand Down
4 changes: 3 additions & 1 deletion deno_lib/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export const renderSSR = (component: any, options: { pathname?: string; clearSta
initSSR(pathname)
if (clearState) _state.clear()

return render(component, null, true).join('') as string
const tmp = render(component, null, true) as string | string[]
if (Array.isArray(tmp)) return tmp.join('')
else return Array.from(tmp).join('')
}

export const clearState = () => {
Expand Down
2 changes: 1 addition & 1 deletion deno_lib/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
export const VERSION = '0.0.37'
export const VERSION = '0.1.0'
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nano-jsx",
"version": "0.0.37",
"version": "0.1.0",
"description": "SSR first, lightweight 1kB JSX library.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
export const VERSION = '0.0.37'
export const VERSION = '0.1.0'

0 comments on commit 2e3f829

Please sign in to comment.