Skip to content

Commit

Permalink
v0.4.2 - Upgrade svelte to v4 (#59)
Browse files Browse the repository at this point in the history
Fixes #58
  • Loading branch information
ballercat authored Aug 1, 2024
1 parent a6655cf commit 95e225f
Show file tree
Hide file tree
Showing 41 changed files with 294 additions and 65 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
- name: Unit tests
uses: actions/setup-node@v3
with:
node-version: 16.x.x
node-version: 20.x.x
- run: yarn
- run: yarn test
- name: cypress
if: ${{ false }}
uses: cypress-io/github-action@v5
with:
start: npm run e2e
Expand All @@ -38,7 +39,7 @@ jobs:
- name: Lints
uses: actions/setup-node@v3
with:
node-version: 16.x.x
node-version: 20.x.x
- run: yarn
- run: yarn lint
build:
Expand All @@ -48,7 +49,7 @@ jobs:
- name: Lints
uses: actions/setup-node@v3
with:
node-version: 16.x.x
node-version: 20.x.x
- run: yarn
- run: yarn build

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.4.2 - Upgrade svelte

- chore: upgrade svelte to 4.x
- chore: disabled cypress in CI due to bug

## 0.4.1 - Automatically update host header

- fix: auto update host header during forwarding
Expand Down
7 changes: 4 additions & 3 deletions jambox.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
*/
module.exports = {
blockNetworkRequests: false,
forward: {
'http://jambox-test.com': {
forward: [
{
match: 'http://jambox-test.com',
target: 'http://localhost:7777',
paths: ['**'],
},
},
],
stub: {
'**/pathC': {
status: 200,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jambox",
"version": "0.4.1",
"version": "0.4.2",
"description": "Tool for recording and playing back HTTP requests.",
"bin": {
"jam": "./jam.mjs",
Expand All @@ -17,7 +17,7 @@
"build": "webpack",
"dev": "nodemon --watch ext --watch src --exec ./jam-server.mjs",
"test": "c8 -r=text -r=lcov ava",
"e2e": "c8 -o ./coverage-cypress -r=text -r=lcov node ./e2e-backend.mjs",
"e2e": "NODE_OPTIONS=--dns-result-order=ipv4first c8 -o ./coverage-cypress -r=text -r=lcov node ./e2e-backend.mjs",
"e2e-dev": "nodemon --watch ext --watch src --exec ./e2e-backend.mjs",
"cy": "HTTP_PROXY=http://localhost:8000 cypress open --component",
"cy-ci": "HTTP_PROXY=http://localhost:8000 cypress run --component",
Expand Down Expand Up @@ -62,7 +62,7 @@
"c8": "^7.12.0",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.1",
"cypress": "^12.14.0",
"cypress": "^13.13.2",
"eslint": "^8.31.0",
"eslint-plugin-svelte3": "^4.0.0",
"eslint-plugin-typescript": "^0.14.0",
Expand All @@ -77,7 +77,7 @@
"proxy-agent": "^5.0.0",
"supertest": "^6.3.1",
"superwstest": "^2.0.3",
"svelte": "^3.55.0",
"svelte": "^4.2.18",
"svelte-loader": "^3.1.4",
"svelte-watch-resize": "^1.0.3",
"typescript": "^5.1.3",
Expand Down
7 changes: 5 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ module.exports = {
resolve: {
extensions: ['.js', '.mjs', '.svelte'],
alias: {
// svelte: path.resolve('node_modules', 'svelte'),
svelte: path.dirname(require.resolve('svelte/package.json')),
svelte: path.resolve('node_modules', 'svelte/src/runtime'),
// svelte: path.dirname(require.resolve('svelte/package.json')),
},
mainFields: ['svelte', 'browser', 'module', 'main'],
conditionNames: ['svelte', 'import'],
},
devServer: {
host: 'localhost',
},
plugins: [
new ManifestPlugin(),
new HTMLWebpackPlugin({
Expand Down
Loading

0 comments on commit 95e225f

Please sign in to comment.