From c2e0a06a186ae0aaa61ea9714f6b36c7e566879a Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Thu, 28 May 2026 04:33:48 +0300 Subject: [PATCH 1/4] Update funding info --- .github/funding.json | 97 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 .github/funding.json diff --git a/.github/funding.json b/.github/funding.json new file mode 100644 index 00000000..b4661073 --- /dev/null +++ b/.github/funding.json @@ -0,0 +1,97 @@ +{ + "$schema": "https://fundingjson.org/schema/v1.1.0.json", + "version": "v1.1.0", + "entity": { + "type": "individual", + "role": "maintainer", + "name": "Vitaly Puzrin", + "email": "for.puzrin@gmail.com", + "description": "Open-source software architect and hardware developer.", + "webpageUrl": { + "url": "https://github.com/puzrin" + } + }, + "projects": [ + { + "guid": "js-yaml", + "name": "js-yaml", + "description": "YAML parser and serializer for JavaScript and Node.js.", + "webpageUrl": { + "url": "https://github.com/nodeca/js-yaml" + }, + "repositoryUrl": { + "url": "https://github.com/nodeca/js-yaml" + }, + "licenses": [ + "spdx:MIT" + ], + "tags": [ + "yaml", + "parser", + "serializer", + "javascript", + "nodejs", + "developer-tools", + "configuration", + "infrastructure" + ] + } + ], + "funding": { + "channels": [ + { + "guid": "github-sponsors", + "type": "payment-provider", + "address": "https://github.com/sponsors/puzrin", + "description": "GitHub Sponsors for recurring or one-time support." + }, + { + "guid": "paypal", + "type": "payment-provider", + "address": "https://paypal.me/forpuzrin", + "description": "PayPal for one-time support." + } + ], + "plans": [ + { + "guid": "maintenance-basic", + "status": "active", + "name": "Basic maintenance", + "description": "Security fixes and basic maintenance.", + "amount": 10000, + "currency": "USD", + "frequency": "yearly", + "channels": [ + "github-sponsors", + "paypal" + ] + }, + { + "guid": "deep-maintenance", + "status": "active", + "name": "Deep maintenance", + "description": "TypeScript migration, tokenizer refactoring, parser debt reduction, alias hardening, and null-prototype objects for mappings.", + "amount": 25000, + "currency": "USD", + "frequency": "yearly", + "channels": [ + "github-sponsors", + "paypal" + ] + }, + { + "guid": "goodwill", + "status": "active", + "name": "General support", + "description": "Support ongoing maintenance of js-yaml at any level.", + "amount": 0, + "currency": "USD", + "frequency": "one-time", + "channels": [ + "github-sponsors", + "paypal" + ] + } + ] + } +} From ac10be951c4e86e814b8bbe611788e152ece6483 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Thu, 28 May 2026 04:43:02 +0300 Subject: [PATCH 2/4] Cleanup CI config --- .github/workflows/ci.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76e193a9..2f7fb5a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,25 +7,22 @@ on: - cron: '0 0 * * 3' permissions: - contents: read # to fetch code (actions/checkout) + contents: read jobs: - build: + test: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [ '24' ] - steps: - uses: actions/checkout@v5 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js LTS uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version: lts/* - - run: npm install + - run: npm i - - run: npm test + - name: Test + run: npm test From 4532471a0b49dcb055ec64b331854117e501d33c Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Thu, 28 May 2026 04:45:16 +0300 Subject: [PATCH 3/4] Update CI badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eeaf531c..a508c831 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ JS-YAML - YAML 1.2 parser / writer for JavaScript ================================================= -[![CI](https://github.com/nodeca/js-yaml/workflows/CI/badge.svg?branch=master)](https://github.com/nodeca/js-yaml/actions) +[![CI](https://github.com/nodeca/js-yaml/actions/workflows/ci.yml/badge.svg)](https://github.com/nodeca/js-yaml/actions/workflows/ci.yml) [![NPM version](https://img.shields.io/npm/v/js-yaml.svg)](https://www.npmjs.org/package/js-yaml) __[Online Demo](https://nodeca.github.io/js-yaml/)__ From 49ca3fa8e4b845d96b41dd529e34c23583a194c9 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Thu, 28 May 2026 04:59:52 +0300 Subject: [PATCH 4/4] nyc => c8 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5bbd6c95..878aecd4 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "scripts": { "lint": "eslint .", "test": "npm run lint && mocha", - "coverage": "npm run lint && nyc mocha && nyc report --reporter html", + "coverage": "npm run lint && c8 -r html mocha", "demo": "npm run lint && node support/build_demo.js", "gh-demo": "npm run demo && gh-pages -d demo -f", "browserify": "rollup -c support/rollup.config.js", @@ -57,7 +57,7 @@ "fast-check": "^2.8.0", "gh-pages": "^3.1.0", "mocha": "^8.2.1", - "nyc": "^15.1.0", + "c8": "^11.0.0", "rollup": "^2.34.1", "rollup-plugin-node-polyfills": "^0.2.1", "rollup-plugin-terser": "^7.0.2",