Skip to content

Releases: atomicojs/hooks

@atomico/use-slot@1.0.2

26 May 18:09
Compare
Choose a tag to compare

@atomico/use-router@1.2.0

21 May 22:05
Compare
Choose a tag to compare

Add a second parameter to useRouter with the intention of regenerating the hook's return.

@atomico/use-router@1.1.0

21 May 19:57
Compare
Choose a tag to compare

@atomico/use-router@1.1.0

Now this hook is simpler, it only exposes the following utilities as a module:

  1. useRouter: hook for routing
  2. redirect: callback for redirecting
  3. getPath: callback for getting the path from useRouter

Example of useRouter

const { id, result, path, params, redirect } = useRouter<string>({
	"/": () => "home",
	"/config": () => "config",
});
  1. id: path from location.
  2. result: return of the callback.
  3. params: parameters of the callback.
  4. redirect: equivalent to redirect from the module.

@atomico/hooks@4.2.0

17 Apr 03:09
Compare
Choose a tag to compare

In this version, the useRefValues hook is removed in favor of Atomico's core hook useRefEffect, as it serves the same purpose. This has required updating packages that depended on this hook at the monorepo level.

Fix: MIT OSS license added

04 Apr 20:22
Compare
Choose a tag to compare
v4.1.2

MIT license is added

fix useRefMutationObserver when using references without current

09 Mar 03:43
Compare
Choose a tag to compare
v4.1.1

fix useRefMutationObserver when using references without current

Support from atomico@1.77.1

09 Mar 02:37
Compare
Choose a tag to compare

Warning

only compatible with versions equal to or greater than atomico@1.77.1

@atomico/use-mutation-observer

  1. useMutationObserver no necesita referencia y observa el host.
  2. useRefMutationObserver permite asociar una referencia.

@atomico/use-child-nodes

Es agregado, pero ahora este por defecto observa los niños con useMutationObserver

@atomico/use-disabled

Actualiza al formato actual de @atomico/use-mutation-observer

@atomico/use-render

Simplifica su codigo.

@atomico/use-parent

Permite capturar por string e instancias.

fix useSlot version

12 Feb 16:19
Compare
Choose a tag to compare
v4.0.1

fix useSlot version

🚀 Say hello to @atomico/hooks@4, Improvements for better maintenance.

08 Feb 02:08
Compare
Choose a tag to compare

Maintenance improvement

starting from version 4, @atomico/hooks will be managed as a monorepo. This is done with the aim of:

  1. Improving the consumption of these hooks, allowing developers to select the version of the hook to use in their project.
  2. Including new hooks more quickly, as they won't break the usage of the @atomico/hooks package by default. Developers can roll back or update on a per-hook basis rather than for all hooks.

This version breaks some hooks from version 3, such as:

Removed Hooks

  1. use-async-effect: Prefer using Atomico's asynchronous API.
  2. use-channel: Prefer the core of Atomico, which already has APIs for working with contexts.
  3. use-child-nodes: Prefer the useSlot hook, as use-child-node is inaccurate if multiple renders occur on the same web component.
  4. use-controller: Prefer Atomico's hooks API (can be reintegrated upon community request; feel free to request it via issue).
  5. use-css: Prefer Atomico's core API for handling CSS.
  6. use-dollars: Prefer the approach of using slots as templates.
  7. use-queue-task: Unused (can be reintegrated upon community request; feel free to request it via issue).
  8. use-unique-id-selector: Prefer useId from the core of Atomico.
  9. use-script: Prefer using Atomico's asynchronous API.

Renamed Hooks

  1. use-history = use-value-history: Facilitates understanding of cumulative values between renders.

Message from the author @UpperCod

We'll be attentive to your experience with this new version of Atomico and @atomico/hooks. If you have any feedback or questions, feel free to share them. Happy coding!

Fix default export and use-router types

06 Feb 03:54
Compare
Choose a tag to compare

Issue: #13

This version fixes the use of @atomico/hooks in webpack