reselect 5.x
Use Reselect ^5.0.0 to build memoized selectors, customize memoization, compose structured results, and account for v5 defaults and API changes.
- For
reselect@5.3.0- Verified
- 2026-09-08, 6 examples executed
- Package
@modootoday/pmcp-reselect@5.0.0
What it covers
- What this package does
- `createSelector`
- Per-selector memoization
- `createSelectorCreator`
- `createStructuredSelector`
- Memoizer exports
- Development checks
- v5 migration traps
- Not covered
One example from this skill
This is the skill's own text, not a summary of it. It runs: that is what verifying means here.
import assert from 'node:assert/strict'
import { createSelector } from 'reselect'
type State = {
todos: Array<{ id: number; category: string }>
}
const selectTodosByCategory = createSelector(
[
(state: State) => state.todos,
(_state: State, category: string) => category
],
(todos, category) => todos.filter(todo => todo.category === category)
)
const todos = [
{ id: 1, category: 'work' },
{ id: 2, category: 'home' },
{ id: 3, category: 'work' }
]
const state = { todos }
const first = selectTodosByCategory(state, 'work')
const second = selectTodosByCategory(state, 'work')
assert.deepEqual(first, [
{ id: 1, category: 'work' },
{ id: 3, category: 'work' }
])
assert.strictEqual(first, second)
What it did in the sandbox
Verifying this skill meant installing the package and running code against it with no route out. Nothing was observed. The full ledger lists every package examined, including the ones that never became a skill.
Nothing observed is not a finding of safety. It means one run, under one policy, produced nothing to report.
Getting it
With a subscription:
npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-reselect
It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.