Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Kennedy 946d27335b Add release notes 2026-01-28 13:27:02 -05:00
Daniel Kennedy 4a2af24706 @actions/io: convert to ESM module 2026-01-28 13:25:11 -05:00
6 changed files with 32 additions and 14 deletions
+16 -7
View File
@@ -1,26 +1,35 @@
# @actions/io Releases
### 2.0.0
## 3.0.0
- **Breaking change**: Package is now ESM-only
- CommonJS consumers must use dynamic `import()` instead of `require()`
## 2.0.0
- Add support for Node 24 [#2110](https://github.com/actions/toolkit/pull/2110)
- Ensures consistent behavior for paths on Node 24 with Windows
### 1.1.3
## 1.1.3
- Replace `child_process.exec` with `fs.rm` in `rmRF` for all OS implementations [#1373](https://github.com/actions/toolkit/pull/1373)
### 1.1.2
## 1.1.2
- Update `lockfileVersion` to `v2` in `package-lock.json [#1020](https://github.com/actions/toolkit/pull/1020)
### 1.1.1
## 1.1.1
- [Fixed a bug where we incorrectly escaped paths for rmrf](https://github.com/actions/toolkit/pull/828)
### 1.1.0
## 1.1.0
- Add `findInPath` method to locate all matching executables in the system path
### 1.0.2
## 1.0.2
- [Add \"types\" to package.json](https://github.com/actions/toolkit/pull/221)
### 1.0.0
## 1.0.0
- Initial release
+2 -2
View File
@@ -2,8 +2,8 @@ import * as child from 'child_process'
import {promises as fs} from 'fs'
import * as os from 'os'
import * as path from 'path'
import * as io from '../src/io'
import * as ioUtil from '../src/io-util'
import * as io from '../src/io.js'
import * as ioUtil from '../src/io-util.js'
describe('cp', () => {
beforeAll(async () => {
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@actions/io",
"version": "2.0.0",
"version": "3.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@actions/io",
"version": "2.0.0",
"version": "3.0.0",
"license": "MIT"
}
}
+8 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@actions/io",
"version": "2.0.0",
"version": "3.0.0",
"description": "Actions io lib",
"keywords": [
"github",
@@ -9,8 +9,15 @@
],
"homepage": "https://github.com/actions/toolkit/tree/main/packages/io",
"license": "MIT",
"type": "module",
"main": "lib/io.js",
"types": "lib/io.d.ts",
"exports": {
".": {
"types": "./lib/io.d.ts",
"import": "./lib/io.js"
}
},
"directories": {
"lib": "lib",
"test": "__tests__"
+1 -1
View File
@@ -1,6 +1,6 @@
import {ok} from 'assert'
import * as path from 'path'
import * as ioUtil from './io-util'
import * as ioUtil from './io-util.js'
/**
* Interface for cp/mv options
+3 -1
View File
@@ -3,7 +3,9 @@
"compilerOptions": {
"baseUrl": "./",
"outDir": "./lib",
"rootDir": "./src"
"rootDir": "./src",
"module": "node16",
"moduleResolution": "node16"
},
"include": [
"./src"