Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@keystonejs/utils

keystonejs1.9kMIT6.1.2TypeScript support: included

Common utility functions used throughout @keystonejs packages.

readme

Utilities

This is the last active development release of this package as Keystone 5 is now in a 6 to 12 month active maintenance phase. For more information please read our Keystone 5 and beyond post.

This package is an internal Keystone package which contains various helper functions which are used throughout the monorepo.

You should probably not use this directly in your Keystone projects.

changelog

@keystonejs/utils

6.1.2

Patch Changes

6.1.1

Patch Changes

6.1.0

Minor Changes

6.0.2

Patch Changes

6.0.1

Patch Changes

6.0.0

Major Changes

  • b76241695 #4430 Thanks @timleslie! - Converted package to TypeScript. flatMap no longer defaults the fn argument to i => i.

5.4.3

Patch Changes

  • 6cb4476ff #3481 Thanks @Noviny! - Updated dependencies through a major version - this shouldn't require change by consumers.

5.4.2

Patch Changes

5.4.1

Patch Changes

5.4.0

Minor Changes

  • 663ae7b4 #2552 Thanks @timleslie! - Added asyncForEach to utils package for iteratively executing an async function over an array.

5.3.0

Minor Changes

5.2.2

Patch Changes

5.2.1

Patch Changes

5.2.0

Minor Changes

5.1.3

Patch Changes

  • 38f88b62 #2144 - Upgraded all @babel/* dependencies.

  • f3ea15f8 #2189 - Upgraded prettier to 1.19.1 and formatted code accordingly.

5.1.2

Patch Changes

  • 3d2c4b3f #2112 - Added knex adaptar database version validiation

5.1.1

Patch Changes

  • 129b0f6 #2092 - Upgrade all Babel deps to the same version (7.7.4)

5.1.0

Minor Changes

5.0.0

Major Changes

  • 7b4ed362 #1821 Thanks @jesstelford! - Release @keystonejs/* packages (つ^ ◡ ^)つ

    • This is the first release of @keystonejs/* packages (previously @keystone-alpha/*).
    • All packages in the @keystone-alpha namespace are now available in the @keystonejs namespace, starting at version 5.0.0.
    • To upgrade your project you must update any @keystone-alpha/* dependencies in package.json to point to "@keystonejs/*": "^5.0.0" and update any require/import statements in your code.

@keystone-alpha/utils

3.2.0

Minor Changes

  • b2c5277e: Add a compose() function to utils.

3.1.0

Minor Changes

  • 857386db: Add filterValues(object, predicate) to remove entries from an object where the value does not match the predicate.

3.0.2

Patch Changes

  • 42c3fbc9: Upgrade promise utility dependencies

3.0.1

Patch Changes

  • 19fe6c1b:

    Move frontmatter in docs into comments

3.0.0

Major Changes

  • b7a2ea9c:

    • Remove checkRequiredConfig, fixConfigKeys and camelize.

Minor Changes

  • c9102446:

    • Add a mechanism for loading multiple Suspense-aware components in parallel

Patch Changes

2.0.0

  • [major]98c02a46:

    • Distribute CommonJS & ESM builds of the @keystone-alpha/utils package.

1.0.1

  • [patch]1f0bc236:

    • Update the package.json author field to "The Keystone Development Team"
  • [patch]9534f98f:

    • Add README.md to package

1.0.0

  • [major] 8b6734ae:

    • This is the first release of keystone-alpha (previously voussoir). All packages in the @voussoir namespace are now available in the @keystone-alpha namespace, starting at version 1.0.0. To upgrade your project you must update any @voussoir/<foo> dependencies in package.json to point to @keystone-alpha/<foo>: "^1.0.0" and update any require/import statements in your code.

@voussoir/utils

1.0.0

  • [major] 723371a0:

    • Correctly surface nested errors from GraphQL
  • [minor] aca26f71:

    • Expose access to GraphQL query method within hooks
  • [minor] a3d5454d:

    • Add flatMap, noop, identity functions

0.3.1

  • [patch] 06b9968e:

    • Add zipObj function

0.3.0

  • [minor] 47c7dcf6" :

    • Bump all packages with a minor version to set a new baseline

0.2.0

  • [patch] Bump all packages for Babel config fixes d51c833
  • [minor] Added createLazyDeferred method 9c75136

0.1.2

  • [patch] Rename readme files a8b995e

0.1.1

  • [patch] Remove tests and markdown from npm dc3ee7d