@prairielearn/run 1.0.18 → 2.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/run
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 3914bb4: Upgrade to Node 24
8
+
9
+ ## 1.0.19
10
+
11
+ ### Patch Changes
12
+
13
+ - 0900843: Switch to the `tsgo` compiler
14
+
3
15
  ## 1.0.18
4
16
 
5
17
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAErC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAErC","sourcesContent":["export function run<T>(fn: () => T): T {\n return fn();\n}\n"]}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAI,EAAW;IAChC,OAAO,EAAE,EAAE,CAAC;AACd,CAAC","sourcesContent":["export function run<T>(fn: () => T): T {\n return fn();\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAI,EAAW,EAAK;IACrC,OAAO,EAAE,EAAE,CAAC;AAAA,CACb","sourcesContent":["export function run<T>(fn: () => T): T {\n return fn();\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"","sourcesContent":["import { assert, describe, it } from 'vitest';\n\nimport { run } from './index.js';\n\ndescribe('run', () => {\n it('runs a function', () => {\n const result = run(() => 1);\n assert.equal(result, 1);\n });\n\n it('runs an async function', async () => {\n const result = await run(async () => 1);\n assert.equal(result, 1);\n });\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE;IACnB,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;QACzB,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;QACtC,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACxC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { assert, describe, it } from 'vitest';\n\nimport { run } from './index.js';\n\ndescribe('run', () => {\n it('runs a function', () => {\n const result = run(() => 1);\n assert.equal(result, 1);\n });\n\n it('runs an async function', async () => {\n const result = await run(async () => 1);\n assert.equal(result, 1);\n });\n});\n"]}
1
+ {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC;IACpB,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE,CAAC;QAC1B,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAAA,CACzB,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACxC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAAA,CACzB,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC","sourcesContent":["import { assert, describe, it } from 'vitest';\n\nimport { run } from './index.js';\n\ndescribe('run', () => {\n it('runs a function', () => {\n const result = run(() => 1);\n assert.equal(result, 1);\n });\n\n it('runs an async function', async () => {\n const result = await run(async () => 1);\n assert.equal(result, 1);\n });\n});\n"]}
package/package.json CHANGED
@@ -1,24 +1,28 @@
1
1
  {
2
2
  "name": "@prairielearn/run",
3
- "version": "1.0.18",
3
+ "version": "2.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/run"
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
  "test": "vitest run --coverage"
15
18
  },
16
19
  "devDependencies": {
17
20
  "@prairielearn/tsconfig": "^0.0.0",
18
- "@types/node": "^22.19.3",
19
- "@vitest/coverage-v8": "^4.0.16",
21
+ "@types/node": "^24.10.9",
22
+ "@typescript/native-preview": "^7.0.0-dev.20260106.1",
23
+ "@vitest/coverage-v8": "^4.0.17",
20
24
  "tsx": "^4.21.0",
21
25
  "typescript": "^5.9.3",
22
- "vitest": "^4.0.16"
26
+ "vitest": "^4.0.17"
23
27
  }
24
28
  }