@prairielearn/logger 2.0.24 → 3.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,17 @@
1
1
  # @prairielearn/logger
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 3914bb4: Upgrade to Node 24
8
+
9
+ ## 2.0.25
10
+
11
+ ### Patch Changes
12
+
13
+ - 0900843: Switch to the `tsgo` compiler
14
+
3
15
  ## 2.0.24
4
16
 
5
17
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,0BAOjB,CAAC;AAEH,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,QAQ5D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,0BAOjB,CAAC;AAEH,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,QAQ5D","sourcesContent":["import { format } from 'logform';\nimport { createLogger, transports } from 'winston';\n\nexport const logger = createLogger({\n transports: [\n new transports.Console({\n level: 'info',\n format: format.combine(format.colorize(), format.simple()),\n }),\n ],\n});\n\ninterface AddFileLoggingOptions {\n filename: string;\n level?: string;\n}\n\nexport function addFileLogging(options: AddFileLoggingOptions) {\n logger.add(\n new transports.File({\n filename: options.filename,\n level: options.level ?? 'debug',\n format: format.combine(format.timestamp(), format.json()),\n }),\n );\n}\n"]}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC;IACjC,UAAU,EAAE;QACV,IAAI,UAAU,CAAC,OAAO,CAAC;YACrB,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;SAC3D,CAAC;KACH;CACF,CAAC,CAAC;AAOH,MAAM,UAAU,cAAc,CAAC,OAA8B;IAC3D,MAAM,CAAC,GAAG,CACR,IAAI,UAAU,CAAC,IAAI,CAAC;QAClB,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,OAAO;QAC/B,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;KAC1D,CAAC,CACH,CAAC;AACJ,CAAC","sourcesContent":["import { format } from 'logform';\nimport { createLogger, transports } from 'winston';\n\nexport const logger = createLogger({\n transports: [\n new transports.Console({\n level: 'info',\n format: format.combine(format.colorize(), format.simple()),\n }),\n ],\n});\n\ninterface AddFileLoggingOptions {\n filename: string;\n level?: string;\n}\n\nexport function addFileLogging(options: AddFileLoggingOptions) {\n logger.add(\n new transports.File({\n filename: options.filename,\n level: options.level ?? 'debug',\n format: format.combine(format.timestamp(), format.json()),\n }),\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC;IACjC,UAAU,EAAE;QACV,IAAI,UAAU,CAAC,OAAO,CAAC;YACrB,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;SAC3D,CAAC;KACH;CACF,CAAC,CAAC;AAOH,MAAM,UAAU,cAAc,CAAC,OAA8B,EAAE;IAC7D,MAAM,CAAC,GAAG,CACR,IAAI,UAAU,CAAC,IAAI,CAAC;QAClB,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,OAAO;QAC/B,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;KAC1D,CAAC,CACH,CAAC;AAAA,CACH","sourcesContent":["import { format } from 'logform';\nimport { createLogger, transports } from 'winston';\n\nexport const logger = createLogger({\n transports: [\n new transports.Console({\n level: 'info',\n format: format.combine(format.colorize(), format.simple()),\n }),\n ],\n});\n\ninterface AddFileLoggingOptions {\n filename: string;\n level?: string;\n}\n\nexport function addFileLogging(options: AddFileLoggingOptions) {\n logger.add(\n new transports.File({\n filename: options.filename,\n level: options.level ?? 'debug',\n format: format.combine(format.timestamp(), format.json()),\n }),\n );\n}\n"]}
package/package.json CHANGED
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "@prairielearn/logger",
3
- "version": "2.0.24",
3
+ "version": "3.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/logger"
9
9
  },
10
+ "engines": {
11
+ "node": ">=24.0.0"
12
+ },
10
13
  "main": "./dist/index.js",
11
14
  "scripts": {
12
- "build": "tsc",
13
- "dev": "tsc --watch --preserveWatchOutput"
15
+ "build": "tsgo",
16
+ "dev": "tsgo --watch --preserveWatchOutput"
14
17
  },
15
18
  "dependencies": {
16
19
  "logform": "^2.7.0",
@@ -19,7 +22,8 @@
19
22
  },
20
23
  "devDependencies": {
21
24
  "@prairielearn/tsconfig": "^0.0.0",
22
- "@types/node": "^22.19.3",
25
+ "@types/node": "^24.10.9",
26
+ "@typescript/native-preview": "^7.0.0-dev.20260106.1",
23
27
  "typescript": "^5.9.3"
24
28
  }
25
29
  }