diff --git a/.changeset/lazy-computed-decorator.md b/.changeset/lazy-computed-decorator.md new file mode 100644 index 0000000000..031f56a259 --- /dev/null +++ b/.changeset/lazy-computed-decorator.md @@ -0,0 +1,5 @@ +--- +"mobx": minor +--- + +feat(mobx): make the 2022.3 `@computed` decorator lazy. `ComputedValue` is now created on first read of the decorated getter rather than eagerly during instance construction, avoiding wasted allocations for getters that are never used. On a 50k-instance × 10-getter class with one read per instance this cuts construction heap by ~50% and construction time by ~25%; the steady-state read path is unchanged. Closes #4616. diff --git a/.changeset/npm-workspace-cli-resolution.md b/.changeset/npm-workspace-cli-resolution.md new file mode 100644 index 0000000000..f7b7ab5705 --- /dev/null +++ b/.changeset/npm-workspace-cli-resolution.md @@ -0,0 +1,5 @@ +--- +"mobx-undecorate": patch +--- + +Fix CLI resolution of the bundled jscodeshift binary when dependencies are hoisted by npm workspaces. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 01d242671e..7970affe43 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -14,7 +14,7 @@ - [ ] Added/updated unit tests - [ ] Updated `/docs`. For new functionality, at least `API.md` should be updated -- [ ] Verified that there is no significant performance drop (`yarn mobx test:performance`) +- [ ] Verified that there is no significant performance drop (`npm -w mobx run test:performance`)