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

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

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.