@devvit/ui-renderer 0.10.20-next-2024-05-06-1ddaf5cbf.0 → 0.10.20-next-2024-05-07-56d825067.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/ui-renderer",
3
- "version": "0.10.20-next-2024-05-06-1ddaf5cbf.0",
3
+ "version": "0.10.20-next-2024-05-07-56d825067.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,6 +10,7 @@
10
10
  "main": "./index.js",
11
11
  "scripts": {
12
12
  "build": "yarn library:build",
13
+ "build:min": "esbuild --bundle --external:@reddit/baseplate --format=esm --metafile=dist/meta.min.json --minify --outfile=dist/devvit-custom-post.min.js --sourcemap=linked --target=es2020 library/src/client/devvit-custom-post.ts",
13
14
  "clean": "rm -rf .turbo coverage dist library/src/semanticColors.ts",
14
15
  "clobber": "yarn clean && rm -rf node_modules",
15
16
  "dev": "yarn library:dev",
@@ -36,7 +37,8 @@
36
37
  "lint:circular-deps": "yarn madge --circular dist/**/*.js",
37
38
  "lint:fix": "yarn library:lint:fix",
38
39
  "prepublishOnly": "publish-package-json",
39
- "test": "yarn library:test",
40
+ "test": "yarn library:test && yarn test:size",
41
+ "test:size": "yarn build:min && echo \"dist/devvit-custom-post.min.js uncompressed bundle size: $(stat -c '%s' dist/devvit-custom-post.min.js|numfmt --to-unit=Ki --format=%.1f) KiB\" && bundlesize",
40
42
  "test:types": "yarn library:test:types",
41
43
  "test:ui": "bash ./scripts/install-chrome.sh; yarn visual-test:build && yarn visual-test:check && concurrently -k -s first 'yarn visual-test:dev:serve' 'sleep 5; yarn visual-test:test'",
42
44
  "test:unit": "yarn library:test:unit",
@@ -56,10 +58,10 @@
56
58
  },
57
59
  "types": "./index.d.ts",
58
60
  "dependencies": {
59
- "@devvit/protos": "0.10.20-next-2024-05-06-1ddaf5cbf.0",
60
- "@devvit/runtime-lite": "0.10.20-next-2024-05-06-1ddaf5cbf.0",
61
- "@devvit/runtimes": "0.10.20-next-2024-05-06-1ddaf5cbf.0",
62
- "@devvit/shared-types": "0.10.20-next-2024-05-06-1ddaf5cbf.0",
61
+ "@devvit/protos": "0.10.20-next-2024-05-07-56d825067.0",
62
+ "@devvit/runtime-lite": "0.10.20-next-2024-05-07-56d825067.0",
63
+ "@devvit/runtimes": "0.10.20-next-2024-05-07-56d825067.0",
64
+ "@devvit/shared-types": "0.10.20-next-2024-05-07-56d825067.0",
63
65
  "@dotlottie/player-component": "2.7.2",
64
66
  "nice-grpc-web": "3.3.3",
65
67
  "p-queue": "7.3.4",
@@ -86,9 +88,9 @@
86
88
  },
87
89
  "devDependencies": {
88
90
  "@devvit/eslint-config": "0.10.19",
89
- "@devvit/public-api": "0.10.20-next-2024-05-06-1ddaf5cbf.0",
91
+ "@devvit/public-api": "0.10.20-next-2024-05-07-56d825067.0",
90
92
  "@devvit/repo-tools": "0.10.19",
91
- "@devvit/tsconfig": "0.10.20-next-2024-05-06-1ddaf5cbf.0",
93
+ "@devvit/tsconfig": "0.10.20-next-2024-05-07-56d825067.0",
92
94
  "@lit-labs/ssr": "^2.2.3",
93
95
  "@lit/localize": "0.11.4",
94
96
  "@open-wc/testing-helpers": "2.3.0",
@@ -97,11 +99,13 @@
97
99
  "@types/dompurify": "3.0.5",
98
100
  "autoprefixer": "10.4.16",
99
101
  "backstopjs": "6.2.1",
102
+ "bundlesize": "0.18.2",
100
103
  "chokidar": "3.5.3",
101
104
  "chokidar-cli": "3.0.0",
102
105
  "chrome-launcher": "1.0.0",
103
106
  "concurrently": "7.5.0",
104
107
  "debounce": "1.2.1",
108
+ "esbuild": "0.18.12",
105
109
  "eslint": "8.9.0",
106
110
  "fast-xml-parser": "4.2.7",
107
111
  "http-server": "14.1.1",
@@ -120,6 +124,18 @@
120
124
  "publishConfig": {
121
125
  "directory": "dist"
122
126
  },
127
+ "bundlesize": [
128
+ {
129
+ "compression": "gzip",
130
+ "maxSize": "953 KB",
131
+ "path": "dist/devvit-custom-post.min.js"
132
+ },
133
+ {
134
+ "compression": "none",
135
+ "maxSize": "4.32 MB",
136
+ "path": "dist/devvit-custom-post.min.js"
137
+ }
138
+ ],
123
139
  "source": "./src/index.ts",
124
- "gitHead": "47ca31eac1919f4c3bb15adb193c928127de826a"
140
+ "gitHead": "5533bec67309b5dbb2dd81e6b9c816a2bfdd090a"
125
141
  }