From 274026963081a4376c3e53cfc1a1ecf5f3143819 Mon Sep 17 00:00:00 2001 From: Oscar Bazaldua <511911+oscb@users.noreply.github.com> Date: Wed, 9 Feb 2022 14:35:09 -0800 Subject: [PATCH] chore: release v2.1.2-beta --- packages/core/package.json | 6 ++++-- packages/core/src/__tests__/analytics.test.ts | 2 +- packages/core/src/__tests__/context.test.ts | 7 ++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index b01cab2af..e8100505c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,13 +1,14 @@ { "name": "@segment/analytics-react-native", - "version": "2.1.0-beta", + "version": "2.1.2-beta", "description": "The hassle-free way to add Segment analytics to your React-Native app.", "main": "lib/commonjs/index", "scripts": { "build": "bob build", "test": "jest", "typescript": "tsc --noEmit", - "clean": "rimraf lib node_modules" + "clean": "rimraf lib node_modules", + "release": "release-it" }, "keywords": [ "segment", @@ -70,6 +71,7 @@ "react": "^17.0.2", "react-native": "^0.67.2", "react-native-builder-bob": "^0.18.2", + "release-it": "14.12.4", "rimraf": "^3.0.2", "ts-jest": "^27.0.7", "typescript": "^4.4.4" diff --git a/packages/core/src/__tests__/analytics.test.ts b/packages/core/src/__tests__/analytics.test.ts index a57a563cb..f7f9c6d4c 100644 --- a/packages/core/src/__tests__/analytics.test.ts +++ b/packages/core/src/__tests__/analytics.test.ts @@ -137,7 +137,7 @@ describe('SegmentClient', () => { }); }); -describe.only('SegmentClient onUpdateStore', () => { +describe('SegmentClient onUpdateStore', () => { const store = new MockSegmentStore(); const clientArgs = { config: { diff --git a/packages/core/src/__tests__/context.test.ts b/packages/core/src/__tests__/context.test.ts index 0dea0e386..39ccab6eb 100644 --- a/packages/core/src/__tests__/context.test.ts +++ b/packages/core/src/__tests__/context.test.ts @@ -1,6 +1,8 @@ import { NativeModules } from 'react-native'; import type { Context, NativeContextInfo, UserTraits } from '../types'; +import packageJson from '../../package.json'; + import { getContext } from '../context'; describe('#getContext', () => { @@ -39,9 +41,8 @@ describe('#getContext', () => { type: 'phone', }, library: { - name: '@segment/analytics-react-native', - // TODO: Mock this value - version: '2.1.0-beta', + name: packageJson.name, + version: packageJson.version, }, locale: 'en_US', network: {