Skip to content

punycode: remove the module system detection from punycode.js #7401

Closed

Description

@yorkie
  • Version: latest
  • Platform: any
  • Subsystem: punycode

lib/punycode.js looks more like the dependency required by the core module url, which is a third party library, and the current source file lib/punycode.js is not that same style with other source files.

So I propose the following:

  • add a deps directory in ./lib directory, so we can put the punycode.js there and load it just like what we are doing except for the source path. (Recommend)
  • update the punycode source file to be the CMD way just like other .js files, this also needs us to add tests and maintainer for this little module even though we are just moving them from the punycode.js project.

Activity

  1. yorkie commented on Jun 24, 2016

    @yorkie
    ContributorAuthor

    Sorry, make a noise issue because of bad networking, closed.

  2. Fishrock123 commented on Jun 24, 2016

    @Fishrock123
    Contributor

    I closed the other. :)

  3. yorkie commented on Jun 24, 2016

    @yorkie
    ContributorAuthor

    Ah Thank you @Fishrock123

  4. yorkie commented on Jun 24, 2016

    @yorkie
    ContributorAuthor

    cc @mathiasbynens, the author of the current punycode.js :-)

  5. silverwind commented on Jun 25, 2016

    @silverwind
    Contributor

    Why not move it to deps? That way, we could also remove the exception in .eslintignore. I'm not oposed to rewriting (and reducing) the code in there itself, but we have to keep in mind that updating it will be a lot less straight-forward.

  6. yorkie commented on Jun 26, 2016

    @yorkie
    ContributorAuthor

    Not putting it into deps just because it's a pure library in pure JavaScript, so it should be loaded in runtime, not the compiling time. This is that the differences.

  7. added
    punycodeIssues and PRs related to the punycode module bundled in Node.js.
    on Jul 13, 2016
  8. jasnell commented on Aug 1, 2016

    @jasnell
    Member

    Recommend closing this given the decision to deprecate the punycode module bundled in core. See: #7941

  9. yorkie commented on Aug 1, 2016

    @yorkie
    ContributorAuthor

    Closing this as @jasnell's recommendation :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    punycodeIssues and PRs related to the punycode module bundled in Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions