fix awaited expressions that need parentheses (#4283)

pull/4286/head
Conduitry 5 years ago committed by GitHub
parent b39282a918
commit 2f81365e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,7 @@
* Disallow two-way binding to a variable declared by an `{#await}` block ([#4012](https://github.com/sveltejs/svelte/issues/4012)) * Disallow two-way binding to a variable declared by an `{#await}` block ([#4012](https://github.com/sveltejs/svelte/issues/4012))
* Allow access to `let:` variables in sibling attributes on slot root ([#4173](https://github.com/sveltejs/svelte/issues/4173)) * Allow access to `let:` variables in sibling attributes on slot root ([#4173](https://github.com/sveltejs/svelte/issues/4173))
* Fix code generation for `await`ed expressions that need parentheses ([#4267](https://github.com/sveltejs/svelte/issues/4267))
* Add some more known globals ([#4276](https://github.com/sveltejs/svelte/pull/4276)) * Add some more known globals ([#4276](https://github.com/sveltejs/svelte/pull/4276))
* Correctly apply event modifiers to `<svelte:body>` events ([#4278](https://github.com/sveltejs/svelte/issues/4278)) * Correctly apply event modifiers to `<svelte:body>` events ([#4278](https://github.com/sveltejs/svelte/issues/4278))

8
package-lock.json generated

@ -1,6 +1,6 @@
{ {
"name": "svelte", "name": "svelte",
"version": "3.17.0", "version": "3.17.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@ -597,9 +597,9 @@
"dev": true "dev": true
}, },
"code-red": { "code-red": {
"version": "0.0.28", "version": "0.0.30",
"resolved": "https://registry.npmjs.org/code-red/-/code-red-0.0.28.tgz", "resolved": "https://registry.npmjs.org/code-red/-/code-red-0.0.30.tgz",
"integrity": "sha512-k9L7Sp85HNt3f/CvfrZKXoZOaO0tWOJCw2kU5GKc/c5pDj52OgBa0J+krMRmYtnGzS2dk4Xrn0EjjsJaM51hWQ==", "integrity": "sha512-nsScy3A59tbV5uzndcedIEGHmdWNEByJrC7DUyb0Wh7qZcoPfAlcYsr0ZINkAEhZofSI26F1mi+lRO0/6EV2/g==",
"dev": true, "dev": true,
"requires": { "requires": {
"acorn": "^7.1.0", "acorn": "^7.1.0",

@ -70,7 +70,7 @@
"acorn": "^7.1.0", "acorn": "^7.1.0",
"agadoo": "^1.1.0", "agadoo": "^1.1.0",
"c8": "^5.0.1", "c8": "^5.0.1",
"code-red": "0.0.28", "code-red": "0.0.30",
"codecov": "^3.5.0", "codecov": "^3.5.0",
"css-tree": "1.0.0-alpha22", "css-tree": "1.0.0-alpha22",
"eslint": "^6.3.0", "eslint": "^6.3.0",

@ -103,7 +103,7 @@ class Component extends SvelteComponentDev {
}); });
const { ctx } = this.$$; const { ctx } = this.$$;
const props = options.props || ({}); const props = options.props || {};
if (/*name*/ ctx[0] === undefined && !("name" in props)) { if (/*name*/ ctx[0] === undefined && !("name" in props)) {
console.warn("<Component> was created without expected prop 'name'"); console.warn("<Component> was created without expected prop 'name'");

@ -210,7 +210,7 @@ class Component extends SvelteComponentDev {
}); });
const { ctx } = this.$$; const { ctx } = this.$$;
const props = options.props || ({}); const props = options.props || {};
if (/*things*/ ctx[0] === undefined && !("things" in props)) { if (/*things*/ ctx[0] === undefined && !("things" in props)) {
console.warn("<Component> was created without expected prop 'things'"); console.warn("<Component> was created without expected prop 'things'");

@ -198,7 +198,7 @@ class Component extends SvelteComponentDev {
}); });
const { ctx } = this.$$; const { ctx } = this.$$;
const props = options.props || ({}); const props = options.props || {};
if (/*things*/ ctx[0] === undefined && !("things" in props)) { if (/*things*/ ctx[0] === undefined && !("things" in props)) {
console.warn("<Component> was created without expected prop 'things'"); console.warn("<Component> was created without expected prop 'things'");

@ -107,7 +107,7 @@ class Component extends SvelteComponentDev {
}); });
const { ctx } = this.$$; const { ctx } = this.$$;
const props = options.props || ({}); const props = options.props || {};
if (/*foo*/ ctx[0] === undefined && !("foo" in props)) { if (/*foo*/ ctx[0] === undefined && !("foo" in props)) {
console.warn("<Component> was created without expected prop 'foo'"); console.warn("<Component> was created without expected prop 'foo'");

Loading…
Cancel
Save