Skip to content

chore(deps): update dependency @preact/signals-core to v1.14.1#153

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/preact-signals-core-1.x-lockfile
Open

chore(deps): update dependency @preact/signals-core to v1.14.1#153
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/preact-signals-core-1.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@preact/signals-core (source) 1.12.11.14.1 age confidence

Release Notes

preactjs/signals (@​preact/signals-core)

v1.14.1

Compare Source

Patch Changes
  • #​906 0c65390 Thanks @​JoviDeCroock! - Wrap nested object methods returned from createModel so composed models keep action batching semantics without manual action wrappers.

  • #​911 6c17923 Thanks @​JoviDeCroock! - Avoid hard-requiring ESNext.Disposable in consumer tsconfigs for Model and effect() types.

v1.14.0

Compare Source

Minor Changes
  • #​891 308c921 Thanks @​JoviDeCroock! - Prevent batches where a signal goes from A --> B --> A from triggering dependent updates, a computed/effect should not re-run when the dependencies in a batched update amount to an equal value.

v1.13.0

Minor Changes
  • #​812 19ac39b Thanks @​andrewiggins! - Add createModel and action to signals core package

    createModel provides a structured way to create reactive model classes that encapsulate signals, computed values, and actions:

    const CounterModel = createModel((initialCount = 0) => {
    	const count = signal(initialCount);
    	const doubled = computed(() => count.value * 2);
    
    	effect(() => {
    		console.log("Count changed:", count.value);
    	});
    
    	return {
    		count,
    		doubled,
    		increment() {
    			count.value++;
    		},
    	};
    });
    
    const counter = new CounterModel(5);
    counter.increment(); // Updates are automatically batched
    counter[Symbol.dispose](); // Cleans up all effects

    Key features:

    • Factory functions can accept arguments for initialization
    • All methods are automatically wrapped as actions (batched & untracked)
    • Effects created during model construction are captured and disposed when the model is disposed via Symbol.dispose
    • TypeScript validates that models only contain signals, actions, or nested objects with signals/actions

    action is a helper that wraps a function to run batched and untracked:

    const updateAll = action(items => {
    	items.forEach(item => item.value++);
    }); // All updates batched into single notification

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/preact-signals-core-1.x-lockfile branch from 806d812 to ee0b74b Compare March 31, 2026 21:09
@renovate renovate Bot changed the title chore(deps): update dependency @preact/signals-core to v1.14.0 chore(deps): update dependency @preact/signals-core to v1.14.1 Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants