Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump braces and gulp #333

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 14, 2024

Bumps braces to 3.0.3 and updates ancestor dependency gulp. These dependencies need to be updated together.

Updates braces from 3.0.2 to 3.0.3

Commits

Updates gulp from 4.0.2 to 5.0.0

Release notes

Sourced from gulp's releases.

gulp v5.0.0

We've tried to provide a high-level changelog for gulp v5 below, but it doesn't contain all changes from the 60+ dependencies that we maintain.

Please see individual changelogs to drill down into all changes that were made.

⚠ BREAKING CHANGES

  • Drop support for Node.js <10.13
  • Default stream encoding to UTF-8
  • Standardized on anymatch library for globbing paths. All globs should work the same between src and watch now!
  • Removed support for ordered globs. This aligns with the chokidar globbing implementation. If you need your globs to be ordered, you can use ordered-read-stream
  • All globs and paths are normalized to unix-like filepaths
  • Only allow JS variants for .gulp.* config files
  • Removed support for alpha releases of v4 from gulp-cli
  • Removed the --verify flag
  • Renamed the --require flag to --preload to avoid conflicting with Node.js flags
  • Removed many legacy and deprecated loaders
  • Upgrade to chokidar v3
  • Clone Vinyl objects with stream contents using teex, but no longer wait for all streams to flow before cloned streams will receive data
  • Stop using process.umask() to make directories, instead falling back to Node's default mode
  • Throw on non-function, non-string option coercers
  • Drop support of Node.js snake_case flags
  • Use a Symbol for attaching the gulplog namespace to the store
  • Use a Symbol for attaching the gulplog store to the global
  • Use sha256 to hash the v8flags cache into a filename

