Skip to content

Releases: poppinss/utils

Fix for v3.0.0

08 Feb 09:30
Compare
Choose a tag to compare
  • fix: another attempt to fix lodash build 6e7b221
  • fix: the way lodash typings are generated 53b71f1

v3.0.0...v3.0.1

Adding a bunch of new helpers & re-arrange exports

07 Feb 19:46
Compare
Choose a tag to compare

Breaking Changes

The version 3.0 re-format the exports to expose an "helpers" subpath to be used within the AdonisJS apps as well.

The idea is to separate helpers that we need to share with AdonisJS core inside its own module, accessible as ‌@poppinss/utils/build/helpers.

Inside helpers subpath

Following modules are now moved to a subpath.

  • MessageBuilder
  • base64
  • compose
  • fsReadAll
  • interpolate
  • requireAll
  • resolveDir
  • resolveFrom
// Earlier
import {
  MessageBuilder,
  base64,
  compose,
  fsReadAll,
  interpolate,
  requireAll,
  resolveDir,
  resolveFrom,
  safeEqual
} from '@poppinss/utils'

// After version 3.0
import {
  MessageBuilder,
  base64,
  compose,
  fsReadAll,
  interpolate,
  requireAll,
  resolveDir,
  resolveFrom,
  safeEqual
} from '@poppinss/utils/build/helpers'

randomString

The randomString is now part of the string helpers.

// Earlier
import { randomString } from '@poppinss/utils'
randomString(32)

// After version 3.0
import { string } from '@poppinss/utils/build/helpers'
string.generateRandom(32)

lodash

The following lodash functions have been removed with new alternatives.

  • snakeCase
  • camelCase
  • startCase
// Earlier
import { lodash } from '@poppinss/utils'

lodash.snakeCase()
lodash.camelCase()
lodash.startCase()

// After version 3.0
import { string } from '@poppinss/utils/build/helpers'

string.snakeCase()
string.camelCase()
string.titleCase()

Commits

  • chore: generate lodash builder before typescript build 0c2575b
  • docs(README): fix typos 754e087
  • feat: adding bunch of new helpers and reformatting exports 081029e
  • chore: remove redundant typedoc.js file 82baa6f
  • style: fix linter errors 3cee2df
  • chore: reformat source files fec4cd4
  • chore: remove npm-audit hook in favor of synk 18b32b4

v2.5.10...v3.0.0

Add `compose` helper

22 Jan 05:23
Compare
Choose a tag to compare
  • fix: typing issues 58e2535
  • chore(deps): bump highlight.js from 10.4.0 to 10.4.1 (#14) b1afd21
  • feat: add compose utility method b350965
  • chore: update dependencies a04c4b2
  • fix: upgrade ms from 2.1.2 to 2.1.3 (#16) 37be818
  • chore(deps): bump ini from 1.3.5 to 1.3.8 (#15) bdcd4f3

v2.5.9...v2.5.10

Add support for defining a custom strategy function

19 Nov 12:25
Compare
Choose a tag to compare
  • feat: add support for defining custom strategy function 4eefea7

v2.5.8...v2.5.9

Fix a bug with `defineStaticProperties` method

19 Nov 06:31
Compare
Choose a tag to compare
  • fix: allow static properties to be writable 9080fde
  • chore: update dependencies 6dfafad

v2.5.7...v2.5.8

Update underlying dependencies

21 Sep 06:54
Compare
Choose a tag to compare
  • docs(README): fix typos 3752915
  • chore(package): update dependencies 3ce4034

v2.5.6...v2.5.7

Update underlying dependencies

30 Aug 18:57
Compare
Choose a tag to compare
  • chore: update dependencies and remove ts-node in favor of require-ts d64d7a0

v2.5.5...v2.5.6

Improve types for the defineStaticProperty method

21 Aug 09:03
Compare
Choose a tag to compare
  • improvement: make defineStaticProperty helper typed 56d1657

v2.5.4...v2.5.5

Adding defineStaticProperty helper

21 Aug 06:39
Compare
Choose a tag to compare
  • style: reformat markdown files 37d12d2
  • feat: add defineStaticProperty method e16ba91

v2.5.3...v2.5.4

Add `resolveDir` method

14 Aug 05:33
Compare
Choose a tag to compare
  • feat: add resolve dir method d7a1d0f

v2.5.2...v2.5.3