Skip to content

BREAKING CHANGE: Invalidate special chars#13

Merged
chrisdickinson merged 4 commits intomasterfrom
invalidate-special-chars
Feb 13, 2017
Merged

BREAKING CHANGE: Invalidate special chars#13
chrisdickinson merged 4 commits intomasterfrom
invalidate-special-chars

Conversation

@chrisdickinson
Copy link
Copy Markdown
Contributor

No longer allow ~!'()* in package names in any position (Surprise, they're url-safe!)

The first commit contains the relevant change; the second commit upgrades the builtins & tap deps; the final commit (noisily) standard-formats the repo.

Comment thread index.js
}

if (/[~'!()*]/.test(name.split('/').slice(-1)[0])) {
warnings.push('name can no longer contain special characters ("~\'!()*")')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious about the choice of using warn rather than error, I imagine:

  1. on the registry we'll block new publications that cause this warning.
  2. the CLI will log the message but allow the publish.
  3. old packages will continue to be able to be published?

This seems reasonable to me, just refreshing myself with this module.

@isaacs
Copy link
Copy Markdown

isaacs commented Feb 13, 2017

This seems to do what it says on the tin. Since it only affects new packages, I'm fine with this. Agreed that it is a breaking change.

Copy link
Copy Markdown

@isaacs isaacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@coveralls
Copy link
Copy Markdown

coveralls commented Feb 13, 2017

Coverage Status

Changes Unknown when pulling 55f1162 on invalidate-special-chars into ** on master**.

@chrisdickinson
Copy link
Copy Markdown
Contributor Author

Merging and publishing as v3.0.0.

@chrisdickinson chrisdickinson merged commit f847db3 into master Feb 13, 2017
@chrisdickinson chrisdickinson deleted the invalidate-special-chars branch February 13, 2017 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants