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

Update for breaking change in sass-embedded 1.68.0 #1664

Merged
merged 2 commits into from Sep 30, 2023
Merged

Update for breaking change in sass-embedded 1.68.0 #1664

merged 2 commits into from Sep 30, 2023

Conversation

ntkme
Copy link
Contributor

@ntkme ntkme commented Sep 20, 2023

Detailed description

In sass-embedded 1.68.0, there is a breaking change in importer function signature.

See: sass-contrib/sass-embedded-host-ruby#156

@ntkme ntkme marked this pull request as ready for review September 21, 2023 03:49
@@ -31,7 +31,7 @@ def initialize(items, source_item)
@source_item = source_item
end

def canonicalize(url, **)
def canonicalize(url, *, **)
Copy link
Contributor Author

@ntkme ntkme Sep 21, 2023

Choose a reason for hiding this comment

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

  • sass-embedded < 1.68.0: def canonicalize(url, from_import:)
  • sass-embedded >= 1.68.0: def canonicalize(url, canonicalize_context)

Since we don't use the context, we can define this method as def canonicalize(url, *, **), which is compatible with all sass-embedded versions.

@ntkme
Copy link
Contributor Author

ntkme commented Sep 21, 2023

@denisdefreyne Sorry about the inconvenience of having a breaking change. Please take a look when you get a chance. Thanks!

@denisdefreyne denisdefreyne merged commit 75355a1 into nanoc:main Sep 30, 2023
4 checks passed
@denisdefreyne
Copy link
Member

Thank you for the fix!

@ntkme ntkme deleted the sass-embedded-1.68.0 branch September 30, 2023 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants