Skip to content

svgo/lib/svgo/svg2js is no longer available - is there a replacement? #1612

Description

@daKmoR

Describe the bug
Since 2.7.0 the file svgo/lib/svgo/svg2js no longer exists... it is used in https://github.com/Ashung/svg2vectordrawable

Is there a "public" API with the capabilities of svg2js?

To Reproduce
Steps to reproduce the behavior:

  1. mkdir test; cd test
  2. npm i svg2vectordrawable svgo
  3. $ npx s2v -h
  4. node:internal/modules/cjs/loader:936
      throw err;
      ^
    
    Error: Cannot find module 'svgo/lib/svgo/svg2js'
    Require stack:
    // ...
    

Expected behavior
s2v to run

Desktop (please complete the following information):

  • SVGO Version 2.7.x+
  • NodeJs Version v16.11.1
  • OS: Mac

Additional context

I search through some issues and it seems svg2js is considered a private API? if so how about releasing a new major version with an "export" map then those apis will become actually private (e.g. users will no longer be able to import anything that is NOT in the export map)

https://nodejs.org/api/packages.html#exports

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions