Skip to content
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

Upgrade dev dependencies to latest versions #770

Merged
merged 9 commits into from Nov 30, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Expand Up @@ -6,7 +6,7 @@
// @ts-ignore
require("@rushstack/eslint-patch/modern-module-resolution");

/** @type import('@typescript-eslint/utils').TSESLint.Linter.Config */
/** @type import('@typescript-eslint/utils/dist').TSESLint.Linter.ConfigType */
module.exports = {
env: {
browser: true,
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/yarn/action.yml
Expand Up @@ -10,9 +10,9 @@ runs:
using: composite
steps:
# Install Cachix
- uses: cachix/install-nix-action@v17
- uses: cachix/install-nix-action@v24
- name: Setup Cachix
uses: cachix/cachix-action@v10
uses: cachix/cachix-action@v12
with:
name: saber
authToken: ${{ inputs.cachix-auth-token }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
Expand All @@ -24,7 +24,7 @@ jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
Expand All @@ -34,7 +34,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
Expand All @@ -44,7 +44,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
Expand All @@ -54,7 +54,7 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
Expand All @@ -64,7 +64,7 @@ jobs:
doctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn
with:
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nix.yml
Expand Up @@ -20,8 +20,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- name: Setup Cachix
uses: cachix/cachix-action@v12
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
name: Release all packages
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
echo "Must be on master branch to publish packages."
exit 1
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Install Yarn dependencies
run: yarn install
- run: yarn build
- run: yarn workspaces foreach -t version ${{ github.event.inputs.version }}
- run: yarn workspaces foreach --all -t version ${{ github.event.inputs.version }}
- run: yarn docs:generate
- uses: mikepenz/release-changelog-builder-action@v3
env:
Expand Down
4 changes: 2 additions & 2 deletions .size-limit.json
@@ -1,7 +1,7 @@
[
{
"path": "packages/anchor-contrib/dist/esm/index.js",
"limit": "7 KB",
"limit": "12 KB",
"ignore": [
"@project-serum/anchor",
"@solana/web3.js",
Expand All @@ -11,7 +11,7 @@
},
{
"path": "packages/solana-contrib/dist/esm/index.js",
"limit": "12 KB",
"limit": "25 KB",
"ignore": ["@solana/web3.js", "bn.js"],
"webpack": true
},
Expand Down
6 changes: 2 additions & 4 deletions .vscode/settings.json
Expand Up @@ -11,9 +11,7 @@
"titleBar.inactiveForeground": "#000000"
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"typescript.enablePromptUseWorkspaceTsdk": true,
"cSpell.words": [
"saberhq"
]
"cSpell.words": ["saberhq"]
}
805 changes: 0 additions & 805 deletions .yarn/releases/yarn-4.0.0-rc.22.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions .yarn/sdks/eslint/lib/unsupported-api.js
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/use-at-your-own-risk
require(absPnpApiPath).setup();
}
}

// Defer to the real eslint/use-at-your-own-risk your application uses
module.exports = absRequire(`eslint/use-at-your-own-risk`);
12 changes: 10 additions & 2 deletions .yarn/sdks/eslint/package.json
@@ -1,6 +1,14 @@
{
"name": "eslint",
"version": "8.24.0-sdk",
"version": "8.54.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"eslint": "./bin/eslint.js"
},
"exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}
}
20 changes: 20 additions & 0 deletions .yarn/sdks/prettier/bin/prettier.cjs
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/bin/prettier.cjs
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier/bin/prettier.cjs your application uses
module.exports = absRequire(`prettier/bin/prettier.cjs`);
6 changes: 3 additions & 3 deletions .yarn/sdks/prettier/index.js → .yarn/sdks/prettier/index.cjs 100755 → 100644
Expand Up @@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/index.js
// Setup the environment to be able to require prettier
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier/index.js your application uses
module.exports = absRequire(`prettier/index.js`);
// Defer to the real prettier your application uses
module.exports = absRequire(`prettier`);
7 changes: 4 additions & 3 deletions .yarn/sdks/prettier/package.json
@@ -1,6 +1,7 @@
{
"name": "prettier",
"version": "2.7.1-sdk",
"main": "./index.js",
"type": "commonjs"
"version": "3.1.0-sdk",
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
}
2 changes: 2 additions & 0 deletions .yarn/sdks/typescript/lib/tsserver.js
Expand Up @@ -109,6 +109,8 @@ const moduleWrapper = tsserver => {
str = `zip:${str}`;
} break;
}
} else {
str = str.replace(/^\/?/, process.platform === `win32` ? `` : `/`);
}
}

Expand Down
2 changes: 2 additions & 0 deletions .yarn/sdks/typescript/lib/tsserverlibrary.js
Expand Up @@ -109,6 +109,8 @@ const moduleWrapper = tsserver => {
str = `zip:${str}`;
} break;
}
} else {
str = str.replace(/^\/?/, process.platform === `win32` ? `` : `/`);
}
}

Expand Down
6 changes: 3 additions & 3 deletions .yarn/sdks/typescript/lib/typescript.js
Expand Up @@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/typescript.js
// Setup the environment to be able to require typescript
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/lib/typescript.js your application uses
module.exports = absRequire(`typescript/lib/typescript.js`);
// Defer to the real typescript your application uses
module.exports = absRequire(`typescript`);
8 changes: 6 additions & 2 deletions .yarn/sdks/typescript/package.json
@@ -1,6 +1,10 @@
{
"name": "typescript",
"version": "4.8.4-sdk",
"version": "5.3.2-sdk",
"main": "./lib/typescript.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"tsc": "./bin/tsc",
"tsserver": "./bin/tsserver"
}
}
6 changes: 5 additions & 1 deletion .yarnrc.yml
@@ -1,3 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: pnp

yarnPath: .yarn/releases/yarn-4.0.0-rc.22.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs
30 changes: 24 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.