Skip to content

Commit 3114c4b

Browse files
authored
Upgrade dependencies and fix linting issues. (#105)
* Transpile stacktracejs into local esm package and consume it. * fixed issue with angular build * fixed missing npm scripts * fixed publish config * Fix jest error * try and fix the jest default export * Updated Deps * Updated svelte * Updated packages * Fixed test asserts * Fixed mocking of test submission clients * Fixed typing of browser and node shared functions (setTimeout / setInterval) * Bumped deps * Reverted stack trace changes * Fixed eslint and ts-ignore problems
1 parent 8d1d4a6 commit 3114c4b

Some content is hidden

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

48 files changed

+33317
-42747
lines changed

example/browser/package.json

-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
"type": "module",
88
"author": "Exceptionless",
99
"license": "Apache-2.0",
10-
"scripts": {
11-
"build": "",
12-
"watch": "",
13-
"test": ""
14-
},
1510
"publishConfig": {
1611
"access": "restricted"
1712
},

example/express/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@
88
"author": "Exceptionless",
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"build": "",
12-
"watch": "",
13-
"test": "",
1411
"dev": "nodemon app.js",
1512
"start": "node app.js"
1613
},
1714
"publishConfig": {
1815
"access": "restricted"
1916
},
2017
"dependencies": {
21-
"express": "4.17.1",
18+
"express": "^4.18.2",
2219
"@exceptionless/node": "2.0.0-dev"
2320
}
2421
}

example/react/package.json

+8-10
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"scripts": {
66
"start": "react-scripts start",
77
"build": "react-scripts build",
8-
"test": "",
9-
"eject": "react-scripts eject",
10-
"watch": ""
8+
"eject": "react-scripts eject"
119
},
1210
"eslintConfig": {
1311
"extends": [
@@ -28,16 +26,16 @@
2826
]
2927
},
3028
"devDependencies": {
31-
"@testing-library/jest-dom": "^5.14.1",
32-
"@testing-library/react": "^12.0.0",
33-
"@testing-library/user-event": "^13.2.1",
34-
"react-scripts": "4.0.3"
29+
"@testing-library/jest-dom": "^5.16.5",
30+
"@testing-library/react": "^13.4.0",
31+
"@testing-library/user-event": "^14.4.3",
32+
"react-scripts": "^5.0.1"
3533
},
3634
"dependencies": {
3735
"@exceptionless/react": "2.0.0-dev",
38-
"react": "^17.0.2",
39-
"react-dom": "^17.0.2",
40-
"web-vitals": "^2.1.0"
36+
"react": "^18.2.0",
37+
"react-dom": "^18.2.0",
38+
"web-vitals": "^3.1.1"
4139
},
4240
"publishConfig": {
4341
"access": "restricted"

example/react/src/index.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import { createRoot } from 'react-dom/client';
33
import './index.css';
44
import App from './App';
55
import reportWebVitals from './reportWebVitals';
66

7-
ReactDOM.render(
7+
const container = document.getElementById('root');
8+
const root = createRoot(container);
9+
10+
root.render(
811
<React.StrictMode>
912
<App />
10-
</React.StrictMode>,
11-
document.getElementById('root')
13+
</React.StrictMode>
1214
);
1315

1416
// If you want to start measuring performance in your app, pass a function

example/svelte-kit/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ node_modules
33
/build
44
/.svelte-kit
55
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
vite.config.js.timestamp-*
10+
vite.config.ts.timestamp-*

example/svelte-kit/.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

example/svelte-kit/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
# create-svelte
22

3-
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte);
3+
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
44

55
## Creating a project
66

77
If you're seeing this, you've probably already done this step. Congrats!
88

99
```bash
1010
# create a new project in the current directory
11-
npm init svelte@next
11+
npm create svelte@latest
1212

1313
# create a new project in my-app
14-
npm init svelte@next my-app
14+
npm create svelte@latest my-app
1515
```
1616

17-
> Note: the `@next` is temporary
18-
1917
## Developing
2018

2119
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
@@ -29,10 +27,12 @@ npm run dev -- --open
2927

3028
## Building
3129

32-
Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:
30+
To create a production version of your app:
3331

3432
```bash
3533
npm run build
3634
```
3735

38-
> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
36+
You can preview the production build with `npm run preview`.
37+
38+
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

example/svelte-kit/jsconfig.json

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
{
2+
"extends": "./.svelte-kit/tsconfig.json",
23
"compilerOptions": {
3-
"baseUrl": ".",
4-
"paths": {
5-
"$lib": ["src/lib"],
6-
"$lib/*": ["src/lib/*"]
7-
}
8-
},
9-
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
4+
"allowJs": true,
5+
"checkJs": true,
6+
"esModuleInterop": true,
7+
"forceConsistentCasingInFileNames": true,
8+
"resolveJsonModule": true,
9+
"skipLibCheck": true,
10+
"sourceMap": true,
11+
"strict": true
12+
}
13+
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files
14+
//
15+
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
16+
// from the referenced tsconfig.json - TypeScript does not merge them in
1017
}

