Upgrade compiler to latest (#5243)
* Upgrade compiler to latest * Adding a changeset * Update tests for IIFE wrapping * Update .changeset/chilly-zoos-exist.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
This commit is contained in:
parent
06d016a741
commit
7d678c9ed0
4 changed files with 12 additions and 7 deletions
5
.changeset/chilly-zoos-exist.md
Normal file
5
.changeset/chilly-zoos-exist.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Upgrade `@astrojs/compiler` to 0.29.x
|
|
@ -100,7 +100,7 @@
|
|||
"test:e2e:match": "playwright test -g"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/compiler": "^0.28.0",
|
||||
"@astrojs/compiler": "^0.29.5",
|
||||
"@astrojs/language-server": "^0.26.2",
|
||||
"@astrojs/markdown-remark": "^1.1.3",
|
||||
"@astrojs/telemetry": "^1.0.1",
|
||||
|
|
|
@ -19,8 +19,8 @@ describe('Directives', async () => {
|
|||
let i = 0;
|
||||
for (const script of $('script').toArray()) {
|
||||
// Wrap script in scope ({}) to avoid redeclaration errors
|
||||
expect($(script).text().at(0)).to.equal('{');
|
||||
expect($(script).text().at(-1)).to.equal('}');
|
||||
expect($(script).text().startsWith('(function(){')).to.equal(true);
|
||||
expect($(script).text().endsWith('})();')).to.equal(true);
|
||||
if (i < 2) {
|
||||
// Inline defined variables
|
||||
expect($(script).toString()).to.include('const foo = "bar"');
|
||||
|
|
|
@ -362,7 +362,7 @@ importers:
|
|||
|
||||
packages/astro:
|
||||
specifiers:
|
||||
'@astrojs/compiler': ^0.28.0
|
||||
'@astrojs/compiler': ^0.29.5
|
||||
'@astrojs/language-server': ^0.26.2
|
||||
'@astrojs/markdown-remark': ^1.1.3
|
||||
'@astrojs/telemetry': ^1.0.1
|
||||
|
@ -459,7 +459,7 @@ importers:
|
|||
yargs-parser: ^21.0.1
|
||||
zod: ^3.17.3
|
||||
dependencies:
|
||||
'@astrojs/compiler': 0.28.1
|
||||
'@astrojs/compiler': 0.29.5
|
||||
'@astrojs/language-server': 0.26.2
|
||||
'@astrojs/markdown-remark': link:../markdown/remark
|
||||
'@astrojs/telemetry': link:../telemetry
|
||||
|
@ -3813,8 +3813,8 @@ packages:
|
|||
resolution: {integrity: sha512-vBMPy9ok4iLapSyCCT1qsZ9dK7LkVFl9mObtLEmWiec9myGHS9h2kQY2xzPeFNJiWXUf9O6tSyQpQTy5As/p3g==}
|
||||
dev: false
|
||||
|
||||
/@astrojs/compiler/0.28.1:
|
||||
resolution: {integrity: sha512-rcuQs5kcT6OshfJxXkZ2Tn61V4/5UAmvZKma/qmNhpAdBkGk6J/1gJ/Gxa2sAS6WNUjUyVo5BRrdsNGW36qkoQ==}
|
||||
/@astrojs/compiler/0.29.5:
|
||||
resolution: {integrity: sha512-XpSJyBO6ha5mGqsD71ie83SOcv3p7zKq6qzngyeLKhccCXtf9Zn/4tGbi/Iq4YmkRBNCjLEkF0wZMYWY+eJYAA==}
|
||||
dev: false
|
||||
|
||||
/@astrojs/language-server/0.26.2:
|
||||
|
|
Loading…
Reference in a new issue