Skip to content

Commit 90959a3

Browse files
ItsChaceDtheproducer
authored andcommitted
chore: update npm packages (ionic-team#146)
Co-authored-by: Joseph Pender <[email protected]>
1 parent 2f325b9 commit 90959a3

File tree

25 files changed

+2640
-1858
lines changed

25 files changed

+2640
-1858
lines changed

example-app-spm/package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,38 @@
1111
"@capacitor/ios": "next",
1212
"@capacitor/keyboard": "next",
1313
"@capacitor/status-bar": "next",
14-
"@ionic/react": "^6.0.0",
15-
"@ionic/react-router": "^6.0.0",
16-
"@testing-library/jest-dom": "^5.11.9",
17-
"@testing-library/react": "^11.2.5",
18-
"@testing-library/user-event": "^12.6.3",
14+
"@ionic/react": "^8.7.10",
15+
"@ionic/react-router": "^8.7.10",
16+
"@testing-library/jest-dom": "^6.9.1",
17+
"@testing-library/react": "^16.3.0",
18+
"@testing-library/user-event": "^14.6.1",
1919
"@types/google.maps": "~3.58.1",
20-
"@types/jest": "^26.0.20",
21-
"@types/node": "^12.19.15",
22-
"@types/react": "^16.14.3",
23-
"@types/react-dom": "^16.9.10",
24-
"@types/react-router": "^5.1.11",
25-
"@types/react-router-dom": "^5.1.7",
26-
"ionicons": "^5.4.0",
27-
"react": "^17.0.1",
28-
"react-dom": "^17.0.1",
29-
"react-router": "^5.2.0",
30-
"react-router-dom": "^5.2.0",
31-
"react-scripts": "^5.0.0",
32-
"typescript": "^4.1.3",
33-
"web-vitals": "^0.2.4",
34-
"workbox-background-sync": "^5.1.4",
35-
"workbox-broadcast-update": "^5.1.4",
36-
"workbox-cacheable-response": "^5.1.4",
37-
"workbox-core": "^5.1.4",
38-
"workbox-expiration": "^5.1.4",
39-
"workbox-google-analytics": "^5.1.4",
40-
"workbox-navigation-preload": "^5.1.4",
41-
"workbox-precaching": "^5.1.4",
42-
"workbox-range-requests": "^5.1.4",
43-
"workbox-routing": "^5.1.4",
44-
"workbox-strategies": "^5.1.4",
45-
"workbox-streams": "^5.1.4"
20+
"@types/jest": "^30.0.0",
21+
"@types/node": "^24.10.1",
22+
"@types/react": "^19.2.7",
23+
"@types/react-dom": "^19.2.3",
24+
"@types/react-router": "^5.1.20",
25+
"@types/react-router-dom": "^5.3.3",
26+
"ionicons": "^8.0.13",
27+
"react": "^19.2.0",
28+
"react-dom": "^19.2.0",
29+
"react-router": "^5.3.4",
30+
"react-router-dom": "^5.3.4",
31+
"react-scripts": "^5.0.1",
32+
"typescript": "^5.9.3",
33+
"web-vitals": "^5.1.0",
34+
"workbox-background-sync": "^7.4.0",
35+
"workbox-broadcast-update": "^7.4.0",
36+
"workbox-cacheable-response": "^7.4.0",
37+
"workbox-core": "^7.4.0",
38+
"workbox-expiration": "^7.4.0",
39+
"workbox-google-analytics": "^7.4.0",
40+
"workbox-navigation-preload": "^7.4.0",
41+
"workbox-precaching": "^7.4.0",
42+
"workbox-range-requests": "^7.4.0",
43+
"workbox-routing": "^7.4.0",
44+
"workbox-strategies": "^7.4.0",
45+
"workbox-streams": "^7.4.0"
4646
},
4747
"scripts": {
4848
"start": "react-scripts start",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import '@capacitor/google-maps';
2+
3+
declare global {
4+
namespace JSX {
5+
interface IntrinsicElements {
6+
'capacitor-google-map': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
7+
}
8+
}
9+
}
10+
11+
export {};
12+

example-app-spm/src/index.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
import React from "react";
2-
import ReactDOM from "react-dom";
3-
import App from "./App";
4-
import * as serviceWorkerRegistration from "./serviceWorkerRegistration";
5-
import reportWebVitals from "./reportWebVitals";
1+
import React from 'react';
2+
import { createRoot } from 'react-dom/client';
3+
import App from './App';
4+
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
5+
import reportWebVitals from './reportWebVitals';
66

7-
ReactDOM.render(
8-
<React.StrictMode>
9-
<App />
10-
</React.StrictMode>,
11-
document.getElementById("root"),
12-
);
7+
const container = document.getElementById('root');
8+
if (container) {
9+
const root = createRoot(container);
10+
root.render(
11+
<React.StrictMode>
12+
<App />
13+
</React.StrictMode>
14+
);
15+
}
1316

1417
// If you want your app to work offline and load faster, you can change
1518
// unregister() to register() below. Note this comes with some pitfalls.

example-app-spm/src/pages/Drawing/Circles.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ const CircleMapPage: React.FC = () => {
170170
autoGrow={true}
171171
></IonTextarea>
172172
</div>
173+
{/* @ts-ignore - custom element */}
173174
<capacitor-google-map
174175
id="map_circles"
175176
style={{
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
/// <reference types="react-scripts" />
2+
3+
declare global {
4+
namespace JSX {
5+
interface IntrinsicElements {
6+
'capacitor-google-map': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
7+
}
8+
}
9+
}
10+
11+
export {};

example-app-spm/src/reportWebVitals.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import { ReportHandler } from "web-vitals";
1+
import { onCLS, onINP, onFCP, onLCP, onTTFB, Metric } from 'web-vitals';
22

3-
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
3+
const reportWebVitals = (onPerfEntry?: (metric: Metric) => void) => {
44
if (onPerfEntry && onPerfEntry instanceof Function) {
5-
import("web-vitals").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
6-
getCLS(onPerfEntry);
7-
getFID(onPerfEntry);
8-
getFCP(onPerfEntry);
9-
getLCP(onPerfEntry);
10-
getTTFB(onPerfEntry);
11-
});
5+
onCLS(onPerfEntry);
6+
onINP(onPerfEntry);
7+
onFCP(onPerfEntry);
8+
onLCP(onPerfEntry);
9+
onTTFB(onPerfEntry);
1210
}
1311
};
1412

example-app-spm/tsconfig.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"esModuleInterop": true,
@@ -16,5 +20,8 @@
1620
"noEmit": true,
1721
"jsx": "react-jsx"
1822
},
19-
"include": ["src"]
23+
"include": [
24+
"src",
25+
"src/**/*.d.ts"
26+
]
2027
}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
},
1818
"devDependencies": {
1919
"@capacitor/ios": "next",
20-
"@types/node": "^20.11.25",
21-
"glob": "^11.0.0",
22-
"husky": "^9.0.1",
23-
"lerna": "^8.1.2",
24-
"prettier-plugin-java": "^2.7.3",
25-
"typescript": "^5.4.2"
20+
"@types/node": "^24.10.1",
21+
"glob": "^13.0.0",
22+
"husky": "^9.1.7",
23+
"lerna": "^9.0.1",
24+
"typescript": "^5.9.3"
2625
},
2726
"engines": {
2827
"node": ">=20",
2928
"pnpm": ">=8"
3029
},
30+
"dependencies": {},
3131
"workspaces": [
3232
"plugin"
3333
]

plugin/.eslintignore

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

plugin/.eslintrc.json

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

0 commit comments

Comments
 (0)