Skip to content

Commit 0318a96

Browse files
authored
chore: release v2.1.2-beta (#438)
1 parent b76739a commit 0318a96

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

packages/core/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "@segment/analytics-react-native",
3-
"version": "2.1.0-beta",
3+
"version": "2.1.2-beta",
44
"description": "The hassle-free way to add Segment analytics to your React-Native app.",
55
"main": "lib/commonjs/index",
66
"scripts": {
77
"build": "bob build",
88
"test": "jest",
99
"typescript": "tsc --noEmit",
10-
"clean": "rimraf lib node_modules"
10+
"clean": "rimraf lib node_modules",
11+
"release": "release-it"
1112
},
1213
"keywords": [
1314
"segment",
@@ -70,6 +71,7 @@
7071
"react": "^17.0.2",
7172
"react-native": "^0.67.2",
7273
"react-native-builder-bob": "^0.18.2",
74+
"release-it": "14.12.4",
7375
"rimraf": "^3.0.2",
7476
"ts-jest": "^27.0.7",
7577
"typescript": "^4.4.4"

packages/core/src/__tests__/analytics.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describe('SegmentClient', () => {
137137
});
138138
});
139139

140-
describe.only('SegmentClient onUpdateStore', () => {
140+
describe('SegmentClient onUpdateStore', () => {
141141
const store = new MockSegmentStore();
142142
const clientArgs = {
143143
config: {

packages/core/src/__tests__/context.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { NativeModules } from 'react-native';
22
import type { Context, NativeContextInfo, UserTraits } from '../types';
33

4+
import packageJson from '../../package.json';
5+
46
import { getContext } from '../context';
57

68
describe('#getContext', () => {
@@ -39,9 +41,8 @@ describe('#getContext', () => {
3941
type: 'phone',
4042
},
4143
library: {
42-
name: '@segment/analytics-react-native',
43-
// TODO: Mock this value
44-
version: '2.1.0-beta',
44+
name: packageJson.name,
45+
version: packageJson.version,
4546
},
4647
locale: 'en_US',
4748
network: {

0 commit comments

Comments
 (0)