@segment/analytics.js-core
Advanced tools
Comparing version 3.13.9 to 4.0.0-beta.1
4.0.0-beta.1 / 2020-07-30 | ||
========================= | ||
* export interfaces | ||
* fix importing types issues | ||
3.13.8 / 2020-07-29 | ||
@@ -3,0 +9,0 @@ =================== |
@@ -1,2 +0,2 @@ | ||
import { SegmentAnalytics } from './index.d' | ||
import { SegmentAnalytics } from './index.d'; | ||
@@ -6,7 +6,7 @@ declare global { | ||
interface Global { | ||
analytics: SegmentAnalytics.AnalyticsJS | ||
analytics: SegmentAnalytics.AnalyticsJS; | ||
} | ||
} | ||
interface Window { | ||
analytics: SegmentAnalytics.AnalyticsJS | ||
analytics: SegmentAnalytics.AnalyticsJS; | ||
jQuery: any; | ||
@@ -17,2 +17,2 @@ Zepto: any; | ||
export {}; | ||
export {}; |
@@ -1,3 +0,3 @@ | ||
export namespace SegmentAnalytics { | ||
export interface SegmentOpts { | ||
export declare namespace SegmentAnalytics { | ||
interface SegmentOpts { | ||
integrations?: any; | ||
@@ -8,3 +8,3 @@ anonymousId?: string; | ||
export interface IntegrationsSettings { | ||
interface IntegrationsSettings { | ||
// TODO remove `any` | ||
@@ -14,3 +14,3 @@ [key: string]: any; | ||
export interface CookieOptions { | ||
interface CookieOptions { | ||
maxage?: number; | ||
@@ -22,3 +22,3 @@ domain?: string; | ||
export interface MetricsOptions { | ||
interface MetricsOptions { | ||
host?: string; | ||
@@ -30,7 +30,7 @@ sampleRate?: number; | ||
export interface StoreOptions { | ||
interface StoreOptions { | ||
enabled?: boolean; | ||
} | ||
export interface UserOptions { | ||
interface UserOptions { | ||
cookie?: { | ||
@@ -46,3 +46,3 @@ key: string; | ||
export interface GroupOptions { | ||
interface GroupOptions { | ||
cookie?: { | ||
@@ -57,3 +57,3 @@ key: string; | ||
export interface SegmentIntegration { | ||
interface SegmentIntegration { | ||
All?: boolean; | ||
@@ -63,3 +63,3 @@ [integration: string]: boolean | undefined; | ||
export interface InitOptions { | ||
interface InitOptions { | ||
initialPageview?: boolean; | ||
@@ -74,3 +74,3 @@ cookie?: CookieOptions; | ||
export interface AnalyticsJS { | ||
interface AnalyticsJS { | ||
Integrations: { [name: string]: unknown }; | ||
@@ -281,6 +281,2 @@ require: any; | ||
declare var analytics: SegmentAnalytics.AnalyticsJS; | ||
declare module '@segment/analytics.js-core' { | ||
var analytics: SegmentAnalytics.AnalyticsJS; | ||
export default analytics; | ||
} | ||
export default analytics; |
'use strict'; | ||
import { SegmentAnalytics } from './index.d' | ||
import { SegmentAnalytics } from './index.d'; | ||
@@ -5,0 +5,0 @@ /** |
{ | ||
"name": "@segment/analytics.js-core", | ||
"author": "Segment <friends@segment.com>", | ||
"version": "3.13.9", | ||
"version": "4.0.0-beta.1", | ||
"description": "The hassle-free way to integrate analytics into any web application.", | ||
@@ -6,0 +6,0 @@ "types": "lib/index.d.ts", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
186085
4648
1