example/svelte-kit/package.json

+15-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,25 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"dev": "svelte-kit dev",
7-
"build": "svelte-kit build",
8-
"preview": "svelte-kit preview"
6+
"dev": "vite dev",
7+
"build": "vite build",
8+
"preview": "vite preview",
9+
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
10+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch"
911
},
1012
"dependencies": {
1113
"@exceptionless/browser": "2.0.0-dev"
1214
},
1315
"devDependencies": {
14-
"@sveltejs/kit": "next",
15-
"svelte": "^3.42.6"
16+
"@sveltejs/adapter-auto": "^2.0.0",
17+
"@sveltejs/kit": "^1.5.6",
18+
"svelte": "^3.54.0",
19+
"svelte-check": "^3.0.1",
20+
"typescript": "^4.9.3",
21+
"vite": "^4.0.0"
1622
},
17-
"type": "module"
23+
"type": "module",
24+
"publishConfig": {
25+
"access": "restricted"
26+
}
1827
}

example/svelte-kit/src/app.d.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// See https://kit.svelte.dev/docs/types#app
2+
// for information about these interfaces
3+
declare global {
4+
namespace App {
5+
// interface Error {}
6+
// interface Locals {}
7+
// interface PageData {}
8+
// interface Platform {}
9+
}
10+
}
11+
12+
export {};

example/svelte-kit/src/app.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="/favicon.png" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
7-
%svelte.head%
5+
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
6+
<meta name="viewport" content="width=device-width" />
7+
%sveltekit.head%
88
</head>
9-
<body>
10-
<div id="svelte">%svelte.body%</div>
9+
<body data-sveltekit-preload-data="hover">
10+
<div style="display: contents">%sveltekit.body%</div>
1111
</body>
1212
</html>

example/svelte-kit/src/global.d.ts

-1
This file was deleted.

example/svelte-kit/svelte.config.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import adapter from '@sveltejs/adapter-auto';
2+
13
/** @type {import('@sveltejs/kit').Config} */
24
const config = {
3-
kit: {
4-
// hydrate the <div id="svelte"> element in src/app.html
5-
target: '#svelte',
6-
}
5+
kit: {
6+
adapter: adapter()
7+
}
78
};
89

910
export default config;

example/svelte-kit/vite.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { sveltekit } from '@sveltejs/kit/vite';
2+
import { defineConfig } from 'vite';
3+
4+
export default defineConfig({
5+
plugins: [sveltekit()]
6+
});

example/vue/package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55
"scripts": {
66
"dev": "vite",
77
"build": "vite build",
8-
"watch": "",
9-
"test": "",
108
"serve": "vite preview"
119
},
1210
"dependencies": {
13-
"vue": "^3.2.11",
11+
"vue": "^3.2.47",
1412
"@exceptionless/vue": "2.0.0-dev"
1513
},
1614
"devDependencies": {
17-
"@vitejs/plugin-vue": "^1.6.2",
18-
"@vue/compiler-sfc": "^3.2.11",
19-
"vite": "^2.5.6"
15+
"@vitejs/plugin-vue": "^4.0.0",
16+
"@vue/compiler-sfc": "^3.2.47",
17+
"vite": "^4.1.1"
2018
},
2119
"publishConfig": {
2220
"access": "restricted"

0 commit comments

Comments
 (0)