Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@clubdeuce
Copy link

What is the status of this? scssphp 2.0 has removed the compile method completely.

@stklcode
Copy link
Author

Friendly ping @greg-1-anderson

I know this PR is quite old, back from the 3.x days, and the SCSS task is probably none of the top used features, but I guess the compatibility fix is still valid.

If there’s something blocking or additional improvement in the wishlist, I’d offer do dig into it again. Otherwise feel free to either merge or close it as is.

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.

2 participants