Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 10 Dec 04:51
· 44 commits to main since this release
dc2bd84

Minor Changes

  • #58 5f79243 Thanks @jxom! - Breaking: Removed silius, stackup, rundler instances.

  • #58 5f79243 Thanks @jxom! - Breaking: Refactored to use namespace imports.

    Imports

    - import { createServer } from 'prool'
    - import { anvil, alto } from 'prool/instances'
    - import { defineInstance } from 'prool'
    - import { definePool } from 'prool'
    + import { Instance, Pool, Server } from 'prool'

    Server.create → Server.create

    - const server = createServer({
    -   instance: anvil(),
    + const server = Server.create({
    +   instance: Instance.anvil(),
      })

    anvil, alto → Instance.anvil, Instance.alto

    - const instance = anvil({ ... })
    + const instance = Instance.anvil({ ... })
    
    - const instance = alto({ ... })
    + const instance = Instance.alto({ ... })

    defineInstance → Instance.define

    - const foo = defineInstance((parameters) => {
    + const foo = Instance.define((parameters) => {
        return {
          name: 'foo',
          // ...
        }
      })

    definePool → Pool.define

    - const pool = definePool({
    -   instance: anvil(),
    + const pool = Pool.define({
    +   instance: Instance.anvil(),
      })