
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
todo-memory-store
Advanced tools
This implements a basic in-memory store for building demo Todo list apps for bicycle. It includes two default todos so you don't have to start with the empty state.
This implements a basic in-memory store for building demo Todo list apps for bicycle. It includes two default todos so you don't have to start with the empty state.
yarn add todo-memory-store
interface Todo {
id: string;
title: string;
completed: boolean;
}
interface TodoInput {
title: string;
completed: boolean;
}
import * as store from 'todo-memory-store';
store.addTodo(todo: TodoInput): Promise<void>store.toggleAll(checked: boolean): Promise<void>store.toggle(id: string, checked: boolean): Promie<void>store.destroy(id: string): Promie<void>store.setTitle(id: string, title: string): Promie<void>store.clearCompleted(): Promie<void>store.getTodos(): Promise<Array<Todo>>store.getTodo(id: string): Promise<Todo | null>The following methods are exposed for use in tests:
store.getTodosSync() - get the TODO entries in the store synchronouslystore.reset() - reset to the two default TODO entriesstore.setLatency(latencyMilliseconds: number) - change the artificial latency, defaults to 200msstore.enableDeterminsticIDs() - make the UUIDs generated for newly created TODOs deterministic, rather than randomstore.disbaleDeterminsticIDs() - undo enableDeterminsticIDsuuid - generate a uuid, or get the next deterministic idFAQs
This implements a basic in-memory store for building demo Todo list apps for bicycle. It includes two default todos so you don't have to start with the empty state.
We found that todo-memory-store 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
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.