@heripo/research-radar 4.0.2 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -150,7 +150,7 @@ Uses the **Provider-Service pattern** from `@llm-newsletter-kit/core`. See [core
150
150
 
151
151
  ```bash
152
152
  # build
153
- npm run build # clean dist/ and build with Rollup (CJS + ESM + types)
153
+ npm run build # clean dist/ and build with Rollup (ESM + types)
154
154
 
155
155
  # type-check & lint
156
156
  npm run lint # lint source files
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ import TurndownService from 'turndown';
7
7
  import { JSDOM } from 'jsdom';
8
8
  import safeMarkdown2Html from 'safe-markdown2html';
9
9
  import DOMPurify from 'dompurify';
10
+ import juice from 'juice';
10
11
 
11
12
  /**
12
13
  * Formats a date string by replacing dots with dashes.
@@ -2846,7 +2847,6 @@ async function generateWelcomeHTML(id, name, options) {
2846
2847
  const siteUrl = options?.siteUrl ?? 'https://heripo.app';
2847
2848
  const safeName = sanitizeText(name);
2848
2849
  const unsubscribeUrl = `${siteUrl}/research-radar/unsubscribe?id=${id}`;
2849
- const { default: juice } = await import('juice');
2850
2850
  return juice(createWelcomeHtmlRaw(safeName, isKras, siteUrl, unsubscribeUrl));
2851
2851
  }
2852
2852
  function createWelcomeHtmlRaw(name, isKras, siteUrl, unsubscribeUrl) {
package/package.json CHANGED
@@ -2,16 +2,14 @@
2
2
  "name": "@heripo/research-radar",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "4.0.2",
5
+ "version": "5.0.1",
6
6
  "description": "AI-driven intelligence for Korean cultural heritage. This package serves as both a ready-to-use newsletter service and a practical implementation example for the LLM-Newsletter-Kit.",
7
- "main": "dist/index.cjs",
8
- "module": "dist/index.js",
7
+ "main": "dist/index.js",
9
8
  "types": "dist/index.d.ts",
10
9
  "exports": {
11
10
  ".": {
12
11
  "types": "./dist/index.d.ts",
13
12
  "import": "./dist/index.js",
14
- "require": "./dist/index.cjs",
15
13
  "default": "./dist/index.js"
16
14
  }
17
15
  },
@@ -48,38 +46,39 @@
48
46
  "author": "kimhongyeon",
49
47
  "license": "Apache-2.0",
50
48
  "dependencies": {
51
- "@ai-sdk/anthropic": "^3.0.85",
52
- "@ai-sdk/google": "^3.0.83",
53
- "@ai-sdk/openai": "^3.0.73",
49
+ "@ai-sdk/anthropic": "^4.0.20",
50
+ "@ai-sdk/google": "^4.0.24",
51
+ "@ai-sdk/openai": "^4.0.20",
52
+ "ai": "^7.0.37",
54
53
  "cheerio": "^1.2.0",
55
- "dompurify": "^3.4.11",
54
+ "dompurify": "^3.4.12",
56
55
  "jsdom": "^29.1.1",
57
56
  "juice": "^12.1.1",
58
- "safe-markdown2html": "^1.0.8",
57
+ "safe-markdown2html": "^1.0.9",
59
58
  "turndown": "^7.2.4"
60
59
  },
61
60
  "peerDependencies": {
62
- "@llm-newsletter-kit/core": "~2.1.0"
61
+ "@llm-newsletter-kit/core": "~3.0.0"
63
62
  },
64
63
  "devDependencies": {
65
64
  "@eslint/js": "^10.0.1",
66
- "@llm-newsletter-kit/core": "^2.1.0",
65
+ "@llm-newsletter-kit/core": "^3.0.1",
67
66
  "@trivago/prettier-plugin-sort-imports": "^6.0.2",
68
67
  "@types/express": "^5.0.6",
69
68
  "@types/jsdom": "^28.0.3",
70
- "@types/node": "^26.0.0",
69
+ "@types/node": "^26.1.1",
71
70
  "@types/turndown": "^5.0.6",
72
- "eslint": "^10.5.0",
71
+ "eslint": "^10.8.0",
73
72
  "eslint-plugin-unused-imports": "^4.4.1",
74
73
  "express": "^5.2.1",
75
- "prettier": "^3.8.4",
74
+ "prettier": "^3.9.6",
76
75
  "rimraf": "^6.1.3",
77
76
  "rollup": "^4.62.2",
78
77
  "rollup-plugin-dts": "^6.4.1",
79
78
  "rollup-plugin-typescript2": "^0.37.0",
80
- "tsx": "^4.22.4",
79
+ "tsx": "^4.23.1",
81
80
  "typescript": "^6.0.3",
82
- "typescript-eslint": "^8.61.1"
81
+ "typescript-eslint": "^8.65.0"
83
82
  },
84
83
  "repository": {
85
84
  "type": "git",
@@ -112,5 +111,13 @@
112
111
  },
113
112
  "publishConfig": {
114
113
  "access": "public"
114
+ },
115
+ "allowScripts": {
116
+ "esbuild@0.28.1": true,
117
+ "fsevents@2.3.3": true
118
+ },
119
+ "overrides": {
120
+ "body-parser": "^2.3.0",
121
+ "postcss": "^8.5.23"
115
122
  }
116
123
  }