
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Fork of ecr for Roblox-ts.
.size()
. Queues and Pools have it as a property, .size
<ecr version>-ts.<x>
where x is incremented for any changes to the TS version in particularimport ecr, { Registry } from "@rbxts/ecr";
// define components
const Position = ecr.component<Vector3>();
const Velocity = ecr.component<Vector3>();
// define a system
function update_physics(world: Registry, dt: number) {
for (const [id, pos, vel] of world.view(Position, Velocity)) {
world.set(id, Position, pos.add(vel.mul(dt)));
}
}
// instantiate the world
const world = ecr.registry();
// create entities and assign components
for (const i of $range(1, 10)) {
const id = world.create();
world.set(id, Position, new Vector3(i, 1, 1));
world.set(id, Velocity, new Vector3(10, 0, 0));
}
// run system
update_physics(world, 1/60);
FAQs
A sparse-set based ECS library for Luau, now with TS types.
We found that @rbxts/ecr demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.