chore: update feed dependency to version 5.1.0 and adjust import paths for consistency

This commit is contained in:
2025-10-31 18:25:27 +00:00
parent 622b74e628
commit 05a597f473
6 changed files with 19 additions and 10 deletions

View File

@@ -21,7 +21,7 @@
}, },
"dependencies": { "dependencies": {
"@tsclass/tsclass": "^9.3.0", "@tsclass/tsclass": "^9.3.0",
"feed": "^4.2.1", "feed": "^5.1.0",
"rss-parser": "^3.10.0" "rss-parser": "^3.10.0"
}, },
"browserslist": [ "browserslist": [

12
pnpm-lock.yaml generated
View File

@@ -12,8 +12,8 @@ importers:
specifier: ^9.3.0 specifier: ^9.3.0
version: 9.3.0 version: 9.3.0
feed: feed:
specifier: ^4.2.1 specifier: ^5.1.0
version: 4.2.2 version: 5.1.0
rss-parser: rss-parser:
specifier: ^3.10.0 specifier: ^3.10.0
version: 3.13.0 version: 3.13.0
@@ -2080,6 +2080,10 @@ packages:
resolution: {integrity: sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==} resolution: {integrity: sha512-u5/sxGfiMfZNtJ3OvQpXcvotFpYkL0n9u9mM2vkui2nGo8b4wvDkJ8gAkYqbA8QpGyFCv3RK0Z+Iv+9veCS9bQ==}
engines: {node: '>=0.4.0'} engines: {node: '>=0.4.0'}
feed@5.1.0:
resolution: {integrity: sha512-qGNhgYygnefSkAHHrNHqC7p3R8J0/xQDS/cYUud8er/qD9EFGWyCdUDfULHTJQN1d3H3WprzVwMc9MfB4J50Wg==}
engines: {node: '>=20', pnpm: '>=10'}
fflate@0.8.2: fflate@0.8.2:
resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==}
@@ -6885,6 +6889,10 @@ snapshots:
dependencies: dependencies:
xml-js: 1.6.11 xml-js: 1.6.11
feed@5.1.0:
dependencies:
xml-js: 1.6.11
fflate@0.8.2: {} fflate@0.8.2: {}
figures@6.1.0: figures@6.1.0:

View File

@@ -1,11 +1,11 @@
import { expect, tap } from '@git.zone/tstest/tapbundle'; import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as smartfeed from '../ts/index'; import * as smartfeed from '../ts/index.js';
let testSmartFeed: smartfeed.Smartfeed; let testSmartFeed: smartfeed.Smartfeed;
tap.test('should create a feedVersion', async () => { tap.test('should create a feedVersion', async () => {
testSmartFeed = new smartfeed.Smartfeed(); testSmartFeed = new smartfeed.Smartfeed();
expect(testSmartFeed).to.be.instanceOf(smartfeed.Smartfeed); expect(testSmartFeed).toBeInstanceOf(smartfeed.Smartfeed);
}); });
tap.test('should create a feed', async () => { tap.test('should create a feed', async () => {

View File

@@ -1,2 +1,2 @@
export * from './smartfeed.classes.smartfeed'; export * from './smartfeed.classes.smartfeed.js';
export * from './smartfeed.classes.feed'; export * from './smartfeed.classes.feed.js';

View File

@@ -1,4 +1,4 @@
import * as plugins from './smartfeed.plugins'; import * as plugins from './smartfeed.plugins.js';
export interface IFeedOptions { export interface IFeedOptions {
domain: string; domain: string;

View File

@@ -1,5 +1,6 @@
import { Feed, IFeedOptions } from './smartfeed.classes.feed'; import { Feed } from './smartfeed.classes.feed.js';
import * as plugins from './smartfeed.plugins'; import type { IFeedOptions } from './smartfeed.classes.feed.js';
import * as plugins from './smartfeed.plugins.js';
export class Smartfeed { export class Smartfeed {
public createFeed(optionsArg: IFeedOptions) { public createFeed(optionsArg: IFeedOptions) {