Skip to content

Document the new export(s) #35

Description

@josephlevarato

Module version

4.0.1

What documentation problem did you notice?

When upgrading to hapi/bourne >= 4, the code breaks because you no longer have to do this:

import Bourne from 'hapi/bourne'

// ...

parseJson: text => Bourne.safeParse(text)

Instead, you have to do this:

import { safeParse } from '@hapi/bourne'

// ...
parseJson: text => safeParse(text)

The thing is, while it's really minor and I solved the problem in seconds, this change isn't documented anywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions