From 1e197d84fa82166e6a4b9d401f6a83c56197e5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Thu, 30 Nov 2023 10:00:20 -0800 Subject: [PATCH] Add Sass::Embedded.new for backward compatibility --- lib/sass/compiler.rb | 2 +- lib/sass/embedded.rb | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/sass/compiler.rb b/lib/sass/compiler.rb index 3f7b2eb9..ee2020f0 100644 --- a/lib/sass/compiler.rb +++ b/lib/sass/compiler.rb @@ -16,7 +16,7 @@ require_relative 'value' module Sass - # The {Embedded} host for using dart-sass. Each instance creates its own + # The {Compiler} for using dart-sass. Each instance creates its own # communication {Dispatcher} with a dedicated compiler process. # # @example diff --git a/lib/sass/embedded.rb b/lib/sass/embedded.rb index 92fdf4b0..a6ae00fa 100644 --- a/lib/sass/embedded.rb +++ b/lib/sass/embedded.rb @@ -63,4 +63,14 @@ def instance end end # rubocop:enable Layout/LineLength + + # The {Embedded} module. + module Embedded + module_function + + # @deprecated Use {Compiler#new} instead. + def new + Compiler.new + end + end end