Skip to content

[7.0] Remove old babel-runtime code #5184

Closed

Description

@hzoo

We can drop some more backwards-compat stuff in some packages.

  • comment below you are going to do this (for others to know)
  • read CONTRIBUTING.md
  • check you are on 7.0 branch
  • remove old code referencing padLeft/padRight
    // Should be removed in the next major release:
    var legacy = [
    ["string/pad-left", "string/pad-start"],
    ["string/pad-right", "string/pad-end"]
    ];
    legacy.forEach(function(pair) {
    const a = pair[0];
    const b = pair[1];
    writeFile("core-js/" + a + ".js", defaultify('require("core-js/library/fn/' + b + '")'));
    });

The comment says: // Should be removed in the next major release: so 👍

  • run make test or npm test

Activity

  1. added
    PR: Breaking Change 💥
    on Jan 21, 2017
  2. added this to the Babel 7 milestone on Jan 21, 2017
  3. vkbansal commented on Jan 21, 2017

    @vkbansal
    Contributor

    I'll take it

  4. vkbansal commented on Jan 21, 2017

    @vkbansal
    Contributor
    • comment below you are going to do this (for others to know)
    • read CONTRIBUTING.md
    • check you are on 7.0 branch
    • remove old code referencing padLeft/padRight
    • run make test or npm test
  5. added
    outdated
    on May 5, 2018
  6. locked as resolved and limited conversation to collaborators on May 5, 2018
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

    Has PRPR: Breaking Change 💥good first issuehelp wantedoutdated

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions