Skip to content

[Package Importer] Draft 1.5 #3777

Merged
jgerigmeyer merged 4 commits intosass:mainfrom
oddbird:feature.package-importer-changes-1.5
Jan 24, 2024
Merged

[Package Importer] Draft 1.5 #3777
jgerigmeyer merged 4 commits intosass:mainfrom
oddbird:feature.package-importer-changes-1.5

Conversation

@jamesnw
Copy link
Contributor

@jamesnw jamesnw commented Jan 19, 2024

Copy link
Contributor

@nex3 nex3 left a comment

Choose a reason for hiding this comment

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

It's probably also a good idea to specify that new NodePackageImporter() throws an error if a path isn't passed and the default can't be loaded.

* A URL with non-empty/null username, password, host, port, query, or fragment.

If the conventions or specifications for an environment disallow any other URL
patterns, the Package Importer must not reject, and instead return `null`. This
Copy link
Contributor

Choose a reason for hiding this comment

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

"reject" isn't a well-defined term here. I'd say "must return null rather than throwing an error."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated in 26d30d7

@jamesnw jamesnw requested a review from nex3 January 19, 2024 23:33
@jamesnw
Copy link
Contributor Author

jamesnw commented Jan 19, 2024

It's probably also a good idea to specify that new NodePackageImporter() throws an error if a path isn't passed and the default can't be loaded.

Added in 517b1e2

@jgerigmeyer jgerigmeyer merged commit ca5d894 into sass:main Jan 24, 2024
@jgerigmeyer jgerigmeyer deleted the feature.package-importer-changes-1.5 branch January 24, 2024 23:45
jgerigmeyer added a commit to oddbird/sass that referenced this pull request Jan 24, 2024
* main:
  [Package Importer] Draft 1.5  (sass#3777)
nex3 pushed a commit that referenced this pull request Mar 27, 2024
* Specify no throws for package importer misses

* Reject to throw error

* Specify throw if no entry point

* Fix whitespace
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.

3 participants