Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Social Media Photo by Ben Klea on Unsplash
micro land, or unicorn land, is a µhtml take at neverland.
Same API, except the exports are {Component, render, html, svg}
, where Component
is a function you can use either as new Component(...)
or just Component(...)
which is the equivalent of neverland default export.
The concept is exactly the same as the neverland one.
import {Component, render, html, useState} from 'uland';
const Counter = Component((initialState) => {
const [count, setCount] = useState(initialState);
return html`
<button onclick=${() => setCount(count + 1)}>
Count: ${count}
</button>`;
});
// basic example, show two independent counters
render(document.body, html`
<div>
A bounce of counters.<hr>
${Counter(0)} ${Counter(1)}
</div>
`);
Please check neverland to know more about this module usage.
In version 0.3, µland can return conditional templates.
const Rando = Component(url => {
const {data, error} = useSWR(url, fetcher);
if (error) return html`<div>failed to load</div>`;
if (!data) return html`<div>loading...</div>`;
return html`<div>${data.title}</div>`;
});
Once proven to be useful and robust, this feature will be ported to neverland too, otherwise these are basically the same.
Technically speaking, just the following one:
// neverland
import {neverland, render, html, useState} from 'neverland';
// uland
import {Component, render, html, useState} from 'uland';
The component is a function you can invoke ether via new Component
or just Component
, as it doesn't matter how you invoke it, it'll return a usable component.
Practically speaking, this module size is ~5K all inclusive, as opposite of ~7.5K.
FAQs
A uhtml based neverland fork
The npm package uland receives a total of 23 weekly downloads. As such, uland popularity was classified as not popular.
We found that uland demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.