Skip to content

Commit 149c100

Browse files
committed
Merge branch 'version-4' into custom-elements-rework
2 parents 1241f43 + c9ccd6e commit 149c100

File tree

42 files changed

+3220
-3146
lines changed

Some content is hidden

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

42 files changed

+3220
-3146
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -6,72 +6,20 @@ on:
66
permissions:
77
contents: read # to fetch code (actions/checkout)
88
jobs:
9-
Setup:
10-
runs-on: ${{ matrix.os }}
11-
strategy:
12-
matrix:
13-
os: [ubuntu-latest, windows-latest, macOS-latest]
14-
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
17-
with:
18-
node-version: 18
19-
cache: npm
20-
- run: npm install
21-
env:
22-
SKIP_PREPARE: true
23-
- run: npm run build
24-
env:
25-
PUBLISH: true
26-
- name: Upload build assets
27-
id: upload-artifact
28-
uses: actions/upload-artifact@v3
29-
with:
30-
name: build-assets
31-
path: |
32-
index.*
33-
compiler.*
34-
ssr.*
35-
action/
36-
animate/
37-
easing/
38-
internal/
39-
motion/
40-
store/
41-
transition/
42-
types/
439
Tests:
44-
needs: Setup
4510
runs-on: ${{ matrix.os }}
4611
timeout-minutes: 15
4712
strategy:
4813
matrix:
49-
node-version: [8, 10, 12, 14, 16, 18]
14+
node-version: [14, 16, 18]
5015
os: [ubuntu-latest, windows-latest, macOS-latest]
5116
steps:
5217
- uses: actions/checkout@v3
5318
- uses: actions/setup-node@v3
5419
with:
5520
node-version: ${{ matrix.node-version }}
5621
cache: npm
57-
- name: Download build assets
58-
uses: actions/download-artifact@v3
59-
id: download-artifact
60-
with:
61-
name: build-assets
62-
- name: Get Node version ${{ runner.os }}
63-
run: echo "NODE_VERSION=`node --version`" >> $GITHUB_ENV
64-
if: runner.os != 'Windows'
65-
- name: Get Node version ${{ runner.os }}
66-
run: |
67-
chcp 65001
68-
echo ("NODE_VERSION=$(node --version)") >> $env:GITHUB_ENV
69-
if: runner.os == 'Windows'
70-
- run: npm install --save-dev puppeteer@13
71-
if: ${{ runner.os == 'Linux' && (!startsWith(env.NODE_VERSION, 'v8.') && !startsWith(env.NODE_VERSION, 'v10.')) }}
7222
- run: npm install
73-
env:
74-
SKIP_PREPARE: true
7523
- run: npm run test:integration
7624
env:
7725
CI: true

CHANGELOG.md

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

3+
## Unreleased (4.0)
4+
5+
* Minimum supported Node version is now Node 14
6+
7+
## Unreleased (3.0)
8+
9+
* Handle `width`/`height` attributes when spreading ([#6752](https://github.com/sveltejs/svelte/issues/6752))
10+
* Add support for resize observer bindings (`<div bind:contentRect|contentBoxSize|borderBoxSize|devicePixelContentBoxSize>`) ([#8022](https://github.com/sveltejs/svelte/pull/8022))
11+
312
## 3.58.0
413

514
* Add `bind:innerText` for `contenteditable` elements ([#3311](https://github.com/sveltejs/svelte/issues/3311))

elements/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,11 @@ export interface HTMLAttributes<T extends EventTarget> extends AriaAttributes, D
546546
*/
547547
'bind:innerText'?: string | undefined | null;
548548

549+
readonly 'bind:contentRect'?: DOMRectReadOnly | undefined | null;
550+
readonly 'bind:contentBoxSize'?: Array<{ blockSize: number; inlineSize: number }> | undefined | null; // TODO make this ResizeObserverSize once we require TS>=4.4
551+
readonly 'bind:borderBoxSize'?: Array<{ blockSize: number; inlineSize: number }> | undefined | null; // TODO make this ResizeObserverSize once we require TS>=4.4
552+
readonly 'bind:devicePixelContentBoxSize'?: Array<{ blockSize: number; inlineSize: number }> | undefined | null; // TODO make this ResizeObserverSize once we require TS>=4.4
553+
549554
// SvelteKit
550555
'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
551556
'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;

generate-type-definitions.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)