
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@anywidget/deno
Advanced tools
A stub-package for making releases of the Deno anywidget mod.ts with changesets
Jupyter Widgets for Jupyter JavaScript Kernels (experimental).
In[1]:
import { widget } from "https://deno.land/x/anywidget/mod.ts";
const model = await widget({
state: { letters: "abcd" },
imports: `\
import * as d3 from "https://esm.sh/d3";
`,
render: ({ model, el }) => {
const width = 300;
const svg = d3.create("svg")
.attr("width", width)
.attr("height", 33)
.attr("viewBox", `0 -20 ${width} 33`);
model.on("change:letters", () => {
const t = svg.transition().duration(200);
svg.selectAll("text")
.data(model.get("letters"), (d) => d)
.join(
(enter) =>
enter.append("text")
.attr("fill", "green")
.attr("x", (d, i) => i * 16)
.attr("y", -30)
.text((d) => d)
.call((enter) =>
enter.transition(t)
.attr("y", 0)
),
(update) =>
update
.attr("fill", "black")
.attr("y", 0)
.call((update) =>
update.transition(t)
.attr("x", (d, i) => i * 16)
),
(exit) =>
exit
.attr("fill", "brown")
.call((exit) =>
exit.transition(t)
.attr("y", 30)
.remove()
),
);
});
el.appendChild(svg.node());
},
});
model;
Out[1]:
In[2]:
let dict = await Deno.readTextFile("/usr/share/dict/words");
for (let word of dict.split("\n")) {
model.set("letters", word);
await new Promise((resolve) => setTimeout(resolve, 500));
}
FAQs
A stub-package for making releases of the Deno anywidget mod.ts with changesets
The npm package @anywidget/deno receives a total of 183 weekly downloads. As such, @anywidget/deno popularity was classified as not popular.
We found that @anywidget/deno demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.