Skip to content

Commit d826947

Browse files
authored
chore: Upgrade to svelte 4 (#50)
BREAKING CHANGE: No more cjs build
1 parent f41d40d commit d826947

Some content is hidden

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

50 files changed

+4037
-6638
lines changed

.github/workflows/index.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
name: "deploy"
1+
name: 'deploy'
22
on:
3-
push:
4-
branches:
5-
- main
3+
push:
4+
branches:
5+
- main
6+
- beta
67
jobs:
7-
release:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v1
12-
with:
13-
node-version: '14'
14-
- run: yarn install
15-
- run: yarn test:ci
16-
- run: yarn build
17-
- run: npx semantic-release
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
20-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
21-
- uses: codecov/codecov-action@v1
22-
with:
23-
file: coverage/lcov.info
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 18
15+
- run: yarn install
16+
- run: yarn test:ci
17+
- run: yarn build
18+
- run: npx semantic-release
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
21+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
- uses: codecov/codecov-action@v3
23+
with:
24+
directory: ./coverage/

.gitignore

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
# Build
2-
.cache/
3-
dist/
4-
stats.html
2+
/build
3+
/dist
4+
/package
5+
/.svelte-kit
56

6-
# Dependencies
7-
node_modules/
7+
# Env
8+
.env
9+
.env.*
810

911
# Misc
1012
.DS_STORE
1113

12-
# NPM
14+
# Dependencies
1315
npm-debug.log*
1416
yarn-debug.log*
1517
yarn-error.log*
1618
package-lock.json
1719
.yarn
20+
/node_modules
1821

1922
# Webstorm
20-
.idea/
23+
/.idea
2124
*.iml
2225

23-
# Jest
24-
coverage/
25-
__snapshots__/
26+
# Tests
27+
/coverage
28+
/__snapshots__

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn test:ci && yarn format

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.test.js

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
dist/
2-
node_modules/
2+
node_modules/

.prettierrc

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,12 @@
11
{
2-
"printWidth": 120,
3-
"useTabs": true,
4-
"tabWidth": 4,
5-
"singleQuote": true,
6-
"semi": false,
7-
"trailingComma": "es5",
8-
"bracketSpacing": true,
9-
"overrides": [
10-
{
11-
"files": "./**/*.js",
12-
"options": {
13-
"parser": "babylon"
14-
}
15-
},
16-
{
17-
"files": "./**/*.json",
18-
"options": {
19-
"parser": "json"
20-
}
21-
},
22-
{
23-
"files": ".prettierrc",
24-
"options": {
25-
"parser": "json"
26-
}
27-
}
28-
]
2+
"printWidth": 120,
3+
"useTabs": true,
4+
"tabWidth": 4,
5+
"singleQuote": true,
6+
"semi": false,
7+
"trailingComma": "es5",
8+
"bracketSpacing": true,
9+
"bracketSameLine": false,
10+
"plugins": ["prettier-plugin-svelte"],
11+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
2912
}

CHANGELOG.md

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,56 @@
44

55
# [1.5.0](https://github.com/untemps/svelte-readotron/compare/v1.4.4...v1.5.0) (2022-02-13)
66

7-
87
### Features
98

10-
* Allow passing function in template prop ([#43](https://github.com/untemps/svelte-readotron/issues/43)) ([7334bc7](https://github.com/untemps/svelte-readotron/commit/7334bc7564b6bbb1ac03c1e0013158fd95d70e6f))
9+
- Allow passing function in template prop ([#43](https://github.com/untemps/svelte-readotron/issues/43)) ([7334bc7](https://github.com/untemps/svelte-readotron/commit/7334bc7564b6bbb1ac03c1e0013158fd95d70e6f))
1110

1211
## [1.4.4](https://github.com/untemps/svelte-readotron/compare/v1.4.3...v1.4.4) (2022-02-11)
1312

1413
## [1.4.3](https://github.com/untemps/svelte-readotron/compare/v1.4.2...v1.4.3) (2022-01-14)
1514

16-
1715
### Bug Fixes
1816

19-
* Fix timeout value ([#40](https://github.com/untemps/svelte-readotron/issues/40)) ([0a6ee30](https://github.com/untemps/svelte-readotron/commit/0a6ee30b80fdc8e8a10df0febbc9cd876a585eeb))
17+
- Fix timeout value ([#40](https://github.com/untemps/svelte-readotron/issues/40)) ([0a6ee30](https://github.com/untemps/svelte-readotron/commit/0a6ee30b80fdc8e8a10df0febbc9cd876a585eeb))
2018

2119
## [1.4.2](https://github.com/untemps/svelte-readotron/compare/v1.4.1...v1.4.2) (2022-01-13)
2220

2321
## [1.4.1](https://github.com/untemps/svelte-readotron/compare/v1.4.0...v1.4.1) (2022-01-13)
2422

25-
2623
### Bug Fixes
2724

28-
* Fix typo in import ([#38](https://github.com/untemps/svelte-readotron/issues/38)) ([937593c](https://github.com/untemps/svelte-readotron/commit/937593c1a51d03cd900b25593c964ee2e5b0ae75))
29-
* Remove duplicate file and fix wrong import ([#37](https://github.com/untemps/svelte-readotron/issues/37)) ([fb6f00b](https://github.com/untemps/svelte-readotron/commit/fb6f00b4489e7381e1a5f9a33f04f3756407a343))
25+
- Fix typo in import ([#38](https://github.com/untemps/svelte-readotron/issues/38)) ([937593c](https://github.com/untemps/svelte-readotron/commit/937593c1a51d03cd900b25593c964ee2e5b0ae75))
26+
- Remove duplicate file and fix wrong import ([#37](https://github.com/untemps/svelte-readotron/issues/37)) ([fb6f00b](https://github.com/untemps/svelte-readotron/commit/fb6f00b4489e7381e1a5f9a33f04f3756407a343))
3027

3128
# [1.4.0](https://github.com/untemps/svelte-readotron/compare/v1.3.0...v1.4.0) (2021-02-03)
3229

33-
3430
### Features
3531

36-
* Add error slot ([50fc885](https://github.com/untemps/svelte-readotron/commit/50fc88593aa56239ffec5b96da4f1220ff2b9263))
32+
- Add error slot ([50fc885](https://github.com/untemps/svelte-readotron/commit/50fc88593aa56239ffec5b96da4f1220ff2b9263))
3733

3834
# [1.3.0](https://github.com/untemps/svelte-readotron/compare/v1.2.1...v1.3.0) (2021-01-30)
3935

40-
4136
### Bug Fixes
4237

43-
* Remove optional chaining syntax ([4fc302f](https://github.com/untemps/svelte-readotron/commit/4fc302fad101d279c3e4adeed7f87258ce71507d))
44-
38+
- Remove optional chaining syntax ([4fc302f](https://github.com/untemps/svelte-readotron/commit/4fc302fad101d279c3e4adeed7f87258ce71507d))
4539

4640
### Features
4741

48-
* Add support for scroll progression ([8b3b8ca](https://github.com/untemps/svelte-readotron/commit/8b3b8ca7c902eaf3493ce789d83ebba8d30bbf50))
49-
* Change event name from 'scroll' to 'change' ([1a24456](https://github.com/untemps/svelte-readotron/commit/1a244560dfc3548286eb65c2117c68e7460aa9e3))
50-
* Dispatch scroll event ([0e69e3e](https://github.com/untemps/svelte-readotron/commit/0e69e3ec69716988393cefe36666f9fe584dbb03))
42+
- Add support for scroll progression ([8b3b8ca](https://github.com/untemps/svelte-readotron/commit/8b3b8ca7c902eaf3493ce789d83ebba8d30bbf50))
43+
- Change event name from 'scroll' to 'change' ([1a24456](https://github.com/untemps/svelte-readotron/commit/1a244560dfc3548286eb65c2117c68e7460aa9e3))
44+
- Dispatch scroll event ([0e69e3e](https://github.com/untemps/svelte-readotron/commit/0e69e3ec69716988393cefe36666f9fe584dbb03))
5145

5246
## [1.2.1](https://github.com/untemps/svelte-readotron/compare/v1.2.0...v1.2.1) (2021-01-22)
5347

5448
# [1.2.0](https://github.com/untemps/svelte-readotron/compare/v1.1.3...v1.2.0) (2021-01-20)
5549

56-
5750
### Bug Fixes
5851

59-
* Fix wrong import in tests ([#11](https://github.com/untemps/svelte-readotron/issues/11)) ([a17bb24](https://github.com/untemps/svelte-readotron/commit/a17bb246fef75704f4dc230d88756526b962c703))
60-
52+
- Fix wrong import in tests ([#11](https://github.com/untemps/svelte-readotron/issues/11)) ([a17bb24](https://github.com/untemps/svelte-readotron/commit/a17bb246fef75704f4dc230d88756526b962c703))
6153

6254
### Features
6355

64-
* Add words token ([7e37756](https://github.com/untemps/svelte-readotron/commit/7e377562e149957ac700d6f8bc34c07dadf6fbe7))
56+
- Add words token ([7e37756](https://github.com/untemps/svelte-readotron/commit/7e377562e149957ac700d6f8bc34c07dadf6fbe7))
6557

6658
## [1.1.3](https://github.com/untemps/svelte-readotron/compare/v1.1.2...v1.1.3) (2021-01-19)
6759

@@ -71,16 +63,14 @@
7163

7264
# [1.1.0](https://github.com/untemps/svelte-readotron/compare/v1.0.1...v1.1.0) (2021-01-11)
7365

74-
7566
### Features
7667

77-
* Add slot support ([#4](https://github.com/untemps/svelte-readotron/issues/4)) ([02f1500](https://github.com/untemps/svelte-readotron/commit/02f1500ca2d71bf77389812c26ce3a35e3b375e6))
68+
- Add slot support ([#4](https://github.com/untemps/svelte-readotron/issues/4)) ([02f1500](https://github.com/untemps/svelte-readotron/commit/02f1500ca2d71bf77389812c26ce3a35e3b375e6))
7869

7970
## [1.0.1](https://github.com/untemps/svelte-readotron/compare/v1.0.0...v1.0.1) (2021-01-06)
8071

8172
# 1.0.0 (2021-01-05)
8273

83-
8474
### Features
8575

86-
* Initiate component ([3c1f907](https://github.com/untemps/svelte-readotron/commit/3c1f907180d0998be37a6b8c49f7c999b0b837a1))
76+
- Initiate component ([3c1f907](https://github.com/untemps/svelte-readotron/commit/3c1f907180d0998be37a6b8c49f7c999b0b837a1))

0 commit comments

Comments
 (0)