Skip to content

Commit bd49851

Browse files
authored
Export NullAnalytics from main package (#1356)
1 parent a70d9e6 commit bd49851

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/beige-timers-clean.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@segment/analytics-next': minor
3+
---
4+
5+
Fixes #1336 NullAnalytics was accidentally removed from the public exports in commit b611746 (PR #1090) when exports were changed from wildcard to explicit. This restores the export for users who need NullAnalytics in their test code.

packages/browser/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { Analytics } from './core/analytics'
1+
export { Analytics, NullAnalytics } from './core/analytics'
22
export { AnalyticsBrowser } from './browser'
33
export type {
44
AnalyticsBrowserSettings,

0 commit comments

Comments
 (0)