@rudderstack/analytics-js 3.0.0-beta.9 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rudderstack/analytics-js",
3
- "version": "3.0.0-beta.9",
4
- "description": "RudderStack Javascript SDK",
3
+ "version": "3.0.1",
4
+ "description": "RudderStack JavaScript SDK",
5
5
  "main": "dist/npm/modern/cjs/index.js",
6
6
  "module": "dist/npm/modern/esm/index.js",
7
7
  "exports": {
@@ -14,9 +14,26 @@
14
14
  "types": "./dist/npm/index.d.ts",
15
15
  "require": "./dist/npm/legacy/cjs/index.js",
16
16
  "import": "./dist/npm/legacy/esm/index.js"
17
+ },
18
+ "./bundled": {
19
+ "types": "./dist/npm/index.d.ts",
20
+ "require": "./dist/npm/modern/bundled/cjs/index.js",
21
+ "import": "./dist/npm/modern/bundled/esm/index.js"
22
+ },
23
+ "./content-script": {
24
+ "types": "./dist/npm/index.d.ts",
25
+ "require": "./dist/npm/modern/content-script/cjs/index.js",
26
+ "import": "./dist/npm/modern/content-script/esm/index.js"
17
27
  }
18
28
  },
19
29
  "types": "./dist/npm/index.d.ts",
30
+ "typesVersions": {
31
+ "*": {
32
+ "*": [
33
+ "./dist/npm/index.d.ts"
34
+ ]
35
+ }
36
+ },
20
37
  "publishConfig": {
21
38
  "access": "public"
22
39
  },
@@ -49,13 +66,15 @@
49
66
  "build:browser:modern": "BROWSERSLIST_ENV=modern npm run build:browser",
50
67
  "build:browser": "rollup -c --environment VERSION:$npm_package_version,UGLIFY,PROD_DEBUG,ENV:prod",
51
68
  "build:npm": "rollup -c --environment VERSION:$npm_package_version,ENV:prod,MODULE_TYPE:npm",
69
+ "build:npm:bundled": "BUNDLED_PLUGINS=all npm run build:npm:modern",
70
+ "build:npm:content-script": "BUNDLED_PLUGINS=all NO_EXTERNAL_HOST=true npm run build:npm:modern",
52
71
  "build:npm:modern": "BROWSERSLIST_ENV=modern npm run build:npm",
53
- "build:package": "npm run build:npm:modern && npm run build:npm",
72
+ "build:package": "npm run build:npm:modern && npm run build:npm && npm run build:npm:bundled && npm run build:npm:content-script",
54
73
  "build:browser:test": "ONLY_IIFE=true npm run build:browser && sed 's/var rudderanalytics/rudderanalytics/g' dist/cdn/legacy/iife/rsa.min.js > __mocks__/cdnSDKv3.js",
55
74
  "test": "npm run build:browser:test && nx test --maxWorkers=50%",
56
75
  "test:ci": "npm run build:browser:test && nx test --parallel=false --configuration=ci --runInBand --maxWorkers=1 --forceExit",
57
- "check:lint:dev": "eslint --ext .js,.ts src",
58
- "check:lint": "eslint --ext .js,.ts src -f json -o reports/eslint.json || exit 0",
76
+ "check:lint": "nx lint",
77
+ "check:lint:ci": "nx lint --configuration=ci",
59
78
  "check:size:build": "npm run build:browser && npm run build:browser:modern && npm run build:package",
60
79
  "check:size": "npm run check:size:build && size-limit",
61
80
  "check:size:json": "size-limit --json",
@@ -64,19 +83,16 @@
64
83
  "check:support:modern": "NODE_ENV=modern npx browserslist --mobile-to-desktop",
65
84
  "check:duplicates": "jscpd src",
66
85
  "check:security": "npm audit --recursive --audit-level=high",
86
+ "check:pub": "npx publint",
67
87
  "build:modern": "npm run build:browser:modern && npm run build:npm:modern",
68
88
  "package": "npm pack",
69
- "release": "npm publish"
89
+ "release": "npm publish",
90
+ "build:browser:LH": "nx run @rudderstack/analytics-js:build-browser && nx run @rudderstack/analytics-js:build-browser-modern"
70
91
  },
71
- "dependencies": {
72
- "@lukeed/uuid": "2.0.1",
73
- "@preact/signals-core": "1.4.0",
74
- "@rudderstack/analytics-js-common": "3.0.0-beta.9",
75
- "@rudderstack/analytics-js-plugins": "3.0.0-beta.9",
76
- "ramda": "0.29.0",
77
- "storejs": "2.0.6"
92
+ "devDependencies": {
93
+ "@rudderstack/analytics-js-common": "*",
94
+ "@rudderstack/analytics-js-plugins": "*"
78
95
  },
79
- "devDependencies": {},
80
96
  "browserslist": {
81
97
  "production": [
82
98
  "defaults",
@@ -96,5 +112,6 @@
96
112
  "last 1 edge version",
97
113
  "last 1 safari version"
98
114
  ]
99
- }
115
+ },
116
+ "dependencies": {}
100
117
  }