@changelogai/core 0.1.1 → 0.1.3
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 +24 -3
- package/package.json +10 -1
package/README.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Framework-agnostic SDK for fetching changelogs from ChangelogAI.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
### Install the package
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
npm install @changelogai/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Add your API key
|
|
12
|
+
|
|
13
|
+
Create or update your `.env` file with your API key:
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
CHANGELOG_AI_API_SECRET=clai_*******
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
You can generate an API key from the **Settings** page in your Changelog AI dashboard under the **API Keys** section.
|
|
20
|
+
|
|
21
|
+
### Fetch your changelogs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
import { fetchChangelogs } from "@changelogai/core";
|
|
25
|
+
|
|
26
|
+
const logs = await fetchChangelogs();
|
|
27
|
+
console.log(logs);
|
|
28
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@changelogai/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Framework-agnostic core SDK for ChangelogAI",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/NikolaV96/changelogai-core"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://changelogai.dev",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/NikolaV96/changelogai-core/issues"
|
|
13
|
+
},
|
|
5
14
|
"type": "module",
|
|
6
15
|
"main": "dist/index.js",
|
|
7
16
|
"module": "dist/index.js",
|