Skip to content

Export formats separately, without scoping #65

Open
@o-alexandrov

Description

@o-alexandrov

Related issues

By scoping formats into fullFormats and fastFormats:

  • it's harder to do code generation as it's impossible to import a format in a single line
  • it makes it more complicated not to have multiple imports of the same variable

As a breaking change proposal, let's export two modules instead:

  • formats-fast.js
  • formats-full.js

This way, when doing code generation, it'd be possible to have a single line import:

import { int32 } from "ajv-formats/dist/formats-full"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions