Skip to content

Commit 8fc8c81

Browse files
committed
Merge branch 'master' into feature/custom-element-destroy
* master: (67 commits) add updating guard to binding callback (#5126) Bump lodash from 4.17.15 to 4.17.19 (#5152) Bump lodash from 4.17.15 to 4.17.19 in /site (#5155) Fixes #5153 (#5154) invalidate $$props and $$restProps only when there are changes (#5123) site: use https in link in blog (#5148) Simplify each block bindings example (#5094) fix $$props reactive for slots (#5125) site: add FAQ entry for how to document a svelte component (#5131) site: remove an obsolete TODO in blog post (#5135) Increase timeout for unit build Increase timeout for unit tests -> v3.24.0 spread condition for input element (#5004) update changelog fix(5018): compare wholeText instead of data (#5028) html anchor in head (#5071) error on expression scope store (#5079) update changelog preprocess self-closing script and style tags (#5082) ...
2 parents 6c3e0f5 + 297dfcc commit 8fc8c81

File tree

191 files changed

+4462
-1044
lines changed

Some content is hidden

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

191 files changed

+4462
-1044
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
**/expected.js
33
_output
44
test/*/samples/*/output.js
5-
node_modules
65

76
# automatically generated
87
internal_exports.ts

.eslintrc.js

Lines changed: 2 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,6 @@
11
module.exports = {
22
root: true,
3-
rules: {
4-
indent: 'off',
5-
'no-unused-vars': 'off',
6-
semi: [2, 'always'],
7-
'keyword-spacing': [2, { before: true, after: true }],
8-
'space-before-blocks': [2, 'always'],
9-
'no-mixed-spaces-and-tabs': [2, 'smart-tabs'],
10-
'no-cond-assign': 0,
11-
'object-shorthand': [2, 'always'],
12-
'no-const-assign': 2,
13-
'no-class-assign': 2,
14-
'no-this-before-super': 2,
15-
'no-var': 2,
16-
'no-unreachable': 2,
17-
'valid-typeof': 2,
18-
'quote-props': [2, 'as-needed'],
19-
'one-var': [2, 'never'],
20-
'prefer-arrow-callback': 2,
21-
'prefer-const': [2, { destructuring: 'all' }],
22-
'arrow-spacing': 2,
23-
'no-inner-declarations': 0,
24-
'require-atomic-updates': 'off',
25-
'@typescript-eslint/indent': 'off',
26-
'@typescript-eslint/camelcase': 'off',
27-
'@typescript-eslint/no-use-before-define': 'off',
28-
'@typescript-eslint/array-type': ['error', 'array-simple'],
29-
'@typescript-eslint/explicit-function-return-type': 'off',
30-
'@typescript-eslint/no-explicit-any': 'off',
31-
'@typescript-eslint/explicit-member-accessibility': 'off',
32-
'@typescript-eslint/no-unused-vars': [
33-
'error',
34-
{
35-
argsIgnorePattern: '^_'
36-
}
37-
],
38-
'@typescript-eslint/no-object-literal-type-assertion': 'off',
39-
'@typescript-eslint/no-unused-vars': 'off',
40-
'@typescript-eslint/prefer-interface': 'off'
41-
},
42-
globals: {
43-
globalThis: false
44-
},
45-
env: {
46-
es6: true,
47-
browser: true,
48-
node: true,
49-
mocha: true
50-
},
51-
extends: [
52-
'eslint:recommended',
53-
'plugin:import/errors',
54-
'plugin:import/warnings',
55-
'plugin:import/typescript',
56-
'plugin:@typescript-eslint/recommended'
57-
],
58-
parserOptions: {
59-
ecmaVersion: 9,
60-
sourceType: 'module'
61-
},
62-
plugins: ['svelte3'],
3+
extends: '@sveltejs',
634
settings: {
645
'import/core-modules': [
656
'svelte',
@@ -69,20 +10,5 @@ module.exports = {
6910
'estree'
7011
],
7112
'svelte3/compiler': require('./compiler')
72-
},
73-
overrides: [
74-
{
75-
files: ['*.js'],
76-
rules: {
77-
'@typescript-eslint/no-var-requires': 'off'
78-
}
79-
},
80-
{
81-
files: ['*.svelte'],
82-
processor: 'svelte3/svelte3',
83-
rules: {
84-
'@typescript-eslint/indent': 'off'
85-
}
86-
}
87-
]
13+
}
8814
};

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22

33
### Before submitting the PR, please make sure you do the following
4-
- [ ] It's really useful if your PR relates to an outstanding issue, so please reference it in your PR, or create an explanatory one for discussion. In many cases features are absent for a reason.
4+
- [ ] It's really useful if your PR relates to an outstanding issue, so please reference it in your PR, or create an explanatory one for discussion. In many cases, features are absent for a reason.
55
- [ ] This message body should clearly illustrate what problems it solves. If there are related issues, remember to reference them.
66
- [ ] Ideally, include a test that fails without this PR but passes with it. PRs will only be merged once they pass CI. (Remember to `npm run lint`!)
77
### Tests
8-
- [ ] Run the tests tests with `npm test` or `yarn test`)
8+
- [ ] Run the tests with `npm test` or `yarn test`)

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on: [push, pull_request]
33
jobs:
44
Tests:
55
runs-on: ${{ matrix.os }}
6+
timeout-minutes: 10
67
strategy:
78
matrix:
89
node-version: [8, 10, 12, 14]
@@ -18,12 +19,14 @@ jobs:
1819
CI: true
1920
Lint:
2021
runs-on: ubuntu-latest
22+
timeout-minutes: 2
2123
steps:
2224
- uses: actions/checkout@v1
2325
- uses: actions/setup-node@v1
2426
- run: 'npm i && npm run lint'
2527
Unit:
2628
runs-on: ${{ matrix.os }}
29+
timeout-minutes: 5
2730
strategy:
2831
matrix:
2932
os: [ubuntu-latest, windows-latest, macOS-latest]

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# Svelte changelog
22

3+
## Unreleased
4+
5+
* Prevent duplicate invalidation with certain two-way component bindings ([#3180](https://github.com/sveltejs/svelte/issues/3180), [#5117](https://github.com/sveltejs/svelte/issues/5117), [#5144](https://github.com/sveltejs/svelte/issues/5144))
6+
* Fix reactivity when passing `$$props` to a `<slot>` ([#3364](https://github.com/sveltejs/svelte/issues/3364))
7+
* Fix unneeded invalidation of `$$props` and `$$restProps` ([#4993](https://github.com/sveltejs/svelte/issues/4993), [#5118](https://github.com/sveltejs/svelte/issues/5118))
8+
9+
## 3.24.0
10+
11+
* Support nullish coalescing (`??`) and optional chaining (`?.`) operators ([#1972](https://github.com/sveltejs/svelte/issues/1972))
12+
* Support `import.meta` ([#4379](https://github.com/sveltejs/svelte/issues/4379))
13+
* Fix only setting `<input>` values when they're changed when there are spread attributes ([#4418](https://github.com/sveltejs/svelte/issues/4418))
14+
* Fix placement of `{@html}` when used at the root of a slot, at the root of a component, or in `<svelte:head>` ([#5012](https://github.com/sveltejs/svelte/issues/5012), [#5071](https://github.com/sveltejs/svelte/pull/5071))
15+
* Fix certain handling of two-way bound `contenteditable` elements ([#5018](https://github.com/sveltejs/svelte/issues/5018))
16+
* Fix handling of `import`ed value that is used as a store and is also mutated ([#5019](https://github.com/sveltejs/svelte/issues/5019))
17+
* Do not display `a11y-missing-content` warning on elements with `contenteditable` bindings ([#5020](https://github.com/sveltejs/svelte/issues/5020))
18+
* Fix handling of `this` in inline function expressions in the template ([#5033](https://github.com/sveltejs/svelte/issues/5033))
19+
* Fix collapsing HTML with static content ([#5040](https://github.com/sveltejs/svelte/issues/5040))
20+
* Prevent use of `$store` at compile time when top-level `store` has been shadowed ([#5048](https://github.com/sveltejs/svelte/issues/5048))
21+
* Update `<select>` with one-way `value` binding when the available `<option>`s change ([#5051](https://github.com/sveltejs/svelte/issues/5051))
22+
* Fix published `tweened` types so the `.set()` and `.update()` options are optional ([#5062](https://github.com/sveltejs/svelte/issues/5062))
23+
* Fix contextual `bind:this` inside `{#each}` block ([#5067](https://github.com/sveltejs/svelte/issues/5067))
24+
* Preprocess self-closing `<script>` and `<style>` tags ([#5080](https://github.com/sveltejs/svelte/issues/5080))
25+
* Fix types for animation- and transition-related param objects so each param is optional ([#5083](https://github.com/sveltejs/svelte/pull/5083))
26+
27+
## 3.23.2
28+
29+
* Fix `bind:group` inside `{#each}` ([#3243](https://github.com/sveltejs/svelte/issues/3243))
30+
* Don't crash when using an arrow function as a statement ([#4617](https://github.com/sveltejs/svelte/issues/4617))
31+
* Deconflict `bind:this` variable ([#4636](https://github.com/sveltejs/svelte/issues/4636))
32+
33+
## 3.23.1
34+
35+
* Fix checkbox `bind:group` when multiple options have the same value ([#4397](https://github.com/sveltejs/svelte/issues/4397))
36+
* Fix `bind:this` to the value of an `{#each}` block ([#4517](https://github.com/sveltejs/svelte/issues/4517))
37+
* Fix reactivity when assigning to contextual `{#each}` variable ([#4574](https://github.com/sveltejs/svelte/issues/4574), [#4744](https://github.com/sveltejs/svelte/issues/4744))
38+
* Fix binding to contextual `{#each}` values that shadow outer names ([#4757](https://github.com/sveltejs/svelte/issues/4757))
39+
* Work around EdgeHTML DOM issue when removing attributes during hydration ([#4911](https://github.com/sveltejs/svelte/pull/4911))
40+
* Throw CSS parser error when `:global()` does not contain a selector ([#4930](https://github.com/sveltejs/svelte/issues/4930))
41+
342
## 3.23.0
443

544
* Update `<select>` with `bind:value` when the available `<option>`s change ([#1764](https://github.com/sveltejs/svelte/issues/1764))

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,7 @@ npm run test -- -g transition
6464

6565
## svelte.dev
6666

67-
The source code for https://svelte.dev, including all the documentation, lives in the [site](site) directory. The site is built with [Sapper](https://sapper.svelte.dev). To develop locally:
68-
69-
```bash
70-
cd site
71-
npm install && npm run update
72-
npm run dev
73-
```
67+
The source code for https://svelte.dev, including all the documentation, lives in the [site](site) directory. The site is built with [Sapper](https://sapper.svelte.dev).
7468

7569
### Is svelte.dev down?
7670

0 commit comments

Comments
 (0)