Skip to content

Maintenance #795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .eslintrc.js

This file was deleted.

12 changes: 5 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18.16]
node-version: [22.13.1]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.5
uses: pnpm/action-setup@v3

- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand All @@ -36,4 +34,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/playground/dist
publish_dir: ./apps/playground/dist
22 changes: 8 additions & 14 deletions .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18]
node-version: [22.13.1]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.5
uses: pnpm/action-setup@v3

- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand All @@ -32,17 +30,13 @@ jobs:
run: ./node_modules/cypress/bin/cypress install

- name: Cypress run
uses: cypress-io/github-action@v4
uses: cypress-io/github-action@v6
with:
install: false
# build playground
# build: pnpm dev:playground
# start playground
start: pnpm dev
command: pnpm e2e
# FIXME: this breaks it
# wait-on: 'http://localhost:5173'
# project: /packages/react-use-intercom
wait-on: 'http://localhost:5173'
project: ./apps/playground

# after the test run completes
# store videos and any screenshots
Expand All @@ -51,7 +45,7 @@ jobs:
# Alternative: create and commit an empty cypress/screenshots folder
# to always have something to upload
- name: Upload Cypress artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18.16]

node-version: [22.13.1]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.5
uses: pnpm/action-setup@v3

- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18.16]
node-version: [22.13.1]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.5
uses: pnpm/action-setup@v3

- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,21 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18.16]
node-version: [22.13.1]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.5
uses: pnpm/action-setup@v3

- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.16.0
22.13.1
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
1. Install pnpm:

```sh
npm install -g pnpm@8
npm install -g pnpm@10.2
```

2. Fork and clone the repository
Expand Down
4 changes: 2 additions & 2 deletions apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"@types/react-router-dom": "^5.1.5",
"@types/styled-components": "^5.1.2",
"@vitejs/plugin-react": "^3.0.1",
"cypress": "^12.12.0",
"typescript": "^4.9.5",
"cypress": "^14.0.0",
"typescript": "^5.7.3",
"vite": "^4.0.4"
}
}
2 changes: 1 addition & 1 deletion apps/playground/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
37 changes: 37 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import eslint from '@eslint/js';
import prettierConfig from 'eslint-config-prettier';
import reactPlugin from 'eslint-plugin-react';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
prettierConfig,
{
files: ['**/*.{js,jsx,ts,tsx}'],
plugins: {
react: reactPlugin,
'simple-import-sort': simpleImportSort,
},
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'simple-import-sort/imports': 'error',
'sort-imports': 'off',
'import/order': 'off',
'import/no-anonymous-default-export': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
);
26 changes: 15 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"private": true,
"packageManager": "pnpm@8.6.5",
"packageManager": "pnpm@10.2.0",
"engines": {
"pnpm": "^8.0.0"
},
"node": "^22.13.1",
"pnpm": "^10.2.0"
},
"type": "module",
"scripts": {
"dev": "turbo run dev --parallel --filter=playground --filter=react-use-intercom",
"dev:examples": "turbo run dev --parallel --filter=*-example --filter=react-use-intercom",
Expand All @@ -20,13 +22,15 @@
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^2.8.3",
"turbo": "^1.9.8"
"@eslint/js": "^9.20.0",
"@typescript-eslint/eslint-plugin": "^8.23.0",
"eslint": "^9.20.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-simple-import-sort": "^12.1.1",
"prettier": "^3.4.2",
"turbo": "^2.4.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.23.0"
}
}
6 changes: 3 additions & 3 deletions packages/react-use-intercom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
"size-limit": "^7.0.3",
"source-map": "0.6.1",
"ts-jest": "^29.0.5",
"tslib": "^2.0.3",
"tsup": "^6.6.3",
"typescript": "^4.9.4"
"tslib": "^2.8.1",
"tsup": "^8.3.6",
"typescript": "^5.7.3"
}
}
3 changes: 3 additions & 0 deletions packages/react-use-intercom/src/initialize.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable prefer-rest-params */
/* eslint-disable no-var */
// @ts-nocheck
/**
* Snippet to initialize the Intercom instance
Expand Down
4 changes: 2 additions & 2 deletions packages/react-use-intercom/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"baseUrl": "./",
"paths": {
"*": ["src/*", "node_modules/*"]
},
"jsx": "react",
"esModuleInterop": true,
"allowSyntheticDefaultImports": false,
"allowSyntheticDefaultImports": true,
}
}
Loading
Loading