Skip to content

Commit df77b66

Browse files
Bump gts from 5.3.1 to 6.0.2 in /pkg/sass-parser (#2415)
* Bump gts from 5.3.1 to 6.0.2 in /pkg/sass-parser Bumps [gts](https://github.com/google/gts) from 5.3.1 to 6.0.2. - [Release notes](https://github.com/google/gts/releases) - [Changelog](https://github.com/google/gts/blob/main/CHANGELOG.md) - [Commits](google/gts@v5.3.1...v6.0.2) --- updated-dependencies: - dependency-name: gts dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Run `npm run fix` after updating gts on sass-parser * Disable useDefineForClassFields, it is being enabled by gts v6+ --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Israel Ortiz García <[email protected]>
1 parent be0b42a commit df77b66

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+568
-549
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.80.6-dev
2+
3+
* No user-visible changes.
4+
15
## 1.80.5
26

37
### Embedded Host

pkg/sass-parser/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.3-dev
2+
3+
* No user-visible changes.
4+
15
## 0.4.2
26

37
* Add support for parsing variable declarations.

pkg/sass-parser/lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class _Syntax implements Syntax {
130130

131131
return new Root(
132132
undefined,
133-
sassInternal.parse(css.toString(), this.#syntax, opts?.from)
133+
sassInternal.parse(css.toString(), this.#syntax, opts?.from),
134134
);
135135
}
136136

pkg/sass-parser/lib/src/configuration.test.ts

+23-22
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('a configuration map', () => {
1818
describe('empty', () => {
1919
function describeNode(
2020
description: string,
21-
create: () => Configuration
21+
create: () => Configuration,
2222
): void {
2323
describe(description, () => {
2424
beforeEach(() => (node = create()));
@@ -35,12 +35,12 @@ describe('a configuration map', () => {
3535

3636
describeNode(
3737
'parsed as SCSS',
38-
() => (scss.parse('@use "foo"').nodes[0] as UseRule).configuration
38+
() => (scss.parse('@use "foo"').nodes[0] as UseRule).configuration,
3939
);
4040

4141
describeNode(
4242
'parsed as Sass',
43-
() => (sass.parse('@use "foo"').nodes[0] as UseRule).configuration
43+
() => (sass.parse('@use "foo"').nodes[0] as UseRule).configuration,
4444
);
4545

4646
describe('constructed manually', () => {
@@ -50,22 +50,22 @@ describe('a configuration map', () => {
5050

5151
describeNode(
5252
'variables record',
53-
() => new Configuration({variables: {}})
53+
() => new Configuration({variables: {}}),
5454
);
5555
});
5656

5757
describeNode(
5858
'constructed from props',
5959
() =>
6060
new UseRule({useUrl: 'foo', configuration: {variables: []}})
61-
.configuration
61+
.configuration,
6262
);
6363
});
6464

6565
describe('with a variable', () => {
6666
function describeNode(
6767
description: string,
68-
create: () => Configuration
68+
create: () => Configuration,
6969
): void {
7070
describe(description, () => {
7171
beforeEach(() => (node = create()));
@@ -86,14 +86,14 @@ describe('a configuration map', () => {
8686
'parsed as SCSS',
8787
() =>
8888
(scss.parse('@use "foo" with ($bar: "baz")').nodes[0] as UseRule)
89-
.configuration
89+
.configuration,
9090
);
9191

9292
describeNode(
9393
'parsed as Sass',
9494
() =>
9595
(sass.parse('@use "foo" with ($bar: "baz")').nodes[0] as UseRule)
96-
.configuration
96+
.configuration,
9797
);
9898

9999
describe('constructed manually', () => {
@@ -104,12 +104,13 @@ describe('a configuration map', () => {
104104
variables: [
105105
{variableName: 'bar', expression: {text: 'baz', quotes: true}},
106106
],
107-
})
107+
}),
108108
);
109109

110110
describeNode(
111111
'variables record',
112-
() => new Configuration({variables: {bar: {text: 'baz', quotes: true}}})
112+
() =>
113+
new Configuration({variables: {bar: {text: 'baz', quotes: true}}}),
113114
);
114115
});
115116

@@ -119,7 +120,7 @@ describe('a configuration map', () => {
119120
new UseRule({
120121
useUrl: 'foo',
121122
configuration: {variables: {bar: {text: 'baz', quotes: true}}},
122-
}).configuration
123+
}).configuration,
123124
);
124125
});
125126

@@ -225,7 +226,7 @@ describe('a configuration map', () => {
225226
describe('adds a new variable', () => {
226227
function describeVariable(
227228
description: string,
228-
create: () => Configuration
229+
create: () => Configuration,
229230
): void {
230231
it(description, () => {
231232
expect(create()).toBe(node);
@@ -238,15 +239,15 @@ describe('a configuration map', () => {
238239
}
239240

240241
describeVariable('with Expression', () =>
241-
node.set('baz', new StringExpression({text: 'bang', quotes: true}))
242+
node.set('baz', new StringExpression({text: 'bang', quotes: true})),
242243
);
243244

244245
describeVariable('with ExpressionProps', () =>
245-
node.set('baz', {text: 'bang', quotes: true})
246+
node.set('baz', {text: 'bang', quotes: true}),
246247
);
247248

248249
describeVariable('with ConfiguredVariableObjectProps', () =>
249-
node.set('baz', {expression: {text: 'bang', quotes: true}})
250+
node.set('baz', {expression: {text: 'bang', quotes: true}}),
250251
);
251252
});
252253

@@ -269,7 +270,7 @@ describe('a configuration map', () => {
269270
foo: {text: 'bar', quotes: true},
270271
baz: {text: 'bang', quotes: true},
271272
},
272-
}).toString()
273+
}).toString(),
273274
).toBe('($foo: "bar", $baz: "bang")'));
274275
});
275276

@@ -281,7 +282,7 @@ describe('a configuration map', () => {
281282
foo: {text: 'bar', quotes: true},
282283
baz: {text: 'bang', quotes: true},
283284
},
284-
}).toString()
285+
}).toString(),
285286
).toBe('($foo: "bar", $baz: "bang",)'));
286287

287288
it('with comma: true and afterValue', () =>
@@ -295,7 +296,7 @@ describe('a configuration map', () => {
295296
raws: {afterValue: '/**/'},
296297
},
297298
},
298-
}).toString()
299+
}).toString(),
299300
).toBe('($foo: "bar", $baz: "bang"/**/,)'));
300301

301302
it('with after', () =>
@@ -306,7 +307,7 @@ describe('a configuration map', () => {
306307
foo: {text: 'bar', quotes: true},
307308
baz: {text: 'bang', quotes: true},
308309
},
309-
}).toString()
310+
}).toString(),
310311
).toBe('($foo: "bar", $baz: "bang"/**/)'));
311312

