diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6313b56c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.github/actions/setup-node-deps/action.yml b/.github/actions/setup-node-deps/action.yml index e6b026c1..354db1e1 100644 --- a/.github/actions/setup-node-deps/action.yml +++ b/.github/actions/setup-node-deps/action.yml @@ -1,13 +1,13 @@ name: Setup Node and dependencies -description: Install Node.js 22.x and npm dependencies. +description: Install Node.js 26.x and npm dependencies. runs: using: composite steps: - - name: Use Node.js 22.x - uses: actions/setup-node@v4 + - name: Use Node.js 26.x + uses: actions/setup-node@v7 with: - node-version: 22.x + node-version: 26.x - name: Install dependencies shell: bash diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index cf0e53d6..89a89926 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -27,7 +27,7 @@ jobs: shell: bash steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set build date id: build_date diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index fbf2ce76..fca17b8b 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -14,7 +14,7 @@ jobs: run: shell: bash steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Setup Node and dependencies uses: ./.github/actions/setup-node-deps @@ -28,7 +28,7 @@ jobs: run: shell: bash steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Setup Node and dependencies uses: ./.github/actions/setup-node-deps @@ -43,7 +43,7 @@ jobs: run: shell: bash steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Build extension id: build @@ -52,7 +52,7 @@ jobs: gh_release_update_check: "false" - name: Upload extension zips - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: extension-zips path: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbf2646f..e7774c7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: echo "Check the confirmation box: you must update package.json version before releasing." exit 1 - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Read version id: version diff --git a/docs/GETTING_STARTED_CONTRIBUTING.md b/docs/GETTING_STARTED_CONTRIBUTING.md index d5c883b3..523f3205 100644 --- a/docs/GETTING_STARTED_CONTRIBUTING.md +++ b/docs/GETTING_STARTED_CONTRIBUTING.md @@ -17,7 +17,7 @@ Welcome to BetterSEQTA+! 🎉 This guide will walk you through making your first ## Before You Start ### What You'll Need -- **Node.js** (v22.12 or higher) - [Download here](https://nodejs.org/) +- **Node.js** (v26 or higher) - [Download here](https://nodejs.org/) - **Git** - [Download here](https://git-scm.com/) - **A code editor** - We recommend [VS Code](https://code.visualstudio.com/) - **A Chromium browser** (Chrome, Edge, Brave) for testing (recommended, however you can use firefox although it requires being built every time you make a change) diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md index 5a3f7e53..75dbfc49 100644 --- a/docs/TROUBLESHOOTING.md +++ b/docs/TROUBLESHOOTING.md @@ -38,7 +38,7 @@ npm install 2. **Check Node.js version**: ```bash - node --version # Should be v22.12 or higher + node --version # Should be v26 or higher ``` 3. **Try with npm cache clean**: diff --git a/docs/installation.md b/docs/installation.md index 53ac5b83..82867946 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -8,7 +8,7 @@ This guide will walk you through the process of installing and setting up Better Before you begin, make sure you have the following installed: -- [Node.js](https://nodejs.org/) v22.12 or higher +- [Node.js](https://nodejs.org/) v26 or higher - A modern web browser (Chrome, Firefox, Edge, etc.) ## Installation Methods diff --git a/lib/publish.js b/lib/publish.js index 43ce1c64..8d4117bd 100644 --- a/lib/publish.js +++ b/lib/publish.js @@ -11,10 +11,9 @@ * or `node lib/publish.js --b firefox` */ -const { globSync } = require("glob"); -const semver = require("semver"); -const { execSync } = require("child_process"); -const path = require("path"); +import { globSync } from "glob"; +import semver from "semver"; +import { execSync } from "node:child_process"; /** * Determines the latest version string from a list of filenames that include version numbers. diff --git a/package.json b/package.json index 2f7d26b2..1b08f6a2 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "Enhance SEQTA Learn's usability and aesthetics! A fork of BetterSEQTA to continue development and add heaps more features!", "browserslist": "> 0.5%, last 2 versions, not dead", "engines": { - "node": ">=22.12" + "node": ">=26" }, "scripts": { "compile:layerchart": "node scripts/compile-layerchart-vendor.mjs", @@ -23,11 +23,11 @@ "dependency-graph": "depcruise src --include-only \"^src\" --output-type dot | dot -T svg > dependency-graph.svg", "lint": "eslint \"src/**/*.{js,ts}\"", "test": "npm run test:unit", - "test:unit": "jest", + "test:unit": "cross-env NODE_OPTIONS=--no-experimental-webstorage jest", "test:smoke": "node scripts/smoke-test.mjs", "test:ci": "npm run test:unit && npm run build && npm run test:smoke", "release": "gh release create $npm_package_version --repo BetterSEQTA/BetterSEQTA-Plus ./dist/*.zip --generate-notes", - "publish": "bun lib/publish.js --b", + "publish": "node lib/publish.js --b", "zip": "node scripts/package-extension-zips.mjs" }, "keywords": [], diff --git a/src/plugins/built-in/globalSearch/src/components/items/SubjectItem.svelte b/src/plugins/built-in/globalSearch/src/components/items/SubjectItem.svelte index 0c599598..a29dad54 100755 --- a/src/plugins/built-in/globalSearch/src/components/items/SubjectItem.svelte +++ b/src/plugins/built-in/globalSearch/src/components/items/SubjectItem.svelte @@ -1,36 +1,36 @@ - - - \ No newline at end of file