v0.1.0
Minor Changes
-
#58
5f79243Thanks @jxom! - Breaking: Removedsilius,stackup,rundlerinstances. -
#58
5f79243Thanks @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(), })