312313
it('with after and afterValue', () =>
@@ -320,7 +321,7 @@ describe('a configuration map', () => {
320321
raws: {afterValue: ' '},
321322
},
322323
},
323-
}).toString()
324+
}).toString(),
324325
).toBe('($foo: "bar", $baz: "bang" /**/)'));
325326

326327
it('with afterValue and a guard', () =>
@@ -334,7 +335,7 @@ describe('a configuration map', () => {
334335
guarded: true,
335336
},
336337
},
337-
}).toString()
338+
}).toString(),
338339
).toBe('($foo: "bar", $baz: "bang" !default/**/)'));
339340
});
340341
});
@@ -422,6 +423,6 @@ describe('a configuration map', () => {
422423
it.skip('toJSON', () =>
423424
expect(
424425
(scss.parse('@use "foo" with ($baz: "qux")').nodes[0] as UseRule)
425-
.configuration
426+
.configuration,
426427
).toMatchSnapshot());
427428
});

pkg/sass-parser/lib/src/configuration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class Configuration extends Node {
6666
constructor(_: undefined, inner: sassInternal.ConfiguredVariable[]);
6767
constructor(
6868
defaults?: ConfigurationProps,
69-
inner?: sassInternal.ConfiguredVariable[]
69+
inner?: sassInternal.ConfiguredVariable[],
7070
) {
7171
super({});
7272
this.raws = defaults?.raws ?? {};

0 commit comments

Comments
 (0)