Skip to content

Commit 665f447

Browse files
authored
Upgrade dev dependencies to latest versions (#770)
* Upgrade dev dependencies to latest versions * bump some actions * nix action bump * checkout action bump * foreach all * fix build * fix types * fix lint issues * size limit fix
1 parent a8c0f3e commit 665f447

File tree

114 files changed

+6555
-4614
lines changed

Some content is hidden

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

114 files changed

+6555
-4614
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @ts-ignore
77
require("@rushstack/eslint-patch/modern-module-resolution");
88

9-
/** @type import('@typescript-eslint/utils').TSESLint.Linter.Config */
9+
/** @type import('@typescript-eslint/utils/dist').TSESLint.Linter.ConfigType */
1010
module.exports = {
1111
env: {
1212
browser: true,

.github/actions/yarn/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ runs:
1010
using: composite
1111
steps:
1212
# Install Cachix
13-
- uses: cachix/install-nix-action@v17
13+
- uses: cachix/install-nix-action@v24
1414
- name: Setup Cachix
15-
uses: cachix/cachix-action@v10
15+
uses: cachix/cachix-action@v12
1616
with:
1717
name: saber
1818
authToken: ${{ inputs.cachix-auth-token }}

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- uses: ./.github/actions/yarn
1919
with:
2020
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
@@ -24,7 +24,7 @@ jobs:
2424
typecheck:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- uses: ./.github/actions/yarn
2929
with:
3030
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
@@ -34,7 +34,7 @@ jobs:
3434
test:
3535
runs-on: ubuntu-latest
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838
- uses: ./.github/actions/yarn
3939
with:
4040
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
@@ -44,7 +44,7 @@ jobs:
4444
lint:
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- uses: ./.github/actions/yarn
4949
with:
5050
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
@@ -54,7 +54,7 @@ jobs:
5454
docs:
5555
runs-on: ubuntu-latest
5656
steps:
57-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@v4
5858
- uses: ./.github/actions/yarn
5959
with:
6060
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
@@ -64,7 +64,7 @@ jobs:
6464
doctor:
6565
runs-on: ubuntu-latest
6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868
- uses: ./.github/actions/yarn
6969
with:
7070
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}

.github/workflows/nix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
build:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v3
24-
- uses: cachix/install-nix-action@v18
23+
- uses: actions/checkout@v4
24+
- uses: cachix/install-nix-action@v24
2525
- name: Setup Cachix
2626
uses: cachix/cachix-action@v12
2727
with:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
name: Release all packages
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- run: |
1818
echo "Must be on master branch to publish packages."
1919
exit 1
@@ -36,7 +36,7 @@ jobs:
3636
- name: Install Yarn dependencies
3737
run: yarn install
3838
- run: yarn build
39-
- run: yarn workspaces foreach -t version ${{ github.event.inputs.version }}
39+
- run: yarn workspaces foreach --all -t version ${{ github.event.inputs.version }}
4040
- run: yarn docs:generate
4141
- uses: mikepenz/release-changelog-builder-action@v3
4242
env:

.size-limit.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"path": "packages/anchor-contrib/dist/esm/index.js",
4-
"limit": "7 KB",
4+
"limit": "12 KB",
55
"ignore": [
66
"@project-serum/anchor",
77
"@solana/web3.js",
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"path": "packages/solana-contrib/dist/esm/index.js",
14-
"limit": "12 KB",
14+
"limit": "25 KB",
1515
"ignore": ["@solana/web3.js", "bn.js"],
1616
"webpack": true
1717
},

.vscode/settings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
"titleBar.inactiveForeground": "#000000"
1212
},
1313
"eslint.nodePath": ".yarn/sdks",
14-
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
14+
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
1515
"typescript.enablePromptUseWorkspaceTsdk": true,
16-
"cSpell.words": [
17-
"saberhq"
18-
]
16+
"cSpell.words": ["saberhq"]
1917
}

.yarn/releases/yarn-4.0.0-rc.22.cjs

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

.yarn/releases/yarn-4.0.2.cjs

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env node
2+
3+
const {existsSync} = require(`fs`);
4+
const {createRequire} = require(`module`);
5+
const {resolve} = require(`path`);
6+
7+
const relPnpApiPath = "../../../../.pnp.cjs";
8+
9+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
10+
const absRequire = createRequire(absPnpApiPath);
11+
12+
if (existsSync(absPnpApiPath)) {
13+
if (!process.versions.pnp) {
14+
// Setup the environment to be able to require eslint/use-at-your-own-risk
15+
require(absPnpApiPath).setup();
16+
}
17+
}
18+
19+
// Defer to the real eslint/use-at-your-own-risk your application uses
20+
module.exports = absRequire(`eslint/use-at-your-own-risk`);

0 commit comments

Comments
 (0)