Skip to content

Commit

Permalink
chore: publish 1.0.0 (#154)
Browse files Browse the repository at this point in the history
* chore: update min sample to use no-compress

* chore: prevent throwing

* chore: publish 1.0.0
  • Loading branch information
daniel-statsig authored May 24, 2024
1 parent 970a759 commit af21c18
Show file tree
Hide file tree
Showing 27 changed files with 100 additions and 121 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"private": true,
"name": "statsig",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"lint": "nx run-many --parallel=5 --target=lint",
"test": "nx run-many --parallel=5 --target=test",
"e2e": "nx run-many --parallel=5 --target=e2e",
"build": "nx run-many --parallel=5 --target=build",
"format": "nx format-check --parallel=5 --affected --verbose",
"format": "nx format-check --parallel=5 --affected",
"format:write": "nx format-write --parallel=5 --affected",
"sync-version": "nx sync-version",
"publish-all": "nx publish-all",
"prepare": "husky install",
"copy-min-libs": "node ./tools/scripts/copy-min-libs.js",
"size": "size-limit",
"noop": ":"
},
"private": true,
"devDependencies": {
"@angular-devkit/build-angular": "~17.1.0",
"@angular-devkit/core": "~17.1.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/angular-bindings/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"private": true,
"name": "@statsig/angular-bindings",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"peerDependencies": {
"@angular/core": "^17.1.0",
"@statsig/client-core": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0"
},
"sideEffects": false,
"private": true
"sideEffects": false
}
2 changes: 1 addition & 1 deletion packages/client-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@statsig/client-core",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {},
"type": "commonjs",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-core/src/StatsigMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const SDK_VERSION = '0.0.1-beta.42';
export const SDK_VERSION = '1.0.0';

export type StatsigMetadata = {
readonly [key: string]: string | undefined;
Expand Down
4 changes: 3 additions & 1 deletion packages/client-core/src/StatsigUser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { _DJB2Object } from './Hashing';
import { Log } from './Log';
import type { StatsigEnvironment } from './StatsigOptionsCommon';

type StatsigUserPrimitives =
Expand Down Expand Up @@ -41,7 +42,8 @@ export function _normalizeUser(

return copy;
} catch (error) {
throw new Error('User object must be convertable to JSON string.');
Log.error('Failed to JSON.stringify user');
return {};
}
}

Expand Down
20 changes: 10 additions & 10 deletions packages/combo/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"private": "true",
"private": true,
"name": "statsig-combo",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42",
"@statsig/js-client": "0.0.1-beta.42",
"@statsig/js-local-overrides": "0.0.1-beta.42",
"@statsig/js-on-device-eval-client": "0.0.1-beta.42",
"@statsig/js-user-persisted-storage": "0.0.1-beta.42",
"@statsig/session-replay": "0.0.1-beta.42",
"@statsig/web-analytics": "0.0.1-beta.42",
"@statsig/react-bindings": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0",
"@statsig/js-client": "1.0.0",
"@statsig/js-local-overrides": "1.0.0",
"@statsig/js-on-device-eval-client": "1.0.0",
"@statsig/js-user-persisted-storage": "1.0.0",
"@statsig/session-replay": "1.0.0",
"@statsig/web-analytics": "1.0.0",
"@statsig/react-bindings": "1.0.0"
},
"type": "commonjs",
"main": "./src/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/expo-bindings/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@statsig/expo-bindings",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42",
"@statsig/react-bindings": "0.0.1-beta.42",
"@statsig/react-native-core": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0",
"@statsig/react-bindings": "1.0.0",
"@statsig/react-native-core": "1.0.0"
},
"peerDependencies": {
"react": "^16.6.3 || ^17.0.0 || ^18.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/js-client/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@statsig/js-client",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0"
},
"jsdelivr": "./build/statsig-js-client.min.js",
"type": "commonjs",
Expand Down
4 changes: 2 additions & 2 deletions packages/js-local-overrides/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@statsig/js-local-overrides",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0"
},
"type": "commonjs",
"main": "./src/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/js-on-device-eval-client/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@statsig/js-on-device-eval-client",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42",
"@statsig/sha256": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0",
"@statsig/sha256": "1.0.0"
},
"jsdelivr": "./build/statsig-js-on-device-eval-client.min.js",
"type": "commonjs",
Expand Down
4 changes: 2 additions & 2 deletions packages/js-user-persisted-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@statsig/js-user-persisted-storage",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0"
},
"type": "commonjs",
"main": "./src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-bindings/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@statsig/react-bindings",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0"
},
"peerDependencies": {
"react": "^16.6.3 || ^17.0.0 || ^18.0.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/react-native-bindings/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@statsig/react-native-bindings",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42",
"@statsig/react-bindings": "0.0.1-beta.42",
"@statsig/react-native-core": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0",
"@statsig/react-bindings": "1.0.0",
"@statsig/react-native-core": "1.0.0"
},
"peerDependencies": {
"react": "^16.6.3 || ^17.0.0 || ^18.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-native-core/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@statsig/react-native-core",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42",
"@statsig/react-bindings": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0",
"@statsig/react-bindings": "1.0.0"
},
"peerDependencies": {
"react": "^16.6.3 || ^17.0.0 || ^18.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/session-replay/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@statsig/session-replay",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"rrweb": "2.0.0-alpha.12",
"@statsig/client-core": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0"
},
"devDependencies": {
"@rrweb/types": "2.0.0-alpha.12"
Expand Down
2 changes: 1 addition & 1 deletion packages/sha256/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@statsig/sha256",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {},
"devDependencies": {
"js-sha256": "0.10.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/test-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "statsig-test-helpers",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@jest/globals": "29.7.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/web-analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@statsig/web-analytics",
"version": "0.0.1-beta.42",
"version": "1.0.0",
"dependencies": {
"@statsig/client-core": "0.0.1-beta.42",
"@statsig/js-client": "0.0.1-beta.42"
"@statsig/client-core": "1.0.0",
"@statsig/js-client": "1.0.0"
},
"jsdelivr": "./build/statsig-web-analytics.min.js",
"type": "commonjs",
Expand Down
Loading

0 comments on commit af21c18

Please sign in to comment.