From 156bae3f1cf4eff333e8af71a3bf1b32502ffe1a Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Sat, 2 Dec 2023 14:11:23 +0700 Subject: [PATCH] v7.0.8 - Merge pr #119 by @olsonpm (issue #118) - Add link to GitHub Action Wrapper by @chriscarrollsmith (issue #114) - Update dependencies, CI settings & examples --- .github/workflows/ci-test.yml | 10 +++++----- .github/workflows/codeql-analysis.yml | 2 +- README.md | 8 ++++++++ examples/bun-feed-reader/package.json | 4 ++-- examples/deno-feed-reader/index.ts | 2 +- examples/tsnode-feed-reader/package.json | 3 ++- examples/tsnode-feed-reader/tsconfig.json | 2 +- package.json | 6 +++--- 8 files changed, 23 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 4d1ae3a..c365bc0 100755 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -8,17 +8,17 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: matrix: - node_version: [16.x, 18.x, 20.x] + node_version: [18.x, 20.x, 21.x] steps: - uses: actions/checkout@v3 - name: setup Node.js v${{ matrix.node_version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node_version }} @@ -31,8 +31,8 @@ jobs: npm run build --if-present npm run test - - name: sync to coveralls - uses: coverallsapp/github-action@v1.1.2 + - name: Report Coveralls + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2124bd6..a77d776 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/README.md b/README.md index 442e816..9e51a30 100755 --- a/README.md +++ b/README.md @@ -48,6 +48,14 @@ import { extract } from 'https://esm.sh/@extractus/feed-extractor' Please check [the examples](https://github.com/extractus/feed-extractor/tree/main/examples) for reference. + +## Automate RSS feed extraction with GitHub Actions + +[RSS Feed Fetch Action](https://github.com/Promptly-Technologies-LLC/rss-fetch-action) is a GitHub Action designed to automate the fetching of RSS feeds. +It fetches an RSS feed from a given URL and saves it to a specified file in your GitHub repository. +This action is particularly useful for populating content on GitHub Pages websites or other static site generators. + + ## CJS Deprecated CJS is deprecated for this package. When calling `require('@extractus/feed-extractor')` a deprecation warning is now logged. You should update your code to use the ESM export. diff --git a/examples/bun-feed-reader/package.json b/examples/bun-feed-reader/package.json index a080532..69a8bc2 100644 --- a/examples/bun-feed-reader/package.json +++ b/examples/bun-feed-reader/package.json @@ -5,10 +5,10 @@ "start": "bun run index.ts" }, "devDependencies": { - "bun-types": "^0.6.13" + "bun-types": "^1.0.14" }, "dependencies": { "@extractus/feed-extractor": "latest", - "hono": "^3.2.7" + "hono": "^3.10.2" } } diff --git a/examples/deno-feed-reader/index.ts b/examples/deno-feed-reader/index.ts index 0163087..1307ab0 100644 --- a/examples/deno-feed-reader/index.ts +++ b/examples/deno-feed-reader/index.ts @@ -1,6 +1,6 @@ import { serve } from 'https://deno.land/std/http/server.ts' -import { Hono } from 'https://deno.land/x/hono@v3.2.7/mod.ts' +import { Hono } from 'https://deno.land/x/hono@v3.10.2/mod.ts' import { extract } from 'npm:@extractus/feed-extractor' diff --git a/examples/tsnode-feed-reader/package.json b/examples/tsnode-feed-reader/package.json index 1fcefa1..696676d 100644 --- a/examples/tsnode-feed-reader/package.json +++ b/examples/tsnode-feed-reader/package.json @@ -1,13 +1,14 @@ { "name": "tsnode-feed-reader", "version": "1.0.0", + "type": "module", "main": "index.ts", "scripts": { "prestart": "npx tsc", "start": "node dist/index.js" }, "devDependencies": { - "typescript": "^5.1.6" + "typescript": "^5.3.2" }, "dependencies": { "@extractus/feed-extractor": "latest", diff --git a/examples/tsnode-feed-reader/tsconfig.json b/examples/tsnode-feed-reader/tsconfig.json index d58a717..d592c17 100644 --- a/examples/tsnode-feed-reader/tsconfig.json +++ b/examples/tsnode-feed-reader/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "es6", "esModuleInterop": true, "target": "es6", "moduleResolution": "node", diff --git a/package.json b/package.json index fc229b2..95f6588 100755 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "7.0.7", + "version": "7.0.8", "name": "@extractus/feed-extractor", "description": "To read and normalize RSS/ATOM/JSON feed data", "homepage": "https://extractor-demos.pages.dev", @@ -46,10 +46,10 @@ }, "devDependencies": { "esbuild": "^0.19.8", - "eslint": "^8.53.0", + "eslint": "^8.55.0", "https-proxy-agent": "^7.0.2", "jest": "^29.7.0", - "nock": "^13.3.8" + "nock": "^13.4.0" }, "keywords": [ "extractor",