Skip to content

Commit 8c3dfcc

Browse files
authored
chore: upgarde (satellite-v1 + others) (#35)
- upgrade satellite to v1.0.0 - handling `satellite.min.css` a bit differently - update linting - fix: `stl-` classes being stripped - upgrade other dependencies - fix typing issues - v0.0.10
1 parent 05748cd commit 8c3dfcc

File tree

10 files changed

+969
-1091
lines changed

10 files changed

+969
-1091
lines changed

Diff for: .eslintrc.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ const path = require('path');
22

33
module.exports = {
44
root: true,
5-
extends: ['plugin:@algolia/satellite/recommended', 'prettier'],
6-
plugins: ['@algolia/satellite', '@typescript-eslint', 'prettier'],
5+
extends: ['plugin:@algolia/stl/recommended', 'prettier'],
6+
plugins: ['@algolia/stl', '@typescript-eslint', 'prettier'],
77
settings: {
88
'import/resolver': {
99
node: {
1010
extensions: ['.js', '.jsx', '.ts', '.tsx'],
1111
},
1212
typescript: {},
1313
},
14-
satellite: {
14+
stl: {
1515
tailwindConfigPath: path.resolve(__dirname, './tailwind.config.js'),
1616
},
1717
react: {

Diff for: package.json

+27-27
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "algolia-analyzer",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"author": "Emmanuel Krebs <[email protected]>",
55
"license": "MIT",
66
"scripts": {
@@ -21,47 +21,47 @@
2121
"webext-prod": {}
2222
},
2323
"dependencies": {
24-
"@tanstack/react-query": "^5.12.2",
24+
"@tanstack/react-query": "^5.24.1",
25+
"eslint-plugin-jsdoc": "^48.2.0",
2526
"react": "^18.2.0",
2627
"react-dom": "^18.2.0"
2728
},
2829
"devDependencies": {
29-
"@algolia/client-search": "^4.20.0",
30-
"@algolia/eslint-plugin-satellite": "^4.4.0",
31-
"@algolia/satellite": "1.0.0-beta.178",
32-
"@parcel/config-webextension": "^2.10.3",
33-
"@parcel/validator-typescript": "^2.10.3",
34-
"@swc/core": "^1.3.100",
35-
"@swc/jest": "^0.2.29",
36-
"@types/chrome": "^0.0.253",
37-
"@types/jest": "^29.5.10",
30+
"@algolia/client-search": "^4.22.1",
31+
"@algolia/eslint-plugin-stl": "^1.0.0",
32+
"@algolia/satellite": "1.0.0",
33+
"@parcel/config-webextension": "^2.12.0",
34+
"@parcel/validator-typescript": "^2.12.0",
35+
"@swc/core": "^1.4.2",
36+
"@swc/jest": "^0.2.36",
37+
"@types/chrome": "^0.0.262",
38+
"@types/jest": "^29.5.12",
3839
"@types/lodash": "^4.14.202",
39-
"@types/node": "^20.10.3",
40-
"@types/react": "^18.2.41",
41-
"@types/react-dom": "^18.2.17",
42-
"@typescript-eslint/eslint-plugin": "^6.13.1",
43-
"@typescript-eslint/parser": "^6.13.1",
44-
"algoliasearch": "^4.20.0",
45-
"autoprefixer": "^10.4.16",
40+
"@types/node": "^20.11.24",
41+
"@types/react": "^18.2.61",
42+
"@types/react-dom": "^18.2.19",
43+
"@typescript-eslint/eslint-plugin": "^6.21.0",
44+
"@typescript-eslint/parser": "^6.21.0",
45+
"algoliasearch": "^4.22.1",
46+
"autoprefixer": "^10.4.17",
4647
"bestzip": "^2.2.1",
47-
"classnames": "^2.3.2",
48-
"eslint": "^8.55.0",
48+
"classnames": "^2.5.1",
49+
"eslint": "^8.57.0",
4950
"eslint-config-prettier": "^9.1.0",
5051
"eslint-import-resolver-typescript": "^3.6.1",
5152
"eslint-plugin-eslint-comments": "^3.2.0",
52-
"eslint-plugin-jsdoc": "^46.9.0",
53-
"eslint-plugin-prettier": "^5.0.1",
53+
"eslint-plugin-prettier": "^5.1.3",
5454
"jest": "^29.7.0",
5555
"lodash": "^4.17.21",
56-
"parcel": "^2.10.3",
57-
"postcss": "^8.4.33",
58-
"prettier": "^3.1.0",
56+
"parcel": "^2.12.0",
57+
"postcss": "^8.4.35",
58+
"prettier": "^3.2.5",
5959
"process": "^0.11.10",
6060
"react-feather": "^2.0.10",
6161
"react-json-view": "^1.21.3",
6262
"rimraf": "^5.0.5",
63-
"tailwindcss": "^3.3.5",
64-
"typescript": "^5.3.2",
63+
"tailwindcss": "^3.4.1",
64+
"typescript": "^5.3.3",
6565
"zod": "^3.22.4"
6666
},
6767
"alias": {

Diff for: src/components/Tags.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const StatusCodeTag: FC<CustomTagProps & { statusCode: number }> = ({
1818
reversed,
1919
...props
2020
}) => (
21-
<Tag {...props} variant={getStatusColor(statusCode)}>
21+
<Tag {...props} variant={getStatusColor(statusCode)} title="status code" placeholder={undefined}>
2222
{reversed && '!'}
2323
{statusCode}
2424
</Tag>
@@ -29,7 +29,7 @@ export const MethodTag: FC<CustomTagProps & { method: string }> = ({
2929
reversed,
3030
...props
3131
}) => (
32-
<Tag {...props}>
32+
<Tag {...props} title="method" placeholder={undefined}>
3333
{reversed && '!'}
3434
{method}
3535
</Tag>
@@ -40,7 +40,7 @@ export const ClusterTag: FC<CustomTagProps & { cluster: string }> = ({
4040
reversed,
4141
...props
4242
}) => (
43-
<Tag {...props} variant="blue" title="cluster">
43+
<Tag {...props} variant="blue" title="cluster" placeholder={undefined}>
4444
{reversed && '!'}
4545
{cluster}
4646
</Tag>
@@ -51,7 +51,7 @@ export const IndexTag: FC<CustomTagProps & { index: string | null }> = ({
5151
reversed,
5252
...props
5353
}) => (
54-
<Tag {...props} variant="accent" title="index">
54+
<Tag {...props} variant="accent" title="index" placeholder={undefined}>
5555
{reversed && '!'}
5656
{index || 'no index'}
5757
</Tag>
@@ -62,7 +62,7 @@ export const ApiSubPathTag: FC<CustomTagProps & { subPath: string | null }> = ({
6262
reversed,
6363
...props
6464
}) => (
65-
<Tag {...props} variant="pink" title="api path">
65+
<Tag {...props} variant="pink" title="api path" placeholder={undefined}>
6666
{reversed && '!'}
6767
{subPath || 'no API path'}
6868
</Tag>
@@ -80,7 +80,7 @@ const apiString: Record<ApiType, string> = {
8080
};
8181

8282
export const ApiTag: FC<CustomTagProps & { api: ApiType }> = ({ api, reversed, ...props }) => (
83-
<Tag {...props} variant="orange" title="API">
83+
<Tag {...props} variant="orange" title="API" placeholder={undefined}>
8484
{reversed && '!'}
8585
{apiString[api]}
8686
</Tag>

Diff for: src/content/tailwind.css

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../../node_modules/@algolia/satellite/dist/satellite.min.css';
2+
13
@tailwind base;
24
@tailwind components;
35
@tailwind utilities;

Diff for: src/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Algolia Analyzer",
44
"description": "algolia-analyzer",
5-
"version": "0.0.9",
5+
"version": "0.0.10",
66
"minimum_chrome_version": "60",
77
"icons": {
88
"16": "./content/icons/icon-16.png",

Diff for: src/pages/devtools/Page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const Page: FC = () => {
116116
variant="subtle"
117117
size="large"
118118
title="extension settings"
119-
onClick={(): void => chrome.runtime.openOptionsPage()}
119+
onClick={(): void => chrome.runtime.openOptionsPage(() => {})}
120120
/>
121121
</header>
122122
<div className="h-[calc(100vh-3rem)] bg-grey-100 relative overflow-x-hidden">

Diff for: src/pages/devtools/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ import ReactDOM from 'react-dom/client';
22

33
import { App } from './App';
44
import 'content/tailwind.css';
5-
import '@algolia/satellite/satellite.min.css';
65

76
ReactDOM.createRoot(document.getElementById('root')!).render(<App />);

Diff for: src/pages/options/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ import ReactDOM from 'react-dom/client';
22

33
import { Page } from './Page';
44
import 'content/tailwind.css';
5-
import '@algolia/satellite/satellite.min.css';
65

76
ReactDOM.createRoot(document.getElementById('root')!).render(<Page />);

Diff for: tailwind.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const sourceSatellite = require('@algolia/satellite/cjs/styles/tailwind.config.js');
1+
const sourceSatellite = require('@algolia/satellite/tailwind.config.js');
22

33
const { prefix, ...satellite } = sourceSatellite;
44

55
/** @type {import('tailwindcss').Config} */
66
module.exports = {
77
presets: [satellite],
8-
content: ['./src/**/*.html', './src/**/*.ts', './src/**/*.tsx'],
8+
content: ['./node_modules/@algolia/satellite/**/*.js', './src/**/*.{html,ts,tsx}'],
99
theme: {
1010
...satellite.theme,
1111
extends: {},

0 commit comments

Comments
 (0)