Features

  • Streamlined the dependency tree
  • Switch all streams implementation to Streamx
  • Rewrote glob-stream to use a custom directory walk that relies on newer Node.js features and is more performant than old implementation
  • Implement translation support for all CLI messages and all messages passing through gulplog
  • Allow users to customize or remove the timestamp from their logs
  • Upgraded gulplog to v2. Messages logged via v1 will also display a deprecated warning. Plugins should update to v2 as the community upgrades to gulp 5
  • Added support for gulpile.cjs and gulpfile.mjs
  • Add support for swc, esbuild, sucrase, and mdx loaders
  • Provide an ESM export (#2760) (b00de68)
  • Support sourcemap handling on streaming Vinyl contents
  • Support extends syntax for .gulp.* config file
  • Allow overriding gulpfile and preloads via .gulp.* config file

Bug Fixes

  • Resolve bugs related to symlinks on various platforms
  • Resolved some reported ReDoS CVEs and improved performance in glob-parent
  • Rework errors surfaced when encountering files or symlinks when trying to create directories
  • Ensure watch allows japanese characters in globs (72668c6)

... (truncated)

Changelog

Sourced from gulp's changelog.

5.0.0 (2024-03-29)

We've tried to provide a high-level changelog for gulp v5 below, but it doesn't contain all changes from the 60+ dependencies that we maintain.

Please see individual changelogs to drill down into all changes that were made.

⚠ BREAKING CHANGES

  • Drop support for Node.js <10.13
  • Default stream encoding to UTF-8
  • Standardized on anymatch library for globbing paths. All globs should work the same between src and watch now!
  • Removed support for ordered globs. This aligns with the chokidar globbing implementation. If you need your globs to be ordered, you can use ordered-read-stream
  • All globs and paths are normalized to unix-like filepaths
  • Only allow JS variants for .gulp.* config files
  • Removed support for alpha releases of v4 from gulp-cli
  • Removed the --verify flag
  • Renamed the --require flag to --preload to avoid conflicting with Node.js flags
  • Removed many legacy and deprecated loaders
  • Upgrade to chokidar v3
  • Clone Vinyl objects with stream contents using teex, but no longer wait for all streams to flow before cloned streams will receive data
  • Stop using process.umask() to make directories, instead falling back to Node's default mode
  • Throw on non-function, non-string option coercers
  • Drop support of Node.js snake_case flags
  • Use a Symbol for attaching the gulplog namespace to the store
  • Use a Symbol for attaching the gulplog store to the global
  • Use sha256 to hash the v8flags cache into a filename

Features

  • Streamlined the dependency tree
  • Switch all streams implementation to Streamx
  • Rewrote glob-stream to use a custom directory walk that relies on newer Node.js features and is more performant than old implementation
  • Implement translation support for all CLI messages and all messages passing through gulplog
  • Allow users to customize or remove the timestamp from their logs
  • Upgraded gulplog to v2. Messages logged via v1 will also display a deprecated warning. Plugins should update to v2 as the community upgrades to gulp 5
  • Added support for gulpile.cjs and gulpfile.mjs
  • Add support for swc, esbuild, sucrase, and mdx loaders
  • Provide an ESM export (#2760) (b00de68)
  • Support sourcemap handling on streaming Vinyl contents
  • Support extends syntax for .gulp.* config file
  • Allow overriding gulpfile and preloads via .gulp.* config file

Bug Fixes

  • Resolve bugs related to symlinks on various platforms
  • Resolved some reported ReDoS CVEs and improved performance in glob-parent
  • Rework errors surfaced when encountering files or symlinks when trying to create directories
  • Ensure watch allows japanese characters in globs (72668c6)

... (truncated)

Commits

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jun 14, 2024
@TrevCraw
Copy link
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/multi-a9f852c250 branch from e59a6c6 to 13ca3f7 Compare November 18, 2024 19:59
@TrevCraw
Copy link
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/multi-a9f852c250 branch from 13ca3f7 to 465f2eb Compare November 21, 2024 19:39
@TrevCraw
Copy link
Contributor

@dependabot rebase

Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 22, 2024

Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot rebase.

@TrevCraw
Copy link
Contributor

@dependabot rebase

Bumps [braces](https://github.com/micromatch/braces) to 3.0.3 and updates ancestor dependency [gulp](https://github.com/gulpjs/gulp). These dependencies need to be updated together.


Updates `braces` from 3.0.2 to 3.0.3
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

Updates `gulp` from 4.0.2 to 5.0.0
- [Release notes](https://github.com/gulpjs/gulp/releases)
- [Changelog](https://github.com/gulpjs/gulp/blob/master/CHANGELOG.md)
- [Commits](gulpjs/gulp@v4.0.2...v5.0.0)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
- dependency-name: gulp
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/multi-a9f852c250 branch from 465f2eb to ee0f5df Compare November 22, 2024 04:10
@JoshwinThomasIBM
Copy link
Contributor

JoshwinThomasIBM commented Nov 22, 2024

Tried running the tests in local with "gulp": "^5.0.0", and found that the project is not getting detected in the liberty dashboard and as a result the dev mode actions are failing , the click events fail since there is no element in the dashboard for them to interact with , please see the screenshot captured while running the tests
Devmode action tests for Gradle Project attach debugger for gradle with custom parameter event

i tried the refresh button in the dashboard from the Vs code extension window, just to check if that can make the project get detected in the dashboard and see the tests are successful , but got the below error prompt

Screenshot 2024-11-22 at 9 59 36 PM

i also tried running the extension in local with gulp - 5.0.0 and after opening a gradle project into the IDE found the follwin g error

stack trace: Error: Client is not running and can't be stopped. It's current state is: startFailed
at LanguageClient.shutdown (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21619:19)
at LanguageClient.stop (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21590:21)
at LanguageClient.stop (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:20218:22)
at LanguageClient.doInitialize (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21572:27)
at async LanguageClient.start (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21427:13)
extensionHostProcess.js:162
rejected promise not handled within 1 second: Error: Client is not running and can't be stopped. It's current state is: startFailed
extensionHostProcess.js:162
stack trace: Error: Client is not running and can't be stopped. It's current state is: startFailed
at LanguageClient.shutdown (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21619:19)
at LanguageClient.stop (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21590:21)
at LanguageClient.stop (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:20218:22)
at LanguageClient.doInitialize (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21572:27)
at async LanguageClient.start (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21427:13)
extensionHostProcess.js:162
rejected promise not handled within 1 second: Error: Client is not running and can't be stopped. It's current state is: startFailed
extensionHostProcess.js:162
stack trace: Error: Client is not running and can't be stopped. It's current state is: startFailed
at LanguageClient.shutdown (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21619:19)
at LanguageClient.stop (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21590:21)
at LanguageClient.stop (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:20218:22)
at LanguageClient.doInitialize (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21572:27)
at async LanguageClient.start (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21427:13)
extensionHostProcess.js:162
rejected promise not handled within 1 second: Error: Client is not running and can't be stopped. It's current state is: startFailed
extensionHostProcess.js:162
stack trace: Error: Client is not running and can't be stopped. It's current state is: startFailed
at LanguageClient.shutdown (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21619:19)
at LanguageClient.stop (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21590:21)
at LanguageClient.stop (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:20218:22)
at LanguageClient.doInitialize (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21572:27)
at async LanguageClient.start (/Users/joshwinthomas/IBM_workspace/VS Code/Issue382SecurutyVulFix/liberty-tools-vscode/dist/extension.js:21427:13)
extensionHostProcess.js:162

seems like the startLangServer is failing

@TrevCraw
Copy link
Contributor

Thanks for investigating @JoshwinThomasIBM.

seems like the startLangServer is failing

If that is the case, check to see if the LS jars have been retrieved correctly and are placed in the jars folder. If not, there is a good chance that the gulp dependency update is causing the gulpfile build process to fail.

Please continue to investigate.

@gilbysunil14
Copy link

The project is not getting detected in the liberty dashboard since the liberty language server and jakarta language server is not getting started. Below are my observations regarding this:

  1. What the command npm run build does is that it downloads the language server jars from the repository using gulp.

Below is the screenshot of the language server jars that is being downloaded while we execute the npm run build command after making the gulp version 5.0.0
Screenshot 2024-11-25 at 8 10 32 PM

Below is the screenshot of the language server jars that is being downloaded while we execute the npm run build command after making the gulp version 4.0.2
Screenshot 2024-11-25 at 8 12 07 PM

See that there is difference in the language server jars that are being downloaded(check the file size).

When I tried to download these jars manually by copying and pasting the download url from which these jars are getting downloaded using a browser, then the jar size is same as when we use the gulp version 4.0.2.

  1. As per the documentation of gulp, there is a major change in the version 5.0.0 regarding defining tasks in gulp. In 4.0.2, the gulp tasks are defined using gulp.task. But in 5.0.0, the gulp tasks are defined using the exports. Hence, I have also tried changing the definition of tasks as below. But the issue is not getting resolved.
function downloadLibertyLSJars() {
  // Return a promise to signal async completion
  return Promise.all([
    download({
      url: libertyLemminxURL,
      file: libertyLemminxName,
    })
    .pipe(gulp.dest("./jars")),  // Pipe the download result to the 'jars' folder

    download({
      url: libertyLSURL,
      file: libertyLSName,
    })
    .pipe(gulp.dest("./jars"))  // Pipe the download result to the 'jars' folder
  ]);
}

exports.downloadLibertyLSJars = downloadLibertyLSJars;
function downloadLSP4JakartaJars() {
  // Return a Promise to signal async completion
  return Promise.all([
    download({
      url: jakartaJDTURL,
      file: jakartaJdtName,
    })
    .pipe(gulp.dest("./jars")),  // Pipe the download result to the 'jars' folder

    download({
      url: jakartaLSURL,
      file: jakartaLSName,
    })
    .pipe(gulp.dest("./jars"))  // Pipe the download result to the 'jars' folder
  ]);
}

exports.downloadLSP4JakartaJars = downloadLSP4JakartaJars;

@gilbysunil14
Copy link

Fixes #418

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test cases are failing while the dependency of gulp library is upgraded from 4.0.2 to 5.0.0.
3 participants