diff --git a/CHANGELOG.md b/CHANGELOG.md
index c89e485..94da90b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
# Changelog
+
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
@@ -6,41 +7,62 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
+### Fixed
+
+- Update TypeScript configuration for modern module resolution, fixed #45
+
## 1.5.0 - 2024-10-07
+
### Changed
+
- Improved performance by memoizing the callouts object checking function.
- Better handling of unsupported callout types.
### Fixed
+
- Fixed missing dependency for mdast-util-to-string
## 1.4.0 - 2024-08-28
+
### Changed
+
- Update dependencies
### Fixed
+
- Removed case sensitivity (#25)
## 1.3.2 - 2024-07-16
+
### Changed
+
- Added License notice for lucide icons
## 1.1.3 - 2023-04-02
+
### Fixed
+
- Fixed empty div if there's no remaining content (#3).
## 1.1.2 - 2023-04-02
+
### Changed
+
- Update readme.md
- Update dependencies
## 1.1.0-beta.0 - 2023-04-02
+
### Fixed
+
- Improve github actions, to avoid missing built files.
## 1.0.7 - 2023-04-02
+
### Added
+
- Update github actions for auto release and plublishing.
### Fixed
+
- Fixed empty blockquote (#1).
diff --git a/src/icons.ts b/src/icons.ts
index efe1182..d191f86 100644
--- a/src/icons.ts
+++ b/src/icons.ts
@@ -11,16 +11,16 @@
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-export const infoIcon = ``;
-export const pencilIcon = ``;
-export const clipboardListIcon = ``;
-export const checkCircleIcon = ``;
-export const flameIcon = ``;
-export const checkIcon = ``;
-export const helpCircleIcon = ``;
-export const alertTriangleIcon = ``;
-export const xIcon = ``;
-export const zapIcon = ``;
-export const bugIcon = ``;
-export const listIcon = ``;
-export const quoteIcon = ``;
+export const infoIcon: string = ``;
+export const pencilIcon: string = ``;
+export const clipboardListIcon: string = ``;
+export const checkCircleIcon: string = ``;
+export const flameIcon: string = ``;
+export const checkIcon: string = ``;
+export const helpCircleIcon: string = ``;
+export const alertTriangleIcon: string = ``;
+export const xIcon: string = ``;
+export const zapIcon: string = ``;
+export const bugIcon: string = ``;
+export const listIcon: string = ``;
+export const quoteIcon: string = ``;
diff --git a/src/index.ts b/src/index.ts
index 615984b..91d0222 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -16,7 +16,7 @@ import {
checkCircleIcon,
flameIcon,
checkIcon,
-} from "./icons";
+} from "./icons.js";
/**
* Callout object with callout type as its key and icon as its value
diff --git a/test/index.test.ts b/test/index.test.ts
index ccf0745..20bc114 100644
--- a/test/index.test.ts
+++ b/test/index.test.ts
@@ -3,9 +3,9 @@ import remarkParse from "remark-parse";
import remarkRehype from "remark-rehype";
import rehypeStringify from "rehype-stringify";
import rehypeRaw from "rehype-raw";
-import plugin, { Config } from "../src/index";
+import plugin, { Config } from "../src/index.js";
import { it, expect, describe, vi } from "vitest";
-import { infoIcon, pencilIcon } from "../src/icons";
+import { infoIcon, pencilIcon } from "../src/icons.js";
function normalizeHtml(html: string): string {
return html.replace(/[\n\s]*(<)|>([\n\s]*)/g, (match, p1, p2) =>
diff --git a/tsconfig.json b/tsconfig.json
index 4166cac..e18ccc6 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,8 +1,8 @@
{
"include": ["src", "test"],
"compilerOptions": {
- "lib": ["ESNext", "dom"],
- "module": "ESNext",
+ "lib": ["ESNext", "DOM"],
+ "module": "NodeNext",
"target": "ESNext",
"strict": true,
"esModuleInterop": true,
@@ -11,7 +11,7 @@
"outDir": "dist",
"declaration": true,
"declarationDir": "dist",
- "moduleResolution": "node",
+ "moduleResolution": "NodeNext",
"downlevelIteration": true
}
}