i-like-robots / hyperons Goto Github PK
View Code? Open in Web Editor NEWπ₯ The fastest JSX to string renderer on the server and in the browser.
Home Page: https://www.npmjs.com/package/hyperons
License: MIT License
π₯ The fastest JSX to string renderer on the server and in the browser.
Home Page: https://www.npmjs.com/package/hyperons
License: MIT License
1.14.2
to 1.14.3
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
2019-06-06
The new version differs by 4 commits.
c68bd95
1.14.3
d79aa57
Update changelog
7179390
Use browser relative path algorithm for chunks (#2902)
b1df517
Add funding button
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Preact and a few other libraries support functionality similar to the classnames module which can render or not render a list of class names depending on whether each key has a truthy or falsy value.
<div class={{ foo: true, bar: false }}></div> // => <div class="foo"></div>
Hey thanks for the package! Any chance of getting Suspense
and async
support? For reference, hono
just added experimental support for that concept https://github.com/honojs/hono/blob/next/src/jsx/streaming.ts#L25
Text children with a value of 0
(the number) aren't rendered because they're falsy. Preact stringifies number children as soon as they're passed in.
<>
<td>Hello</td>
<td>World</td>
</>
Looks like the module needs to support rendering children of null
elements.
1.9.2
to 1.9.3
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
2019-04-10
The new version differs by 3 commits.
516a06d
1.9.3
a5526ea
Update changelog
c3d73ff
Handle out-of-order binding of identifiers to improve tree-shaking (#2803)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
It should be possible to support simple class based components. It may also be worth investigating how lifecycle methods from the various frameworks may be invoked when rendering static markup.
class Foo extends Component {
render () {
return (
<h1>Hello World</h1>
)
}
}
The current check to see if a string is "safe" is far from safe. If a user input is passed to Hyperons and rendered unsanitized then this could be exploited for a XSS attack.
React and React-like libraries do not have this issue as their DOM-builder methods return their internal representation of a Node rather than strings.
The string could be wrapped in simple class with toString()
method - as Handlebars does which is easily checked, however this class instance would be returned to the user. new String()
also returns an object so they cannot be compared to string literals.
Is this even a concern of this library?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.