Compare commits

...
Author SHA1 Message Date
Daniel KennedyandCopilot f34c457292 Update packages/glob/RELEASES.md
Co-authored-by: Copilot <[email protected]>
2026-01-28 21:15:32 -05:00
Daniel Kennedy ceb003d313 @actions/glob: convert to an ESM module 2026-01-28 21:10:43 -05:00
Daniel Kennedy ed3ea3b5ba @actions/core: convert to ESM module 2026-01-28 20:50:58 -05:00
Daniel Kennedy c9c663babe Bump @actions/io to 3.0.2 2026-01-28 15:59:40 -05:00
Daniel Kennedy 0fc1805b46 @actions/exec: convert to ESM module 2026-01-28 15:59:40 -05:00
47 changed files with 241 additions and 150 deletions
+15 -3
View File
@@ -5,7 +5,17 @@ module.exports = {
testEnvironment: 'node', testEnvironment: 'node',
testMatch: ['**/__tests__/*.test.ts'], testMatch: ['**/__tests__/*.test.ts'],
moduleNameMapper: { moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1' '^(\\.{1,2}/.*)\\.js$': '$1',
'^@actions/core$': '<rootDir>/packages/core/lib/core.js',
'^@actions/exec$': '<rootDir>/packages/exec/lib/exec.js',
'^@actions/io$': '<rootDir>/packages/io/lib/io.js',
'^@actions/io/lib/io-util$': '<rootDir>/packages/io/lib/io-util.js',
'^@actions/http-client$': '<rootDir>/packages/http-client/lib/index.js',
'^@actions/http-client/lib/auth$': '<rootDir>/packages/http-client/lib/auth.js',
'^@actions/http-client/lib/interfaces$': '<rootDir>/packages/http-client/lib/interfaces.js',
'^@actions/github$': '<rootDir>/packages/github/lib/github.js',
'^@actions/github/lib/utils$': '<rootDir>/packages/github/lib/utils.js',
'^@actions/glob$': '<rootDir>/packages/glob/lib/glob.js'
}, },
transform: { transform: {
'^.+\\.(ts|js)$': ['ts-jest', { '^.+\\.(ts|js)$': ['ts-jest', {
@@ -13,12 +23,14 @@ module.exports = {
diagnostics: {warnOnly: true}, diagnostics: {warnOnly: true},
tsconfig: { tsconfig: {
allowJs: true, allowJs: true,
esModuleInterop: true esModuleInterop: true,
module: 'commonjs',
moduleResolution: 'node'
} }
}] }]
}, },
transformIgnorePatterns: [ transformIgnorePatterns: [
'/node_modules/(?!(@octokit|universal-user-agent|before-after-hook)/)' '/node_modules/(?!(@octokit|@actions/github|@actions/http-client|@actions/io|@actions/exec|@actions/core|@actions/glob|universal-user-agent|before-after-hook)/)'
], ],
verbose: true verbose: true
} }
+27 -2
View File
@@ -1,74 +1,99 @@
# @actions/core Releases # @actions/core Releases
## 3.0.0
- **Breaking change**: Package is now ESM-only
- CommonJS consumers must use dynamic `import()` instead of `require()`
## 2.0.3 ## 2.0.3
- Bump `@actions/http-client` to `3.0.2` - Bump `@actions/http-client` to `3.0.2`
## 2.0.1 ## 2.0.1
- Bump @actions/exec from 1.1.1 to 2.0.0 [#2199](https://github.com/actions/toolkit/pull/2199) - Bump @actions/exec from 1.1.1 to 2.0.0 [#2199](https://github.com/actions/toolkit/pull/2199)
## 2.0.0 ## 2.0.0
- Add support for Node 24 [#2110](https://github.com/actions/toolkit/pull/2110) - Add support for Node 24 [#2110](https://github.com/actions/toolkit/pull/2110)
- Bump @actions/http-client from 2.0.1 to 3.0.0 - Bump @actions/http-client from 2.0.1 to 3.0.0
## 1.11.1 ## 1.11.1
- Fix uses of `crypto.randomUUID` on Node 18 and earlier [#1842](https://github.com/actions/toolkit/pull/1842) - Fix uses of `crypto.randomUUID` on Node 18 and earlier [#1842](https://github.com/actions/toolkit/pull/1842)
### 1.11.0 ### 1.11.0
- Add platform info utilities [#1551](https://github.com/actions/toolkit/pull/1551) - Add platform info utilities [#1551](https://github.com/actions/toolkit/pull/1551)
- Remove dependency on `uuid` package [#1824](https://github.com/actions/toolkit/pull/1824) - Remove dependency on `uuid` package [#1824](https://github.com/actions/toolkit/pull/1824)
### 1.10.1 ### 1.10.1
- Fix error message reference in oidc utils [#1511](https://github.com/actions/toolkit/pull/1511) - Fix error message reference in oidc utils [#1511](https://github.com/actions/toolkit/pull/1511)
### 1.10.0 ### 1.10.0
- `saveState` and `setOutput` now use environment files if available [#1178](https://github.com/actions/toolkit/pull/1178) - `saveState` and `setOutput` now use environment files if available [#1178](https://github.com/actions/toolkit/pull/1178)
- `getMultilineInput` now correctly trims whitespace by default [#1185](https://github.com/actions/toolkit/pull/1185) - `getMultilineInput` now correctly trims whitespace by default [#1185](https://github.com/actions/toolkit/pull/1185)
### 1.9.1 ### 1.9.1
- Randomize delimiter when calling `core.exportVariable` - Randomize delimiter when calling `core.exportVariable`
### 1.9.0 ### 1.9.0
- Added `toPosixPath`, `toWin32Path` and `toPlatformPath` utilities [#1102](https://github.com/actions/toolkit/pull/1102) - Added `toPosixPath`, `toWin32Path` and `toPlatformPath` utilities [#1102](https://github.com/actions/toolkit/pull/1102)
### 1.8.2 ### 1.8.2
- Update to v2.0.1 of `@actions/http-client` [#1087](https://github.com/actions/toolkit/pull/1087) - Update to v2.0.1 of `@actions/http-client` [#1087](https://github.com/actions/toolkit/pull/1087)
### 1.8.1 ### 1.8.1
- Update to v2.0.0 of `@actions/http-client` - Update to v2.0.0 of `@actions/http-client`
### 1.8.0 ### 1.8.0
- Deprecate `markdownSummary` extension export in favor of `summary` - Deprecate `markdownSummary` extension export in favor of `summary`
- https://github.com/actions/toolkit/pull/1072 - <https://github.com/actions/toolkit/pull/1072>
- https://github.com/actions/toolkit/pull/1073 - <https://github.com/actions/toolkit/pull/1073>
### 1.7.0 ### 1.7.0
- [Added `markdownSummary` extension](https://github.com/actions/toolkit/pull/1014) - [Added `markdownSummary` extension](https://github.com/actions/toolkit/pull/1014)
### 1.6.0 ### 1.6.0
- [Added OIDC Client function `getIDToken`](https://github.com/actions/toolkit/pull/919) - [Added OIDC Client function `getIDToken`](https://github.com/actions/toolkit/pull/919)
- [Added `file` parameter to `AnnotationProperties`](https://github.com/actions/toolkit/pull/896) - [Added `file` parameter to `AnnotationProperties`](https://github.com/actions/toolkit/pull/896)
### 1.5.0 ### 1.5.0
- [Added support for notice annotations and more annotation fields](https://github.com/actions/toolkit/pull/855) - [Added support for notice annotations and more annotation fields](https://github.com/actions/toolkit/pull/855)
### 1.4.0 ### 1.4.0
- [Added the `getMultilineInput` function](https://github.com/actions/toolkit/pull/829) - [Added the `getMultilineInput` function](https://github.com/actions/toolkit/pull/829)
### 1.3.0 ### 1.3.0
- [Added the trimWhitespace option to getInput](https://github.com/actions/toolkit/pull/802) - [Added the trimWhitespace option to getInput](https://github.com/actions/toolkit/pull/802)
- [Added the getBooleanInput function](https://github.com/actions/toolkit/pull/725) - [Added the getBooleanInput function](https://github.com/actions/toolkit/pull/725)
### 1.2.7 ### 1.2.7
- [Prepend newline for set-output](https://github.com/actions/toolkit/pull/772) - [Prepend newline for set-output](https://github.com/actions/toolkit/pull/772)
### 1.2.6 ### 1.2.6
- [Update `exportVariable` and `addPath` to use environment files](https://github.com/actions/toolkit/pull/571) - [Update `exportVariable` and `addPath` to use environment files](https://github.com/actions/toolkit/pull/571)
### 1.2.5 ### 1.2.5
- [Correctly bundle License File with package](https://github.com/actions/toolkit/pull/548) - [Correctly bundle License File with package](https://github.com/actions/toolkit/pull/548)
### 1.2.4 ### 1.2.4
- [Be more lenient in accepting non-string command inputs](https://github.com/actions/toolkit/pull/405) - [Be more lenient in accepting non-string command inputs](https://github.com/actions/toolkit/pull/405)
- [Add Echo commands](https://github.com/actions/toolkit/pull/411) - [Add Echo commands](https://github.com/actions/toolkit/pull/411)
+1 -1
View File
@@ -1,4 +1,4 @@
import * as command from '../src/command' import * as command from '../src/command.js'
import * as os from 'os' import * as os from 'os'
/* eslint-disable @typescript-eslint/unbound-method */ /* eslint-disable @typescript-eslint/unbound-method */
+2 -2
View File
@@ -1,9 +1,9 @@
import * as fs from 'fs' import * as fs from 'fs'
import * as os from 'os' import * as os from 'os'
import * as path from 'path' import * as path from 'path'
import * as core from '../src/core' import * as core from '../src/core.js'
import {HttpClient} from '@actions/http-client' import {HttpClient} from '@actions/http-client'
import {toCommandProperties} from '../src/utils' import {toCommandProperties} from '../src/utils.js'
/* eslint-disable @typescript-eslint/unbound-method */ /* eslint-disable @typescript-eslint/unbound-method */
+1 -1
View File
@@ -1,6 +1,6 @@
import * as path from 'path' import * as path from 'path'
import {toPlatformPath, toPosixPath, toWin32Path} from '../src/path-utils' import {toPlatformPath, toPosixPath, toWin32Path} from '../src/path-utils.js'
describe('#toPosixPath', () => { describe('#toPosixPath', () => {
const cases: { const cases: {
+1 -1
View File
@@ -1,5 +1,5 @@
import os from 'os' import os from 'os'
import {platform} from '../src/core' import {platform} from '../src/core.js'
describe('getInfo', () => { describe('getInfo', () => {
it('returns the platform info', async () => { it('returns the platform info', async () => {
+1 -1
View File
@@ -1,7 +1,7 @@
import * as fs from 'fs' import * as fs from 'fs'
import * as os from 'os' import * as os from 'os'
import path from 'path' import path from 'path'
import {summary, SUMMARY_ENV_VAR} from '../src/summary' import {summary, SUMMARY_ENV_VAR} from '../src/summary.js'
const testDirectoryPath = path.join(__dirname, 'test') const testDirectoryPath = path.join(__dirname, 'test')
const testFilePath = path.join(testDirectoryPath, 'test-summary.md') const testFilePath = path.join(testDirectoryPath, 'test-summary.md')
+29 -19
View File
@@ -1,34 +1,34 @@
{ {
"name": "@actions/core", "name": "@actions/core",
"version": "2.0.3", "version": "3.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@actions/core", "name": "@actions/core",
"version": "2.0.3", "version": "3.0.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/exec": "^2.0.0", "@actions/exec": "^3.0.0",
"@actions/http-client": "^3.0.2" "@actions/http-client": "^4.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^16.18.112" "@types/node": "^25.1.0"
} }
}, },
"node_modules/@actions/exec": { "node_modules/@actions/exec": {
"version": "2.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/@actions/exec/-/exec-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-3.0.0.tgz",
"integrity": "sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==", "integrity": "sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/io": "^2.0.0" "@actions/io": "^3.0.2"
} }
}, },
"node_modules/@actions/http-client": { "node_modules/@actions/http-client": {
"version": "3.0.2", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-3.0.2.tgz", "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-4.0.0.tgz",
"integrity": "sha512-JP38FYYpyqvUsz+Igqlc/JG6YO9PaKuvqjM3iGvaLqFnJ7TFmcLyy2IDrY0bI0qCQug8E9K+elv5ZNfw62ZJzA==", "integrity": "sha512-QuwPsgVMsD6qaPD57GLZi9sqzAZCtiJT8kVBCDpLtxhL5MydQ4gS+DrejtZZPdIYyB1e95uCK9Luyds7ybHI3g==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"tunnel": "^0.0.6", "tunnel": "^0.0.6",
@@ -36,17 +36,20 @@
} }
}, },
"node_modules/@actions/io": { "node_modules/@actions/io": {
"version": "2.0.0", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/@actions/io/-/io-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@actions/io/-/io-3.0.2.tgz",
"integrity": "sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==", "integrity": "sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "16.18.126", "version": "25.1.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.126.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-25.1.0.tgz",
"integrity": "sha512-OTcgaiwfGFBKacvfwuHzzn1KLxH/er8mluiy8/uM3sGXHaRe73RrSIj01jow9t4kJEW633Ov+cOexXeiApTyAw==", "integrity": "sha512-t7frlewr6+cbx+9Ohpl0NOTKXZNV9xHRmNOvql47BFJKcEG1CxtxlPEEe+gR9uhVWM4DwhnvTF110mIL4yP9RA==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT",
"dependencies": {
"undici-types": "~7.16.0"
}
}, },
"node_modules/tunnel": { "node_modules/tunnel": {
"version": "0.0.6", "version": "0.0.6",
@@ -65,6 +68,13 @@
"engines": { "engines": {
"node": ">=18.17" "node": ">=18.17"
} }
},
"node_modules/undici-types": {
"version": "7.16.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",
"dev": true,
"license": "MIT"
} }
} }
} }
+11 -4
View File
@@ -1,6 +1,6 @@
{ {
"name": "@actions/core", "name": "@actions/core",
"version": "2.0.3", "version": "3.0.0",
"description": "Actions core lib", "description": "Actions core lib",
"keywords": [ "keywords": [
"github", "github",
@@ -9,8 +9,15 @@
], ],
"homepage": "https://github.com/actions/toolkit/tree/main/packages/core", "homepage": "https://github.com/actions/toolkit/tree/main/packages/core",
"license": "MIT", "license": "MIT",
"type": "module",
"main": "lib/core.js", "main": "lib/core.js",
"types": "lib/core.d.ts", "types": "lib/core.d.ts",
"exports": {
".": {
"types": "./lib/core.d.ts",
"import": "./lib/core.js"
}
},
"directories": { "directories": {
"lib": "lib", "lib": "lib",
"test": "__tests__" "test": "__tests__"
@@ -36,10 +43,10 @@
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },
"dependencies": { "dependencies": {
"@actions/exec": "^2.0.0", "@actions/exec": "^3.0.0",
"@actions/http-client": "^3.0.2" "@actions/http-client": "^4.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^16.18.112" "@types/node": "^25.1.0"
} }
} }
+1 -1
View File
@@ -1,5 +1,5 @@
import * as os from 'os' import * as os from 'os'
import {toCommandValue} from './utils' import {toCommandValue} from './utils.js'
// For internal use, subject to change. // For internal use, subject to change.
+8 -8
View File
@@ -1,11 +1,11 @@
import {issue, issueCommand} from './command' import {issue, issueCommand} from './command.js'
import {issueFileCommand, prepareKeyValueMessage} from './file-command' import {issueFileCommand, prepareKeyValueMessage} from './file-command.js'
import {toCommandProperties, toCommandValue} from './utils' import {toCommandProperties, toCommandValue} from './utils.js'
import * as os from 'os' import * as os from 'os'
import * as path from 'path' import * as path from 'path'
import {OidcClient} from './oidc-utils' import {OidcClient} from './oidc-utils.js'
/** /**
* Interface for getInput options * Interface for getInput options
@@ -400,19 +400,19 @@ export async function getIDToken(aud?: string): Promise<string> {
/** /**
* Summary exports * Summary exports
*/ */
export {summary} from './summary' export {summary} from './summary.js'
/** /**
* @deprecated use core.summary * @deprecated use core.summary
*/ */
export {markdownSummary} from './summary' export {markdownSummary} from './summary.js'
/** /**
* Path exports * Path exports
*/ */
export {toPosixPath, toWin32Path, toPlatformPath} from './path-utils' export {toPosixPath, toWin32Path, toPlatformPath} from './path-utils.js'
/** /**
* Platform utilities exports * Platform utilities exports
*/ */
export * as platform from './platform' export * as platform from './platform.js'
+1 -1
View File
@@ -6,7 +6,7 @@
import * as crypto from 'crypto' import * as crypto from 'crypto'
import * as fs from 'fs' import * as fs from 'fs'
import * as os from 'os' import * as os from 'os'
import {toCommandValue} from './utils' import {toCommandValue} from './utils.js'
export function issueFileCommand(command: string, message: any): void { export function issueFileCommand(command: string, message: any): void {
const filePath = process.env[`GITHUB_${command}`] const filePath = process.env[`GITHUB_${command}`]
+1 -1
View File
@@ -3,7 +3,7 @@ import * as actions_http_client from '@actions/http-client'
import {RequestOptions} from '@actions/http-client/lib/interfaces' import {RequestOptions} from '@actions/http-client/lib/interfaces'
import {HttpClient} from '@actions/http-client' import {HttpClient} from '@actions/http-client'
import {BearerCredentialHandler} from '@actions/http-client/lib/auth' import {BearerCredentialHandler} from '@actions/http-client/lib/auth'
import {debug, setSecret} from './core' import {debug, setSecret} from './core.js'
interface TokenResponse { interface TokenResponse {
value?: string value?: string
} }
+2 -2
View File
@@ -1,8 +1,8 @@
// We use any as a valid input type // We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
import {AnnotationProperties} from './core' import {AnnotationProperties} from './core.js'
import {CommandProperties} from './command' import {CommandProperties} from './command.js'
/** /**
* Sanitizes an input into a string so it can be passed into issueCommand safely * Sanitizes an input into a string so it can be passed into issueCommand safely
+3 -1
View File
@@ -4,7 +4,9 @@
"baseUrl": "./", "baseUrl": "./",
"outDir": "./lib", "outDir": "./lib",
"declaration": true, "declaration": true,
"rootDir": "./src" "rootDir": "./src",
"module": "node16",
"moduleResolution": "node16"
}, },
"include": [ "include": [
"./src" "./src"
+11 -4
View File
@@ -1,13 +1,20 @@
# @actions/exec Releases # @actions/exec 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) - Add support for Node 24 [#2110](https://github.com/actions/toolkit/pull/2110)
- Bump @actions/io dependency from ^1.0.1 to ^2.0.0 - Bump @actions/io dependency from ^1.0.1 to ^2.0.0
### 1.1.1 ## 1.1.1
- Update `lockfileVersion` to `v2` in `package-lock.json [#1024](https://github.com/actions/toolkit/pull/1024)
### 1.1.0 - Update `lockfileVersion` to `v2` in `package-lock.json` [#1024](https://github.com/actions/toolkit/pull/1024)
## 1.1.0
- [Fix stdline dropping large output](https://github.com/actions/toolkit/pull/773) - [Fix stdline dropping large output](https://github.com/actions/toolkit/pull/773)
- [Add getExecOutput function](https://github.com/actions/toolkit/pull/814) - [Add getExecOutput function](https://github.com/actions/toolkit/pull/814)
+16 -16
View File
@@ -1,5 +1,5 @@
import * as exec from '../src/exec' import * as exec from '../src/exec.js'
import * as im from '../src/interfaces' import * as im from '../src/interfaces.js'
import * as childProcess from 'child_process' import * as childProcess from 'child_process'
import * as fs from 'fs' import * as fs from 'fs'
@@ -14,7 +14,7 @@ const IS_WINDOWS = process.platform === 'win32'
const SPAWN_WAIT_SCRIPT = path.join( const SPAWN_WAIT_SCRIPT = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'spawn-wait-for-file.js' 'spawn-wait-for-file.cjs'
) )
let outstream: stream.Writable let outstream: stream.Writable
@@ -196,7 +196,7 @@ describe('@actions/exec', () => {
const scriptPath: string = path.join( const scriptPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stderroutput.js' 'stderroutput.cjs'
) )
const nodePath: string = await io.which('node', true) const nodePath: string = await io.which('node', true)
@@ -218,7 +218,7 @@ describe('@actions/exec', () => {
const scriptPath: string = path.join( const scriptPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stderroutput.js' 'stderroutput.cjs'
) )
const nodePath: string = await io.which('node', true) const nodePath: string = await io.which('node', true)
@@ -255,12 +255,12 @@ describe('@actions/exec', () => {
const stdErrPath: string = path.join( const stdErrPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stderroutput.js' 'stderroutput.cjs'
) )
const stdOutPath: string = path.join( const stdOutPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stdoutoutput.js' 'stdoutoutput.cjs'
) )
const nodePath: string = await io.which('node', true) const nodePath: string = await io.which('node', true)
let stdoutCalled = false let stdoutCalled = false
@@ -295,7 +295,7 @@ describe('@actions/exec', () => {
const stdlinePath: string = path.join( const stdlinePath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stdlineoutput.js' 'stdlineoutput.cjs'
) )
const nodePath: string = await io.which('node', true) const nodePath: string = await io.which('node', true)
@@ -344,7 +344,7 @@ describe('@actions/exec', () => {
const waitForInput: string = path.join( const waitForInput: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'wait-for-input.js' 'wait-for-input.cjs'
) )
const _testExecOptions = getExecOptions() const _testExecOptions = getExecOptions()
@@ -622,12 +622,12 @@ describe('@actions/exec', () => {
const stdErrPath: string = path.join( const stdErrPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stderroutput.js' 'stderroutput.cjs'
) )
const stdOutPath: string = path.join( const stdOutPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stdoutoutput.js' 'stdoutoutput.cjs'
) )
const nodePath: string = await io.which('node', true) const nodePath: string = await io.which('node', true)
@@ -653,12 +653,12 @@ describe('@actions/exec', () => {
const stdErrPath: string = path.join( const stdErrPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stderroutput.js' 'stderroutput.cjs'
) )
const stdOutPath: string = path.join( const stdOutPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stdoutoutput.js' 'stdoutoutput.cjs'
) )
const nodePath: string = await io.which('node', true) const nodePath: string = await io.which('node', true)
@@ -703,12 +703,12 @@ describe('@actions/exec', () => {
const stdErrPath: string = path.join( const stdErrPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stderroutput.js' 'stderroutput.cjs'
) )
const stdOutPath: string = path.join( const stdOutPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stdoutoutputlarge.js' 'stdoutoutputlarge.cjs'
) )
const nodePath: string = await io.which('node', true) const nodePath: string = await io.which('node', true)
@@ -753,7 +753,7 @@ describe('@actions/exec', () => {
const stdOutPath: string = path.join( const stdOutPath: string = path.join(
__dirname, __dirname,
'scripts', 'scripts',
'stdoutputspecial.js' 'stdoutputspecial.cjs'
) )
const nodePath: string = await io.which('node', true) const nodePath: string = await io.which('node', true)
@@ -15,10 +15,10 @@ if (!filePath) {
throw new Error('file is not specified') throw new Error('file is not specified')
} }
// Spawn wait-for-file.js with inherited stdio // Spawn wait-for-file.cjs with inherited stdio
// This creates a grandchild process that holds the stdio handles open // This creates a grandchild process that holds the stdio handles open
// after this process (the child) exits // after this process (the child) exits
const waitScript = path.join(__dirname, 'wait-for-file.js') const waitScript = path.join(__dirname, 'wait-for-file.cjs')
const isWindows = process.platform === 'win32' const isWindows = process.platform === 'win32'
// On Windows, use detached:true to properly keep streams open // On Windows, use detached:true to properly keep streams open
+6 -6
View File
@@ -1,21 +1,21 @@
{ {
"name": "@actions/exec", "name": "@actions/exec",
"version": "2.0.0", "version": "3.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@actions/exec", "name": "@actions/exec",
"version": "2.0.0", "version": "3.0.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/io": "^2.0.0" "@actions/io": "^3.0.2"
} }
}, },
"node_modules/@actions/io": { "node_modules/@actions/io": {
"version": "2.0.0", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/@actions/io/-/io-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@actions/io/-/io-3.0.2.tgz",
"integrity": "sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==", "integrity": "sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==",
"license": "MIT" "license": "MIT"
} }
} }
+9 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@actions/exec", "name": "@actions/exec",
"version": "2.0.0", "version": "3.0.0",
"description": "Actions exec lib", "description": "Actions exec lib",
"keywords": [ "keywords": [
"github", "github",
@@ -9,8 +9,15 @@
], ],
"homepage": "https://github.com/actions/toolkit/tree/main/packages/exec", "homepage": "https://github.com/actions/toolkit/tree/main/packages/exec",
"license": "MIT", "license": "MIT",
"type": "module",
"main": "lib/exec.js", "main": "lib/exec.js",
"types": "lib/exec.d.ts", "types": "lib/exec.d.ts",
"exports": {
".": {
"types": "./lib/exec.d.ts",
"import": "./lib/exec.js"
}
},
"directories": { "directories": {
"lib": "lib", "lib": "lib",
"test": "__tests__" "test": "__tests__"
@@ -36,6 +43,6 @@
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },
"dependencies": { "dependencies": {
"@actions/io": "^2.0.0" "@actions/io": "^3.0.2"
} }
} }
+2 -2
View File
@@ -1,6 +1,6 @@
import {StringDecoder} from 'string_decoder' import {StringDecoder} from 'string_decoder'
import {ExecOptions, ExecOutput, ExecListeners} from './interfaces' import {ExecOptions, ExecOutput, ExecListeners} from './interfaces.js'
import * as tr from './toolrunner' import * as tr from './toolrunner.js'
export {ExecOptions, ExecOutput, ExecListeners} export {ExecOptions, ExecOutput, ExecListeners}
+1 -1
View File
@@ -3,7 +3,7 @@ import * as events from 'events'
import * as child from 'child_process' import * as child from 'child_process'
import * as path from 'path' import * as path from 'path'
import * as stream from 'stream' import * as stream from 'stream'
import * as im from './interfaces' import * as im from './interfaces.js'
import * as io from '@actions/io' import * as io from '@actions/io'
import * as ioUtil from '@actions/io/lib/io-util' import * as ioUtil from '@actions/io/lib/io-util'
import {setTimeout} from 'timers' import {setTimeout} from 'timers'
+3 -1
View File
@@ -3,7 +3,9 @@
"compilerOptions": { "compilerOptions": {
"baseUrl": "./", "baseUrl": "./",
"outDir": "./lib", "outDir": "./lib",
"rootDir": "./src" "rootDir": "./src",
"module": "node16",
"moduleResolution": "node16"
}, },
"include": [ "include": [
"./src" "./src"
+21 -11
View File
@@ -1,33 +1,43 @@
# @actions/glob Releases # @actions/glob Releases
### 0.5.1 ## 0.6.0
- **Breaking change**: Package is now ESM-only
- CommonJS consumers must use dynamic `import()` instead of `require()`
## 0.5.1
- Bump `@actions/core` to `2.0.3` - Bump `@actions/core` to `2.0.3`
### 0.5.0 ## 0.5.0
- Added `excludeHiddenFiles` option, which is disabled by default to preserve existing behavior [#1791: Add glob option to ignore hidden files](https://github.com/actions/toolkit/pull/1791) - Added `excludeHiddenFiles` option, which is disabled by default to preserve existing behavior [#1791: Add glob option to ignore hidden files](https://github.com/actions/toolkit/pull/1791)
### 0.4.0 ## 0.4.0
- Pass in the current workspace as a parameter to HashFiles [#1318](https://github.com/actions/toolkit/pull/1318) - Pass in the current workspace as a parameter to HashFiles [#1318](https://github.com/actions/toolkit/pull/1318)
### 0.3.0 ## 0.3.0
- Added a `verbose` option to HashFiles [#1052](https://github.com/actions/toolkit/pull/1052/files) - Added a `verbose` option to HashFiles [#1052](https://github.com/actions/toolkit/pull/1052/files)
### 0.2.1 ## 0.2.1
- Update `lockfileVersion` to `v2` in `package-lock.json [#1023](https://github.com/actions/toolkit/pull/1023)
- Update `lockfileVersion` to `v2` in `package-lock.json` [#1023](https://github.com/actions/toolkit/pull/1023)
## 0.2.0
### 0.2.0
- [Added the hashFiles function to Glob](https://github.com/actions/toolkit/pull/830) - [Added the hashFiles function to Glob](https://github.com/actions/toolkit/pull/830)
- [Added an option to filter out directories](https://github.com/actions/toolkit/pull/728) - [Added an option to filter out directories](https://github.com/actions/toolkit/pull/728)
### 0.1.2 ## 0.1.2
- [Fix bug where files were matched incorrectly](https://github.com/actions/toolkit/pull/805) - [Fix bug where files were matched incorrectly](https://github.com/actions/toolkit/pull/805)
### 0.1.1 ## 0.1.1
- Update @actions/core version - Update @actions/core version
### 0.1.0
## 0.1.0
- Initial release - Initial release
+2 -2
View File
@@ -1,6 +1,6 @@
import * as io from '../../io/src/io' import * as io from '../../io/src/io.js'
import * as path from 'path' import * as path from 'path'
import {hashFiles} from '../src/glob' import {hashFiles} from '../src/glob.js'
import {promises as fs} from 'fs' import {promises as fs} from 'fs'
const IS_WINDOWS = process.platform === 'win32' const IS_WINDOWS = process.platform === 'win32'
@@ -1,9 +1,9 @@
import * as child from 'child_process' import * as child from 'child_process'
import * as io from '../../io/src/io' import * as io from '../../io/src/io.js'
import * as os from 'os' import * as os from 'os'
import * as path from 'path' import * as path from 'path'
import {Globber, DefaultGlobber} from '../src/internal-globber' import {Globber, DefaultGlobber} from '../src/internal-globber.js'
import {GlobOptions} from '../src/internal-glob-options' import {GlobOptions} from '../src/internal-glob-options.js'
import {promises as fs} from 'fs' import {promises as fs} from 'fs'
const IS_WINDOWS = process.platform === 'win32' const IS_WINDOWS = process.platform === 'win32'
@@ -1,4 +1,4 @@
import * as pathHelper from '../src/internal-path-helper' import * as pathHelper from '../src/internal-path-helper.js'
const IS_WINDOWS = process.platform === 'win32' const IS_WINDOWS = process.platform === 'win32'
@@ -1,5 +1,5 @@
import * as path from 'path' import * as path from 'path'
import {Path} from '../src/internal-path' import {Path} from '../src/internal-path.js'
const IS_WINDOWS = process.platform === 'win32' const IS_WINDOWS = process.platform === 'win32'
@@ -1,8 +1,8 @@
import * as path from 'path' import * as path from 'path'
import * as patternHelper from '../src/internal-pattern-helper' import * as patternHelper from '../src/internal-pattern-helper.js'
import {MatchKind} from '../src/internal-match-kind' import {MatchKind} from '../src/internal-match-kind.js'
import {IS_WINDOWS} from '../../io/src/io-util' import {IS_WINDOWS} from '../../io/src/io-util.js'
import {Pattern} from '../src/internal-pattern' import {Pattern} from '../src/internal-pattern.js'
describe('pattern-helper', () => { describe('pattern-helper', () => {
it('getSearchPaths omits negate search paths', () => { it('getSearchPaths omits negate search paths', () => {
@@ -1,9 +1,9 @@
import * as io from '../../io/src/io' import * as io from '../../io/src/io.js'
import * as os from 'os' import * as os from 'os'
import * as path from 'path' import * as path from 'path'
import {MatchKind} from '../src/internal-match-kind' import {MatchKind} from '../src/internal-match-kind.js'
import {promises as fs} from 'fs' import {promises as fs} from 'fs'
import {Pattern} from '../src/internal-pattern' import {Pattern} from '../src/internal-pattern.js'
const IS_WINDOWS = process.platform === 'win32' const IS_WINDOWS = process.platform === 'win32'
+18 -18
View File
@@ -1,41 +1,41 @@
{ {
"name": "@actions/glob", "name": "@actions/glob",
"version": "0.5.1", "version": "0.6.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@actions/glob", "name": "@actions/glob",
"version": "0.5.1", "version": "0.6.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^2.0.3", "@actions/core": "^3.0.0",
"minimatch": "^3.0.4" "minimatch": "^3.0.4"
} }
}, },
"node_modules/@actions/core": { "node_modules/@actions/core": {
"version": "2.0.3", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-2.0.3.tgz", "resolved": "https://registry.npmjs.org/@actions/core/-/core-3.0.0.tgz",
"integrity": "sha512-Od9Thc3T1mQJYddvVPM4QGiLUewdh+3txmDYHHxoNdkqysR1MbCT+rFOtNUxYAz+7+6RIsqipVahY2GJqGPyxA==", "integrity": "sha512-zYt6cz+ivnTmiT/ksRVriMBOiuoUpDCJJlZ5KPl2/FRdvwU3f7MPh9qftvbkXJThragzUZieit2nyHUyw53Seg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/exec": "^2.0.0", "@actions/exec": "^3.0.0",
"@actions/http-client": "^3.0.2" "@actions/http-client": "^4.0.0"
} }
}, },
"node_modules/@actions/exec": { "node_modules/@actions/exec": {
"version": "2.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/@actions/exec/-/exec-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-3.0.0.tgz",
"integrity": "sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==", "integrity": "sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/io": "^2.0.0" "@actions/io": "^3.0.2"
} }
}, },
"node_modules/@actions/http-client": { "node_modules/@actions/http-client": {
"version": "3.0.2", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-3.0.2.tgz", "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-4.0.0.tgz",
"integrity": "sha512-JP38FYYpyqvUsz+Igqlc/JG6YO9PaKuvqjM3iGvaLqFnJ7TFmcLyy2IDrY0bI0qCQug8E9K+elv5ZNfw62ZJzA==", "integrity": "sha512-QuwPsgVMsD6qaPD57GLZi9sqzAZCtiJT8kVBCDpLtxhL5MydQ4gS+DrejtZZPdIYyB1e95uCK9Luyds7ybHI3g==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"tunnel": "^0.0.6", "tunnel": "^0.0.6",
@@ -43,9 +43,9 @@
} }
}, },
"node_modules/@actions/io": { "node_modules/@actions/io": {
"version": "2.0.0", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/@actions/io/-/io-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@actions/io/-/io-3.0.2.tgz",
"integrity": "sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==", "integrity": "sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/balanced-match": { "node_modules/balanced-match": {
+9 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@actions/glob", "name": "@actions/glob",
"version": "0.5.1", "version": "0.6.0",
"preview": true, "preview": true,
"description": "Actions glob lib", "description": "Actions glob lib",
"keywords": [ "keywords": [
@@ -10,8 +10,15 @@
], ],
"homepage": "https://github.com/actions/toolkit/tree/main/packages/glob", "homepage": "https://github.com/actions/toolkit/tree/main/packages/glob",
"license": "MIT", "license": "MIT",
"type": "module",
"main": "lib/glob.js", "main": "lib/glob.js",
"types": "lib/glob.d.ts", "types": "lib/glob.d.ts",
"exports": {
".": {
"types": "./lib/glob.d.ts",
"import": "./lib/glob.js"
}
},
"directories": { "directories": {
"lib": "lib", "lib": "lib",
"test": "__tests__" "test": "__tests__"
@@ -37,7 +44,7 @@
"url": "https://github.com/actions/toolkit/issues" "url": "https://github.com/actions/toolkit/issues"
}, },
"dependencies": { "dependencies": {
"@actions/core": "^2.0.3", "@actions/core": "^3.0.0",
"minimatch": "^3.0.4" "minimatch": "^3.0.4"
} }
} }
+4 -4
View File
@@ -1,7 +1,7 @@
import {Globber, DefaultGlobber} from './internal-globber' import {Globber, DefaultGlobber} from './internal-globber.js'
import {GlobOptions} from './internal-glob-options' import {GlobOptions} from './internal-glob-options.js'
import {HashFileOptions} from './internal-hash-file-options' import {HashFileOptions} from './internal-hash-file-options.js'
import {hashFiles as _hashFiles} from './internal-hash-files' import {hashFiles as _hashFiles} from './internal-hash-files.js'
export {Globber, GlobOptions} export {Globber, GlobOptions}
@@ -1,5 +1,5 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import {GlobOptions} from './internal-glob-options' import {GlobOptions} from './internal-glob-options.js'
/** /**
* Returns a copy with defaults filled in. * Returns a copy with defaults filled in.
+6 -6
View File
@@ -1,12 +1,12 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import * as fs from 'fs' import * as fs from 'fs'
import * as globOptionsHelper from './internal-glob-options-helper' import * as globOptionsHelper from './internal-glob-options-helper.js'
import * as path from 'path' import * as path from 'path'
import * as patternHelper from './internal-pattern-helper' import * as patternHelper from './internal-pattern-helper.js'
import {GlobOptions} from './internal-glob-options' import {GlobOptions} from './internal-glob-options.js'
import {MatchKind} from './internal-match-kind' import {MatchKind} from './internal-match-kind.js'
import {Pattern} from './internal-pattern' import {Pattern} from './internal-pattern.js'
import {SearchState} from './internal-search-state' import {SearchState} from './internal-search-state.js'
const IS_WINDOWS = process.platform === 'win32' const IS_WINDOWS = process.platform === 'win32'
+1 -1
View File
@@ -4,7 +4,7 @@ import * as fs from 'fs'
import * as stream from 'stream' import * as stream from 'stream'
import * as util from 'util' import * as util from 'util'
import * as path from 'path' import * as path from 'path'
import {Globber} from './glob' import {Globber} from './glob.js'
export async function hashFiles( export async function hashFiles(
globber: Globber, globber: Globber,
+1 -1
View File
@@ -1,5 +1,5 @@
import * as path from 'path' import * as path from 'path'
import * as pathHelper from './internal-path-helper' import * as pathHelper from './internal-path-helper.js'
import assert from 'assert' import assert from 'assert'
const IS_WINDOWS = process.platform === 'win32' const IS_WINDOWS = process.platform === 'win32'
+3 -3
View File
@@ -1,6 +1,6 @@
import * as pathHelper from './internal-path-helper' import * as pathHelper from './internal-path-helper.js'
import {MatchKind} from './internal-match-kind' import {MatchKind} from './internal-match-kind.js'
import {Pattern} from './internal-pattern' import {Pattern} from './internal-pattern.js'
const IS_WINDOWS = process.platform === 'win32' const IS_WINDOWS = process.platform === 'win32'
+3 -3
View File
@@ -1,10 +1,10 @@
import * as os from 'os' import * as os from 'os'
import * as path from 'path' import * as path from 'path'
import * as pathHelper from './internal-path-helper' import * as pathHelper from './internal-path-helper.js'
import assert from 'assert' import assert from 'assert'
import {Minimatch, IMinimatch, IOptions as IMinimatchOptions} from 'minimatch' import {Minimatch, IMinimatch, IOptions as IMinimatchOptions} from 'minimatch'
import {MatchKind} from './internal-match-kind' import {MatchKind} from './internal-match-kind.js'
import {Path} from './internal-path' import {Path} from './internal-path.js'
const IS_WINDOWS = process.platform === 'win32' const IS_WINDOWS = process.platform === 'win32'
+3 -1
View File
@@ -3,7 +3,9 @@
"compilerOptions": { "compilerOptions": {
"baseUrl": "./", "baseUrl": "./",
"outDir": "./lib", "outDir": "./lib",
"rootDir": "./src" "rootDir": "./src",
"module": "node16",
"moduleResolution": "node16"
}, },
"include": [ "include": [
"./src" "./src"