@prairielearn/flash 1.1.3 → 1.1.4

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,13 @@
1
1
  # @prairielearn/flash
2
2
 
3
+ ## 1.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 2da23ab: Upgrade all JavaScript dependencies
8
+ - Updated dependencies [2da23ab]
9
+ - @prairielearn/html@3.1.2
10
+
3
11
  ## 1.1.3
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Request, Response, NextFunction } from 'express';
1
+ import type { Request, Response, NextFunction } from 'express';
2
2
  import { HtmlSafeString } from '@prairielearn/html';
3
3
  export type FlashMessageType = 'notice' | 'success' | 'warning' | 'error';
4
4
  export interface FlashMessage {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prairielearn/flash",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "main": "dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,13 +13,14 @@
13
13
  "test": "mocha --no-config --require ts-node/register src/index.test.ts"
14
14
  },
15
15
  "dependencies": {
16
- "@prairielearn/html": "^3.1.1"
16
+ "@prairielearn/html": "^3.1.2",
17
+ "@types/express": "^4.17.21"
17
18
  },
18
19
  "devDependencies": {
19
20
  "@prairielearn/tsconfig": "^0.0.0",
20
- "@types/express": "^4.17.20",
21
- "@types/express-session": "^1.17.9",
22
- "@types/node": "^18.18.8",
21
+ "@types/express-session": "^1.17.10",
22
+ "@types/node": "^18.19.0",
23
+ "chai": "^4.3.10",
23
24
  "mocha": "^10.2.0",
24
25
  "ts-node": "^10.9.1",
25
26
  "typescript": "^5.2.2"
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AsyncLocalStorage } from 'node:async_hooks';
2
- import { Request, Response, NextFunction } from 'express';
2
+ import type { Request, Response, NextFunction } from 'express';
3
3
  import { HtmlSafeString, html } from '@prairielearn/html';
4
4
 
5
5
  const als = new AsyncLocalStorage<FlashStorage>();