Skip to content

Upgrading mlly 0.5 to 1

Unknown0.5.17 → 1.8.2New12Changed8Fixed23Other22

UnknownUpgrade verdict

DepDelta hasn't looked for the notes of 1 of 20 releases yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
  • Their commits are listed with this comparison.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Installs 6 packages in all (was 8).

Moves pathe 1.1.2, 2.0.3 → 2.0.3. Your build may pick other versions.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • changed: function detectSyntax(code: string): { hasESM: boolean; hasCJS: boolean; isMixed: boolean } → function detectSyntax(code: string, opts?: DetectSyntaxOptions): { hasESM: boolean; hasCJS: boolean; isMixed: boolean }
  • changed: function fileURLToPath(id: string): string → function fileURLToPath(id: string | URL): string
  • changed: function hasCJSSyntax(code: string): boolean → function hasCJSSyntax(code: string, opts?: DetectSyntaxOptions): boolean
  • changed: function hasESMSyntax(code: string): boolean → function hasESMSyntax(code: string, opts?: DetectSyntaxOptions): boolean
  • changed: function interopDefault(sourceModule: any): any → function interopDefault(sourceModule: any, opts?: { preferNamespace?: boolean }): any
  • changed: function parseStaticImport(matched: StaticImport): ParsedStaticImport → function parseStaticImport(matched: StaticImport | TypeImport): ParsedStaticImport
  • changed: function resolvePath(id: string, options?: ResolveOptions): Promise<any> → function resolvePath(id: string, options?: ResolveOptions): Promise<string>
  • added: const EXPORT_DECAL_TYPE_RE: RegExp
  • added: function findTypeExports(code: string): ESMExport[]
  • added: function findTypeImports(code: string): TypeImport[]
  • added: function lookupNodeModuleSubpath(path: string): Promise<string | undefined>
  • added: function parseNodeModulePath(path: string): { dir?: undefined; name?: undefined; subpath?: undefined } | { dir: string; name: string; subpath: string | undefined }
  • added: function parseTypeImport(matched: TypeImport | StaticImport): ParsedStaticImport
  • added: function pathToFileURL(id: string | URL): string
  • added: interface TypeImport extends Omit<ESMImport, 'type'>
  • added: property ESMExport.declarationType?: 'let' | 'var' | 'const' | 'enum' | 'const enum' | 'class' | 'function' | 'async function'
  • added: property ESMExport.defaultName?: string
  • added: property TypeImport.imports: string
  • added: property TypeImport.specifier: string
  • added: property TypeImport.type: 'type'
  • added: property ValidNodeImportOptions.stripComments?: boolean
  • added: type DetectSyntaxOptions = { stripComments?: boolean }