swift-sass

Embed the Dart Sass compiler in Swift with custom importers and functions

MIT License

Stars
7
Committers
1
swift-sass - 2.0.0 Latest Release

Published by johnfairh 12 months ago

Changes relative to 1.7.0:

  • Rewrite Compiler to be an actor and use NIOAsyncChannel to communicate
    with the compiler. Interface is approximately the same; syncShutdownGracefully()
    is gone though to match NIO's approach

  • Shutdown behaviour has changed slightly: if you have compiler jobs running
    concurrently to a shutdown request then they are likely to be cancelled rather
    than left to run before actioning the shutdown

  • Make all Sass functions async: delete SassFunction types and then rename
    SassAsyncFunction types

  • Add loadedURLs to CompilerError

  • Add SassMixin SassScript type

  • Add containingURL and noncanonicalURLSchemes to importers

  • Bundle the 1.69.4 dart-sass binaries

swift-sass - 2.0.0-pre3

Published by johnfairh about 1 year ago

  • Bundle the 1.69.4 dart-sass binaries
  • Add SassMixin SassScript type
  • Add containingURL and noncanonicalURLSchemes to importers
swift-sass - 2.0.0-pre2

Published by johnfairh over 1 year ago

  • Update to latest version of upstream dependencies, Dart Sass 1.63.2 now includes the embedded version

  • Add loaded_urls to CompilerError

swift-sass - 2.0.0-pre1

Published by johnfairh over 1 year ago

  • Rewrite Compiler to be an actor and use NIOAsyncChannel to communicate
    with the compiler. Interface is approximately the same; syncShutdownGracefully()
    is gone though to match NIO's approach.

  • Shutdown behaviour has changed slightly: if you have compiler jobs running
    concurrently to a shutdown request then they are likely to be cancelled rather
    than left to run before actioning the shutdown.

  • Make all Sass functions async: delete SassFunction types and then rename
    SassAsyncFunction types.

I expect to end the 'pre' series when NIOAsyncChannel is officially blessed;
there is also activity on the Sass side to do with reworking the protocol for
higher performance that may get rolled in here depending on timing and impact.

swift-sass - 1.7.0

Published by johnfairh over 1 year ago

  • Bundle the 1.60.0 dart_sass_embedded binaries
swift-sass - 1.6.0

Published by johnfairh about 2 years ago

  • Bundle the 1.54.2 dart_sass_embedded binaries.

This is the first release to include binaries for both arm64 and x86 architectures for both macOS and Linux, selecting the right one when the package is built.

swift-sass - 1.5.0

Published by johnfairh over 2 years ago

  • Bundle the 1.53.0 dart_sass_embedded binaries
swift-sass - 1.4.0

Published by johnfairh over 2 years ago

  • Bundle the 1.50.1 dart_sass_embedded binaries
swift-sass - 1.3.0

Published by johnfairh over 2 years ago

  • Bundle the 1.49.9 dart_sass_embedded binaries
swift-sass - 1.2.0

Published by johnfairh over 2 years ago

  • Bundle the 1.49.9 dart_sass_embedded binaries
swift-sass - 1.1.0

Published by johnfairh over 2 years ago

  • Bundle the 1.49.8 dart_sass_embedded binaries
swift-sass - 1.0.0

Published by johnfairh over 2 years ago

First major release, corresponding to the first stable release of the upstream Dart Sass embedded products.

  • Bundle the 1.49.7 dart_sass_embedded binaries
  • Support generation of source maps containing stylesheet sources
swift-sass - 0.8.0

Published by johnfairh almost 3 years ago

The package now implements every feature of the Sass embedded protocol.

  • Bundle the 1.0.0-beta.14 dart_sass_embedded binaries
  • Convert all interfaces to async-await
  • Add FilesystemImporter
  • Add SassCalculation
swift-sass - 0.6.0

Published by johnfairh about 3 years ago

  • Bundle the 1.0.0-beta.11 dart_sass_embedded binaries
  • Use @spi instead of underscored names to restrict Sass APIs
  • Add SassArgumentList
  • Make .createNew the default in Compiler.init(...)
  • Add SassValue.listCount
  • Support HWB-format SassColors
  • Fix SassColor multithreading bugs
  • Fix SassDynamicFunction identity confusion
swift-sass - 0.5.0

Published by johnfairh about 3 years ago

  • Bundle the 1.0.0-beta-8 dart_sass_embedded binaries
  • Revise swift-log levels per SSWG best practices
  • Enable source maps by default
  • Add CompilerResults.withFileLocation(...) to generate deployable source map and css files
  • Add CompilerResults.loadedURLs
  • Add verboseDeprecations and suppressDependencyWarnings flags to Compiler initializers to control deprecation warnings
  • Require Swift 5.4
swift-sass - 0.4.0

Published by johnfairh over 3 years ago

  • Rename module SassEmbedded to DartSass
  • Move various importer types from Sass into DartSass
  • Always use host process's view of current directory
swift-sass - 0.3.0

Published by johnfairh over 3 years ago

  • Bundle the 1.0.0-beta.7 dart_sass_embedded binaries
  • Remove unsupported CSS output styles
  • Support colorized diagnostic messages
swift-sass - 0.2.0

Published by johnfairh over 3 years ago

  • Bundle the 1.0.0-beta.6 dart_sass_embedded binaries
  • Take out the 'search $PATH' Compiler initializer
  • Support importer on compile-string interfaces
  • Surface compiler versions (currently faked out)
swift-sass - 0.1.1

Published by johnfairh almost 4 years ago

First release.

Package Rankings
Top 42.68% on Swiftpackageindex.com
Badges
Extracted from project README
codecov