Skip to content

Releases: poppinss/utils

Use maintained version of Lodash

22 Feb 15:56
Compare
Choose a tag to compare
  • chore: update dependencies 8d9dbd5
  • refactor: move types to its own folder 496350f
  • fix: use maintained lodash package (#18) c8c6482

v3.0.3...v3.0.4

Improvements to the types.is(Type) methods to narrow types

11 Feb 05:08
Compare
Choose a tag to compare
  • improvement: narrow types from types.is(Type) methods 459e851

v3.0.2...v3.0.3

Add support for serializing bigint using "safeStringify"

08 Feb 11:40
Compare
Choose a tag to compare
  • test: copy tests from the PR 2c83eed
  • feat: add support for serializing bigints 0a76367
  • fix: lodash types f497ace

v3.0.1...v3.0.2

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