Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Real™ package™)™ #425

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NullVoxPopuli
Copy link
Sponsor Contributor

@NullVoxPopuli NullVoxPopuli commented Mar 4, 2024

Replaces: #345

BREAKING:

  • requires ember-auto-import or embroider

Maybe breaking:


a type=module packages is more of a real package than a v2 addon (currently) because v2 addons are often CJS masquerading as ESM. When a package.json does not have type=module specified, it's assumed that the .js extension means "Common JS" / require. This isn't great if we want to be better integrated with broader ecosystem tooling. So, since @ember/string does not depend on any ember APIs, it's actually a great candidate for using real ESM, ahead of auto-import/embroider releasing fixes for ESM "ember-addon" packages. (An ember-addon is a package with ember-addon in its keywords list)

Where'd the test-app go?

I deleted it. This work is under the assumption that, because we don't use anything from ember, and because vitest knows nothing about ember, some basic unit tests ensure that the package works, and would be compatible with all versions of ember that have ember-auto-import or are using embroider.

@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review March 4, 2024 16:04
@NullVoxPopuli NullVoxPopuli changed the title Real package (Real™ package™)™ Mar 4, 2024
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.

None yet

1 participant