@spiffcommerce/core 15.1.5 → 16.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,30 +1,20 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "15.1.5",
3
+ "version": "16.0.0-beta.0",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
- "main": "dist/main.js",
7
- "module": "dist/module.js",
8
- "types": "dist/types.d.ts",
6
+ "main": "dist/index.umd.js",
7
+ "module": "dist/index.mjs",
8
+ "types": "dist/index.d.mts",
9
+ "type": "module",
9
10
  "scripts": {
10
- "build": "parcel build",
11
11
  "dev": "ladle serve",
12
- "test": "tsc --noEmit --isolatedModules --skipLibCheck && jest",
13
- "prepare": "yarn run build",
12
+ "build": "vite build",
13
+ "test": "vitest --no-watch",
14
+ "test:watch": "vitest --no-watch",
15
+ "test:nowatch": "vitest --no-watch",
14
16
  "lint": "npx eslint src"
15
17
  },
16
- "targets": {
17
- "main": {
18
- "optimize": true,
19
- "includeNodeModules": [
20
- "@spiffcommerce/papyrus",
21
- "pith"
22
- ]
23
- },
24
- "module": {
25
- "optimize": true
26
- }
27
- },
28
18
  "keywords": [
29
19
  "e-commerce",
30
20
  "personalization",
@@ -32,71 +22,45 @@
32
22
  "print"
33
23
  ],
34
24
  "files": [
35
- "dist/main.js",
36
- "dist/module.js",
37
- "dist/types.d.ts"
25
+ "dist"
38
26
  ],
39
- "author": "Spiff Commerce",
27
+ "author": "SpiffCommerce",
40
28
  "devDependencies": {
41
- "@babel/plugin-proposal-class-properties": "^7.18.6",
42
- "@esbuild-plugins/node-globals-polyfill": "^0.1.1",
43
- "@ladle/react": "^2.4.5",
44
- "@parcel/packager-ts": "2.8.0",
45
- "@parcel/transformer-typescript-tsc": "^2.8.0",
46
- "@parcel/transformer-typescript-types": "2.8.0",
47
- "@parcel/validator-typescript": "^2.8.0",
29
+ "@ladle/react": "2.17.2",
48
30
  "@spiffcommerce/preview": "^3.3.1",
49
31
  "@types/enzyme": "^3.10.12",
50
- "@types/jest": "^29.0.3",
51
32
  "@types/lodash.clonedeep": "^4.5.7",
52
33
  "@types/lodash.debounce": "^4.0.7",
53
34
  "@types/lodash.isequal": "^4.5.6",
35
+ "@types/node-fetch": "^2.6.6",
54
36
  "@types/qrcode": "^1.3.5",
55
- "@types/react": "^17.0.9",
56
- "@types/react-dom": "^17.0.9",
37
+ "@types/react": "^17.0.2",
57
38
  "@types/react-syntax-highlighter": "^15.5.7",
58
39
  "@typescript-eslint/eslint-plugin": "^5.43.0",
59
40
  "@typescript-eslint/parser": "^5.43.0",
60
- "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
61
- "agent-base": "^6.0.2",
62
- "assert": "^2.0.0",
63
- "buffer": "^6.0.3",
41
+ "canvas": "^2.11.2",
64
42
  "enzyme": "^3.11.0",
65
43
  "eslint": "^8.28.0",
66
- "eslint-plugin-react": "^7.31.11",
67
- "eslint-plugin-react-hooks": "^4.6.0",
68
- "events": "^3.3.0",
69
- "https-browserify": "^1.0.0",
44
+ "happy-dom": "^12.1.5",
70
45
  "husky": "^8.0.1",
71
- "jest": "^29.6.2",
72
- "jest-environment-jsdom": "^29.6.2",
73
- "parcel": "^2.7.0",
74
- "path-browserify": "^1.0.1",
75
- "process": "^0.11.10",
76
- "querystring-es3": "^0.2.1",
77
- "react": "^17.0.2",
78
- "react-dom": "^17.0.2",
46
+ "node-fetch": "^3.3.2",
47
+ "react": "17.0.2",
48
+ "react-dom": "17.0.2",
79
49
  "react-syntax-highlighter": "^15.5.0",
80
- "stream-browserify": "^3.0.0",
81
- "stream-http": "^3.2.0",
82
- "ts-jest": "^29.1.1",
83
- "typescript": "4.7.2",
84
- "util": "^0.12.5"
85
- },
86
- "peerDependencies": {
87
- "react": "^17.0.2",
88
- "react-dom": "^17.0.2"
50
+ "tsup": "^7.2.0",
51
+ "typescript": "5.0.3",
52
+ "vite": "^4.4.9",
53
+ "vitest": "^0.34.6"
89
54
  },
90
55
  "dependencies": {
91
- "@apollo/client": "^3.7.0",
92
- "@spiffcommerce/papyrus": "5.0.6",
93
- "cross-fetch": "^3.1.5",
94
- "graphql": "^16.6.0",
56
+ "@apollo/client": "^3.8.3",
57
+ "@spiffcommerce/papyrus": "5.0.7-alpha.9",
58
+ "graphql": "^16.8.0",
95
59
  "lodash.clonedeep": "^4.5.0",
96
60
  "lodash.debounce": "^4.0.8",
97
61
  "lodash.isequal": "^4.5.0",
98
- "pith": "https://github.com/spiffdev/pith.git#6fba0bf988b239967cfbcea91eba6fa0cc26631c",
99
- "qrcode": "^1.5.1",
62
+ "pith": "https://github.com/spiffdev/pith.git#5b04e0a407977de65d3a84cd2e9ac10f0ddd3ff7",
63
+ "qrcode": "^1.5.3",
100
64
  "svg-path-bbox": "^1.2.4",
101
65
  "unicode-default-word-boundary": "^13.0.0"
102
66
  }