@scratch/scratch-render 11.0.0-beta.1 → 11.0.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": "@scratch/scratch-render",
3
- "version": "11.0.0-beta.1",
3
+ "version": "11.0.0",
4
4
  "description": "WebGL Renderer for Scratch 3.0",
5
5
  "author": "Massachusetts Institute of Technology",
6
6
  "license": "AGPL-3.0-only",
@@ -9,21 +9,26 @@
9
9
  "type": "git",
10
10
  "url": "https://github.com/scratchfoundation/scratch-editor.git"
11
11
  },
12
+ "main": "./dist/node/scratch-render.js",
12
13
  "exports": {
13
14
  "webpack": "./src/index.js",
14
15
  "browser": "./dist/web/scratch-render.js",
15
16
  "node": "./dist/node/scratch-render.js",
16
17
  "default": "./src/index.js"
17
18
  },
19
+ "files": [
20
+ "dist",
21
+ "src"
22
+ ],
18
23
  "scripts": {
19
- "build": "webpack --progress",
24
+ "build": "webpack --progress && npm run docs",
20
25
  "docs": "jsdoc -c .jsdoc.json",
21
26
  "lint": "eslint .",
22
27
  "prepublish": "npm run build",
23
28
  "prepublish-watch": "npm run watch",
24
29
  "start": "webpack-dev-server",
25
30
  "tap": "tap test/unit test/integration",
26
- "test": "npm run lint && npm run docs && npm run build && npm run tap",
31
+ "test": "npm run lint && npm run tap",
27
32
  "watch": "webpack --progress --watch --watch-poll"
28
33
  },
29
34
  "tap": {
@@ -41,44 +46,43 @@
41
46
  "iOS >= 8"
42
47
  ],
43
48
  "dependencies": {
44
- "@scratch/scratch-svg-renderer": "11.0.0-beta.1",
45
- "grapheme-breaker": "^0.3.2",
49
+ "@scratch/scratch-svg-renderer": "11.0.0",
50
+ "grapheme-breaker": "0.3.2",
46
51
  "hull.js": "0.2.10",
47
- "ify-loader": "^1.0.4",
48
- "linebreak": "^0.3.0",
49
- "minilog": "^3.1.0",
50
- "raw-loader": "^0.5.1",
51
- "twgl.js": "^4.4.0"
52
+ "ify-loader": "1.1.0",
53
+ "linebreak": "0.3.0",
54
+ "minilog": "3.1.0",
55
+ "raw-loader": "0.5.1",
56
+ "twgl.js": "4.24.0"
52
57
  },
53
58
  "peerDependencies": {
54
59
  "scratch-render-fonts": "^1.0.0"
55
60
  },
56
61
  "devDependencies": {
57
- "@babel/core": "7.25.2",
58
- "@babel/eslint-parser": "7.25.1",
62
+ "@babel/core": "7.26.9",
63
+ "@babel/eslint-parser": "7.26.8",
59
64
  "@babel/polyfill": "7.12.1",
60
- "@babel/preset-env": "7.25.4",
61
- "@scratch/scratch-vm": "11.0.0-beta.1",
62
- "babel-loader": "9.1.3",
65
+ "@babel/preset-env": "7.26.9",
66
+ "@scratch/scratch-vm": "11.0.0",
67
+ "babel-loader": "9.2.1",
63
68
  "copy-webpack-plugin": "4.6.0",
64
69
  "docdash": "0.4.0",
65
- "eslint": "8.57.0",
66
- "eslint-config-scratch": "9.0.8",
70
+ "eslint": "8.57.1",
71
+ "eslint-config-scratch": "9.0.9",
67
72
  "gh-pages": "1.2.0",
68
- "html-webpack-plugin": "5.6.0",
73
+ "html-webpack-plugin": "5.6.3",
69
74
  "jsdoc": "3.6.11",
70
75
  "json": "9.0.6",
71
- "playwright-chromium": "1.46.1",
72
- "scratch-render-fonts": "1.0.93",
73
- "scratch-semantic-release-config": "1.0.14",
74
- "scratch-storage": "^4.0.24",
75
- "scratch-webpack-configuration": "1.6.0",
76
+ "playwright-chromium": "1.50.1",
77
+ "scratch-render-fonts": "1.0.168",
78
+ "scratch-semantic-release-config": "3.0.0",
79
+ "scratch-storage": "4.0.61",
80
+ "scratch-webpack-configuration": "3.0.0",
76
81
  "semantic-release": "19.0.5",
77
82
  "tap": "16.3.10",
78
- "terser-webpack-plugin": "5.3.10",
79
- "travis-after-all": "1.4.5",
80
- "webpack": "5.94.0",
83
+ "terser-webpack-plugin": "5.3.11",
84
+ "webpack": "5.98.0",
81
85
  "webpack-cli": "5.1.4",
82
- "webpack-dev-server": "5.0.4"
86
+ "webpack-dev-server": "5.2.0"
83
87
  }
84
88
  }
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ root: true,
3
+ extends: ['scratch', 'scratch/es6', 'scratch/node'],
4
+ env: {
5
+ node: false,
6
+ browser: true // TODO: disable this
7
+ },
8
+ globals: {
9
+ Buffer: true // TODO: remove this?
10
+ }
11
+ };
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ extends: ['scratch'],
3
+ env: {
4
+ browser: true
5
+ },
6
+ rules: {
7
+ 'no-console': 'off'
8
+ }
9
+ };
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- v20