Skip to content

Commit 5b4cff1

Browse files
committed
fix(core): export types
1 parent 4a8bad8 commit 5b4cff1

3 files changed

Lines changed: 15 additions & 17 deletions

File tree

packages/core/CHANGELOG.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
# 0.1.0 (2023-04-22)
22

3-
43
### Features
54

6-
* **core:** add debug decorator ([8905d36](https://github.com/analyticsjs/web-analytics/commit/8905d367174b6e5131fbd1f5b056b9bf3c102109))
7-
* **core:** add interceptor ([7014477](https://github.com/analyticsjs/web-analytics/commit/7014477ecaeea79b77096d3bb6b0d6b2713f6fc2))
8-
* **core:** add node id support for track event ([bc3acd4](https://github.com/analyticsjs/web-analytics/commit/bc3acd41673eccd5afdfa00dbc6b9a2f83fe8b5e))
9-
* **core:** add setAccount method ([0daa313](https://github.com/analyticsjs/web-analytics/commit/0daa31399e13d0997252d48e3ec76422f3167721))
10-
* **core:** add trackEvent ([f5b2cce](https://github.com/analyticsjs/web-analytics/commit/f5b2ccea14bd0799133b54acb488f7966e5dbc43))
11-
* **core:** improve the log of trackEvent ([e25bc9f](https://github.com/analyticsjs/web-analytics/commit/e25bc9f2a621ed8376d9c487c41833deb77e9726))
12-
* **core:** loadSdk is now a private method ([9da1a8a](https://github.com/analyticsjs/web-analytics/commit/9da1a8ab83c7f4e567b80d5d98570114336a1e41))
13-
* **core:** provides functional instantiation methods ([4538263](https://github.com/analyticsjs/web-analytics/commit/45382631fa340853ced4e71baee8a11dad8def2e))
14-
* **core:** remove the debug decoration of setAccount ([39f0798](https://github.com/analyticsjs/web-analytics/commit/39f0798144283ebfa4f4a00fd2d7526d561895fb))
15-
* **core:** the debug decorator supports capturing arguments of the method ([94b1632](https://github.com/analyticsjs/web-analytics/commit/94b16323972aaae509877c4d9296a7b750895058))
16-
* **core:** the trackPageview method internally differentiates the options for different platforms ([5f9a913](https://github.com/analyticsjs/web-analytics/commit/5f9a913edd9ddfd6af13cbde56b58000b9478ef5))
17-
18-
19-
5+
- **core:** add debug decorator ([8905d36](https://github.com/analyticsjs/web-analytics/commit/8905d367174b6e5131fbd1f5b056b9bf3c102109))
6+
- **core:** add interceptor ([7014477](https://github.com/analyticsjs/web-analytics/commit/7014477ecaeea79b77096d3bb6b0d6b2713f6fc2))
7+
- **core:** add node id support for track event ([bc3acd4](https://github.com/analyticsjs/web-analytics/commit/bc3acd41673eccd5afdfa00dbc6b9a2f83fe8b5e))
8+
- **core:** add setAccount method ([0daa313](https://github.com/analyticsjs/web-analytics/commit/0daa31399e13d0997252d48e3ec76422f3167721))
9+
- **core:** add trackEvent ([f5b2cce](https://github.com/analyticsjs/web-analytics/commit/f5b2ccea14bd0799133b54acb488f7966e5dbc43))
10+
- **core:** improve the log of trackEvent ([e25bc9f](https://github.com/analyticsjs/web-analytics/commit/e25bc9f2a621ed8376d9c487c41833deb77e9726))
11+
- **core:** loadSdk is now a private method ([9da1a8a](https://github.com/analyticsjs/web-analytics/commit/9da1a8ab83c7f4e567b80d5d98570114336a1e41))
12+
- **core:** provides functional instantiation methods ([4538263](https://github.com/analyticsjs/web-analytics/commit/45382631fa340853ced4e71baee8a11dad8def2e))
13+
- **core:** remove the debug decoration of setAccount ([39f0798](https://github.com/analyticsjs/web-analytics/commit/39f0798144283ebfa4f4a00fd2d7526d561895fb))
14+
- **core:** the debug decorator supports capturing arguments of the method ([94b1632](https://github.com/analyticsjs/web-analytics/commit/94b16323972aaae509877c4d9296a7b750895058))
15+
- **core:** the trackPageview method internally differentiates the options for different platforms ([5f9a913](https://github.com/analyticsjs/web-analytics/commit/5f9a913edd9ddfd6af13cbde56b58000b9478ef5))

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web-analytics/core",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Website pageview analytics tool for framework-free and multi-analytics-platform support.",
55
"author": "chengpeiquan <chengpeiquan@chengpeiquan.com>",
66
"license": "MIT",
@@ -31,4 +31,4 @@
3131
"dependencies": {
3232
"@bassist/utils": "^0.11.2"
3333
}
34-
}
34+
}

packages/core/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { Analytics } from './analytics'
22
import type { CreateAnalyticsInstanceOptions } from './types'
33

4+
export * from './types'
5+
46
export function createBaiduAnalytics(options: CreateAnalyticsInstanceOptions) {
57
return new Analytics<'baidu'>({
68
platform: 'baidu',

0 commit comments

Comments
 (0)