Skip to content

Commit

Permalink
Upgrade compiler to latest (#5243)
Browse files Browse the repository at this point in the history
* Upgrade compiler to latest

* Adding a changeset

* Update tests for IIFE wrapping

* Update .changeset/chilly-zoos-exist.md

Co-authored-by: Nate Moore <[email protected]>

Co-authored-by: Nate Moore <[email protected]>
  • Loading branch information
matthewp and natemoo-re authored Oct 28, 2022
1 parent 06d016a commit 7d678c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-zoos-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Upgrade `@astrojs/compiler` to 0.29.x
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/test/astro-directives.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"');
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7d678c9

Please sign in to comment.