Skip to content

Removing factory functions

Choose a tag to compare

@thetutlage thetutlage released this 29 May 17:22

This release gets rid of the factory functions to create the logger and instead you can instantiate the class directly.

Earlier

import { getLogger } from '@poppinss/logger'
const logger = getLogger()

Now

import { Logger } from '@poppinss/logger'
const logger = new Logger()

The newer approach is in sync the other repos, where we also export classes directly

  • docs(readme): update badges 1535835
  • docs: update api docs b160b7d
  • docs(readme): update docs 4bb39cb
  • refactor: export exact classes over factory functions def7137
  • chore(package): update dependencie 0215c9f

v1.0.5...v1.1.0