@rudderstack/analytics-js 3.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json ADDED
@@ -0,0 +1,183 @@
1
+ {
2
+ "name": "@rudderstack/analytics-js",
3
+ "version": "3.0.0-beta.1",
4
+ "description": "RudderStack Javascript SDK",
5
+ "main": "modern/cjs/index.js",
6
+ "module": "modern/esm/index.js",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./index.d.ts",
10
+ "require": "./modern/cjs/index.js",
11
+ "import": "./modern/esm/index.js"
12
+ },
13
+ "./legacy": {
14
+ "types": "./index.d.ts",
15
+ "require": "./legacy/cjs/index.js",
16
+ "import": "./legacy/esm/index.js"
17
+ }
18
+ },
19
+ "typesVersions": {
20
+ "*": {
21
+ ".": [
22
+ "index.d.ts"
23
+ ]
24
+ }
25
+ },
26
+ "publishConfig": {
27
+ "directory": "dist/npm",
28
+ "access": "public"
29
+ },
30
+ "keywords": [
31
+ "analytics",
32
+ "rudder"
33
+ ],
34
+ "author": "RudderStack",
35
+ "license": "MIT",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/rudderlabs/rudder-sdk-js.git",
39
+ "directory": "packages/analytics-js"
40
+ },
41
+ "bugs": {
42
+ "url": "https://github.com/rudderlabs/rudder-sdk-js/issues"
43
+ },
44
+ "homepage": "https://github.com/rudderlabs/rudder-sdk-js/blob/master/README.md",
45
+ "scripts": {
46
+ "clean": "rimraf -rf ./dist && rimraf -rf ./node_modules/.cache && rimraf tsconfig.tsbuildinfo && rimraf -rf ./reports",
47
+ "start": "rollup -c --watch --environment DEV_SERVER,PROD_DEBUG",
48
+ "build": "npm run build:browser && npm run build:package",
49
+ "build:browser:modern": "BROWSERSLIST_ENV=modern npm run build:browser",
50
+ "build:browser": "rollup -c --environment VERSION:$npm_package_version,UGLIFY,PROD_DEBUG,ENV:prod",
51
+ "build:npm": "rollup -c --environment VERSION:$npm_package_version,ENV:prod,MODULE_TYPE:npm",
52
+ "build:npm:modern": "BROWSERSLIST_ENV=modern npm run build:npm",
53
+ "build:package": "npm run build:npm:modern && npm run build:npm",
54
+ "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
+ "test": "npm run build:browser:test && jest --watchAll=false --detectOpenHandles --forceExit --maxWorkers=50% --coverage",
56
+ "test:ci": "npm run build:browser:test && jest --watchAll=false --detectOpenHandles --forceExit --maxWorkers=2 --coverage",
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",
59
+ "check:size:build": "npm run clean && npm run build:browser && npm run build:browser:modern && npm run build:package",
60
+ "check:size": "npm run check:size:build && size-limit",
61
+ "check:size:json": "size-limit --json",
62
+ "check:circular": "madge --circular --extensions js,ts src || exit 0",
63
+ "check:support": "NODE_ENV=production npx browserslist --mobile-to-desktop",
64
+ "check:support:modern": "NODE_ENV=modern npx browserslist --mobile-to-desktop",
65
+ "check:duplicates": "jscpd src",
66
+ "check:security": "npm audit --recursive --audit-level=high",
67
+ "start:modern": "BROWSERSLIST_ENV=modern npm run start",
68
+ "build:modern": "npm run build:browser:modern && npm run build:npm:modern",
69
+ "package": "cd dist/npm && npm pack --pack-destination ../../",
70
+ "release": "npm publish"
71
+ },
72
+ "engines": {
73
+ "node": ">=v16"
74
+ },
75
+ "dependencies": {
76
+ "@lukeed/uuid": "2.0.1",
77
+ "@preact/signals-core": "1.3.1",
78
+ "@rudderstack/analytics-js-common": "^3.0.0-beta.1",
79
+ "@rudderstack/analytics-js-plugins": "^3.0.0-beta.1",
80
+ "ramda": "0.29.0",
81
+ "storejs": "2.0.5"
82
+ },
83
+ "devDependencies": {
84
+ "@babel/core": "7.22.9",
85
+ "@babel/eslint-parser": "7.22.9",
86
+ "@babel/plugin-proposal-class-properties": "7.18.6",
87
+ "@babel/plugin-transform-arrow-functions": "7.22.5",
88
+ "@babel/plugin-transform-object-assign": "7.22.5",
89
+ "@babel/plugin-transform-runtime": "7.22.9",
90
+ "@babel/preset-env": "7.22.9",
91
+ "@babel/preset-typescript": "7.22.5",
92
+ "@commitlint/config-conventional": "17.6.7",
93
+ "@commitlint/config-lerna-scopes": "17.6.6",
94
+ "@digitalroute/cz-conventional-changelog-for-jira": "8.0.1",
95
+ "@originjs/vite-plugin-federation": "1.2.2",
96
+ "@rollup/plugin-alias": "5.0.0",
97
+ "@rollup/plugin-babel": "6.0.3",
98
+ "@rollup/plugin-commonjs": "25.0.3",
99
+ "@rollup/plugin-json": "6.0.0",
100
+ "@rollup/plugin-node-resolve": "15.1.0",
101
+ "@rollup/plugin-replace": "5.0.2",
102
+ "@rollup/plugin-terser": "0.4.3",
103
+ "@size-limit/file": "8.2.6",
104
+ "@size-limit/webpack": "8.2.6",
105
+ "@types/jest": "29.5.3",
106
+ "@types/ramda": "0.29.3",
107
+ "@typescript-eslint/eslint-plugin": "5.59.11",
108
+ "@typescript-eslint/parser": "5.59.11",
109
+ "assert": "2.0.0",
110
+ "babel-eslint": "10.1.0",
111
+ "babel-plugin-transform-object-hasown": "1.1.0",
112
+ "commitizen": "4.3.0",
113
+ "commitlint": "17.6.7",
114
+ "conventional-changelog-cli": "2.2.2",
115
+ "conventional-github-releaser": "3.1.5",
116
+ "dotenv": "16.3.1",
117
+ "eslint": "8.45.0",
118
+ "eslint-config-airbnb": "19.0.4",
119
+ "eslint-config-airbnb-base": "15.0.0",
120
+ "eslint-config-airbnb-typescript": "17.1.0",
121
+ "eslint-config-prettier": "8.8.0",
122
+ "eslint-import-resolver-typescript": "3.5.5",
123
+ "eslint-plugin-compat": "4.1.4",
124
+ "eslint-plugin-import": "2.27.5",
125
+ "eslint-plugin-sonarjs": "0.19.0",
126
+ "eslint-plugin-unicorn": "48.0.0",
127
+ "esm": "3.2.25",
128
+ "http-server": "14.1.1",
129
+ "husky": "8.0.3",
130
+ "isomorphic-fetch": "3.0.0",
131
+ "jest": "29.6.1",
132
+ "jest-date-mock": "1.0.8",
133
+ "jest-environment-jsdom": "29.6.1",
134
+ "jest-junit": "16.0.0",
135
+ "jest-sonar": "0.2.16",
136
+ "jest-watch-typeahead": "2.2.2",
137
+ "jscpd": "3.5.9",
138
+ "lint-staged": "13.2.3",
139
+ "madge": "6.1.0",
140
+ "msw": "1.2.2",
141
+ "patch-package": "7.0.2",
142
+ "prettier": "2.8.8",
143
+ "rollup": "3.20.2",
144
+ "rollup-plugin-copy": "3.4.0",
145
+ "rollup-plugin-delete": "2.0.0",
146
+ "rollup-plugin-dts": "5.3.0",
147
+ "rollup-plugin-exclude-dependencies-from-bundle": "1.1.23",
148
+ "rollup-plugin-external-globals": "0.8.0",
149
+ "rollup-plugin-filesize": "10.0.0",
150
+ "rollup-plugin-generate-html-template": "1.7.0",
151
+ "rollup-plugin-livereload": "2.0.5",
152
+ "rollup-plugin-polyfill-node": "0.12.0",
153
+ "rollup-plugin-serve": "2.0.2",
154
+ "rollup-plugin-typescript2": "0.35.0",
155
+ "rollup-plugin-visualizer": "5.9.2",
156
+ "size-limit": "8.2.6",
157
+ "standard-version": "9.5.0",
158
+ "ts-jest": "29.1.1",
159
+ "tslib": "2.6.0",
160
+ "typescript": "4.9.5"
161
+ },
162
+ "overrides": {},
163
+ "browserslist": {
164
+ "production": [
165
+ "defaults",
166
+ "Edge >= 80",
167
+ "Firefox >= 47",
168
+ "IE >= 11",
169
+ "Chrome >= 54",
170
+ "Safari >= 7",
171
+ "Opera >= 43"
172
+ ],
173
+ "modern": [
174
+ "defaults and supports es6-module-dynamic-import"
175
+ ],
176
+ "development": [
177
+ "last 1 chrome version",
178
+ "last 1 firefox version",
179
+ "last 1 edge version",
180
+ "last 1 safari version"
181
+ ]
182
+ }
183
+ }