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

[Shared Resources] Embedded host implementation #261

Merged
merged 38 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e8032ae
Flesh out the sync Compiler class
jerivas Nov 13, 2023
eb23204
Factor out common compilation helpers
jerivas Nov 13, 2023
9e78051
Add AsyncCompiler
jerivas Nov 13, 2023
4aaa65f
Autofix
jerivas Nov 13, 2023
1caf32e
Bring back legacy checks
jerivas Nov 14, 2023
b41959e
Don't autoclose the sync compiler
jerivas Nov 14, 2023
7906f99
Update module exports
jerivas Nov 14, 2023
ebfddd9
Let active compilations settle before disposing
jerivas Nov 14, 2023
c47a958
update copyright
jgerigmeyer Nov 15, 2023
a6ca5d9
Add try/catch to sync functions as well
jerivas Nov 15, 2023
8ecb0e3
Export compiler classes
jerivas Nov 16, 2023
ba7c156
Remove complete compilations from compiler state
jerivas Nov 16, 2023
cdd32ca
Update comments
jerivas Nov 16, 2023
fbbe407
Add unique compilation IDs
jerivas Nov 16, 2023
c35c965
Lint
jerivas Nov 16, 2023
298daab
Add missing getter
jerivas Nov 16, 2023
06974e1
Reuse package and message transformers
jerivas Nov 21, 2023
7b7fbf7
Throw errors if Compiler classes directly contructed
jamesnw Dec 15, 2023
e7e4868
Merge branch 'main' of https://github.com/sass/embedded-host-node int…
jamesnw Dec 16, 2023
297cf67
Use compiler-level compilation IDs
jerivas Dec 23, 2023
b03ef75
Fix compilation ID reset bug in AsyncCompiler and Compiler
jerivas Dec 27, 2023
ddfb710
Track active compilations when building the request
jerivas Dec 27, 2023
bf7cf3c
Update comments and type annotations
jerivas Jan 4, 2024
7138091
Unsubscribe dispatchers when they execute their callback
jerivas Jan 4, 2024
d79ada4
Use consistent cwd for compiler processes
jerivas Jan 4, 2024
26a0338
Resolve paths before sending them to the compiler process
jerivas Jan 4, 2024
55e64f2
Lint
jerivas Jan 4, 2024
612db59
Add missing await
jerivas Jan 4, 2024
329fa94
Clean up Dispatcher class
jerivas Jan 4, 2024
2556525
Update compiler imports and file structure
jerivas Jan 6, 2024
f5c2e8a
Update copyright year
jerivas Jan 6, 2024
66a7f66
Add comments
jerivas Jan 6, 2024
55a55ed
Update comment
jerivas Jan 8, 2024
0f0b5aa
Merge branch 'main' into feature.shared-resources
jgerigmeyer Jan 8, 2024
2b24ec4
update comments
jgerigmeyer Jan 8, 2024
a222ff2
copyrights are inconsistent in this repo
jgerigmeyer Jan 8, 2024
84ae6a4
Add private id to FunctionRegistry
jerivas Jan 11, 2024
82819b0
Merge branch 'main' into feature.shared-resources
jerivas Jan 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions lib/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ export const compile = sass.compile;
export const compileAsync = sass.compileAsync;
export const compileString = sass.compileString;
export const compileStringAsync = sass.compileStringAsync;
export const AsyncCompiler = sass.AsyncCompiler;
export const Compiler = sass.Compiler;
export const initAsyncCompiler = sass.initAsyncCompiler;
export const initCompiler = sass.initCompiler;
export const Logger = sass.Logger;
export const CalculationInterpolation = sass.CalculationInterpolation;
export const CalculationOperation = sass.CalculationOperation;
Expand Down Expand Up @@ -61,6 +65,22 @@ export default {
defaultExportDeprecation();
return sass.compileStringAsync;
},
get initAsyncCompiler() {
defaultExportDeprecation();
return sass.initAsyncCompiler;
},
get initCompiler() {
defaultExportDeprecation();
return sass.initCompiler;
},
get AsyncCompiler() {
defaultExportDeprecation();
return sass.AsyncCompiler;
},
get Compiler() {
defaultExportDeprecation();
return sass.Compiler;
},
get Logger() {
defaultExportDeprecation();
return sass.Logger;
Expand Down
2 changes: 2 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export {
compileAsync,
compileStringAsync,
} from './src/compile';
export {initAsyncCompiler, AsyncCompiler} from './src/compiler/async';
export {initCompiler, Compiler} from './src/compiler/sync';
export {render, renderSync} from './src/legacy';

export const info = `sass-embedded\t${pkg.version}`;
Expand Down
47 changes: 0 additions & 47 deletions lib/src/async-compiler.ts

This file was deleted.

Loading