@prairielearn/html 4.0.24 → 5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @prairielearn/html
2
2
 
3
+ ## 5.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 3914bb4: Upgrade to Node 24
8
+
3
9
  ## 4.0.24
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -47,5 +47,3 @@ In the past, PrairieLearn used EJS to render most views. However, using a tagged
47
47
  - Prettier will automatically format the content of any `html` tagged template literal; EJS does not have any automatic formatters.
48
48
  - Authoring views in pure JavaScript allows for easier and more explicit composition of components.
49
49
  - It's possible to use ESLint and TypeScript to type-check JavaScript views; EJS does not offer support for either.
50
-
51
- If you want to use existing EJS partials inside of an `html` tagged template literal, check out the `@prairielearn/html-ejs` package. EJS-related functionality is deliberately located in a separate package so that `@prairielearn/html` can be used in the browser, since the `ejs` package makes use of Node-only features. Note, though, that this package is no longer used in PrairieLearn itself, and as such will no longer be actively maintained.
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@prairielearn/html",
3
- "version": "4.0.24",
3
+ "version": "5.0.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/PrairieLearn/PrairieLearn.git",
8
8
  "directory": "packages/html"
9
9
  },
10
+ "engines": {
11
+ "node": ">=24.0.0"
12
+ },
10
13
  "main": "dist/index.js",
11
14
  "scripts": {
12
15
  "build": "tsgo",
@@ -15,7 +18,7 @@
15
18
  },
16
19
  "devDependencies": {
17
20
  "@prairielearn/tsconfig": "^0.0.0",
18
- "@types/node": "^22.19.5",
21
+ "@types/node": "^24.10.9",
19
22
  "@typescript/native-preview": "^7.0.0-dev.20260106.1",
20
23
  "@vitest/coverage-v8": "^4.0.17",
21
24
  "tsx": "^4.21.0",