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

add support for compileString() method in scssphp 1.5 and above #1043

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

stklcode
Copy link

Overview

This pull request:

  • Fixes a bug
  • Adds a feature
  • Breaks backwards compatibility
  • Has tests that cover changes
  • Adds or fixes documentation

Summary

Add support for new compileString() method which returns a result object instead of string.

Description

The SCSS task uses Compiler::compile() which is deprecated in current scssphp.
Check, if compileString() is available and use it, if so.

This change does not break compatibility with scssphp/scssphp ~1.0.0, but eliminates the deprecation warning with 1.5 and above.

Could probably ease extension for source map, because the CompilationResult has a getSourceMap() method to access the output from the very same result object.

@stklcode stklcode changed the base branch from 3.x to 4.x June 15, 2022 19:20
The SCSS task uses Compiler::compile() which is deprecated in current
scssphp. Add support for new compileString() method which returns a
result object instead of string.
@stklcode stklcode force-pushed the feature/scssphp-compilestring branch from d84b949 to 1cc58a0 Compare June 15, 2022 19:23
@stklcode stklcode force-pushed the feature/scssphp-compilestring branch from 1cc58a0 to dd3e1ea Compare May 28, 2024 18:46
@stklcode stklcode changed the base branch from 4.x to 5.x May 28, 2024 18:46
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.

1 participant