Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release package(s) #14

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 3, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

[email protected]

Major Changes

  • #13 d1a8cc2 Thanks @theogravity! - - Removes hooks and adds a plugin system where you can
    define multiple hooks to run instead.

    • Adds esm and cjs builds to the package

    Breaking Changes

    • The hooks option has been removed
    • The setHooks() method has been removed
    • A plugins option has been added
    • An addPlugins() method has been added

    There will be a way to remove / disable specific plugins in a future release.

    Migrating from 3.x to 4.x

    Your 3.x definition may look like this:

    {
      hooks: {
        onBeforeDataOut: (data) => {
          // do something with data
          return data;
        },
        shouldSendToLogger: () => {
          return true;
        }
      }
    }
    

    The 4.x version of this would look like this:

    {
      plugins: [
        {
          onBeforeDataOut: (data) => {
            // do something with data
            return data;
          },
          shouldSendToLogger: () => {
            return true;
          },
        },
      ];
    }

    Summary:

    • Replace hooks with plugins
    • For your existing hooks, move them into the plugins array where each entry is an object with the hook definition

@theogravity theogravity merged commit a32ad3e into master May 3, 2024
@theogravity theogravity deleted the changeset-release/master branch May 3, 2024 23:40
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.

None yet

1 participant