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

Package detail

@knorm/to-json

knorm18.7kMIT3.0.0TypeScript support: included

toJSON plugin for @knorm/knorm

knorm, plugin, to-json, toJSON

readme

@knorm/to-json

npm version dependency status

Knorm plugin that adds a toJSON method to Knorm's Model class.

Documentation

Visit the documentation site.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.0.0 (2020-04-14)

Note: Version bump only for package @knorm/to-json

3.0.0-alpha.1 (2020-04-14)

Bug Fixes

  • update @knorm/knorm's peer dependency version (c489b79)

3.0.0-alpha.0 (2020-04-14)

Features

  • add typescript type definitions (2a97c00)

BREAKING CHANGES

  • Replaced default exports with named exports. This affects the factory functions that are the main package exports and applies to @knorm/knorm and ALL plugins.

Instead of:

const knorm = require('@knorm/knorm');
const knormPostgres = require('@knorm/postgres');

const { Knorm } = knorm;
const { KnormPostgres } = knormPostgres;

Do:

const { knorm, Knorm } = require('@knorm/knorm');
const { knormPostgres, KnormPostgres } = require('@knorm/postgres');

2.0.0 (2019-02-03)

chore

BREAKING CHANGES

  • This plugin now peer-depends on @knorm/knorm v2

1.0.0 (2018-07-30)

Bug Fixes

Features

  • support configuring exclude per model (9ae4631)