APIDevTools / json-schema-ref-parser

Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers
https://apitools.dev/json-schema-ref-parser
MIT License
942 stars 226 forks source link

Default export is brocken (ES Modules) #306

Closed flovogt closed 5 months ago

flovogt commented 1 year ago

When using version 10.0.1 it was possible to use

import $RefParser from "@apidevtools/json-schema-ref-parser";

When upgrading to 10.1.0 the default export doesn't work anymore. I have to use the named export.

import {$RefParser} from "@apidevtools/json-schema-ref-parser";

Is this desired? If so, it would be a breaking change.

See https://github.com/SAP/ui5-tooling/pull/761