Skip to content

Commit

Permalink
chore(deps-dev): bump the npm-dependencies group across 2 directories…
Browse files Browse the repository at this point in the history
… with 7 updates (#647)

Bumps the npm-dependencies group with 7 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2) | `0.16.0` | `0.17.1` |
| @tui-sandbox/library | `7.4.0` | `7.5.5` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.10.2` | `22.10.5` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.18.1` | `8.19.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.18.1` | `8.19.0` |
| [concurrently](https://github.com/open-cli-tools/concurrently) | `9.1.0` | `9.1.2` |
| [type-fest](https://github.com/sindresorhus/type-fest) | `4.30.2` | `4.31.0` |

Bumps the npm-dependencies group with 6 updates in the /integration-tests directory:

| Package | From | To |
| --- | --- | --- |
| @tui-sandbox/library | `7.4.0` | `7.5.5` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.10.2` | `22.10.5` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.18.1` | `8.19.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.18.1` | `8.19.0` |
| [concurrently](https://github.com/open-cli-tools/concurrently) | `9.1.0` | `9.1.2` |
| [type-fest](https://github.com/sindresorhus/type-fest) | `4.30.2` | `4.31.0` |



Updates `markdownlint-cli2` from 0.16.0 to 0.17.1
- [Changelog](https://github.com/DavidAnson/markdownlint-cli2/blob/main/CHANGELOG.md)
- [Commits](DavidAnson/markdownlint-cli2@v0.16.0...v0.17.1)

Updates `@tui-sandbox/library` from 7.4.0 to 7.5.5

Updates `@types/node` from 22.10.2 to 22.10.5
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@typescript-eslint/eslint-plugin` from 8.18.1 to 8.19.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.19.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.18.1 to 8.19.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.19.0/packages/parser)

Updates `concurrently` from 9.1.0 to 9.1.2
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](open-cli-tools/concurrently@v9.1.0...v9.1.2)

Updates `type-fest` from 4.30.2 to 4.31.0
- [Release notes](https://github.com/sindresorhus/type-fest/releases)
- [Commits](sindresorhus/type-fest@v4.30.2...v4.31.0)

Updates `@tui-sandbox/library` from 7.4.0 to 7.5.5

Updates `@types/node` from 22.10.2 to 22.10.5
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@typescript-eslint/eslint-plugin` from 8.18.1 to 8.19.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.19.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.18.1 to 8.19.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.19.0/packages/parser)

Updates `concurrently` from 9.1.0 to 9.1.2
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](open-cli-tools/concurrently@v9.1.0...v9.1.2)

Updates `type-fest` from 4.30.2 to 4.31.0
- [Release notes](https://github.com/sindresorhus/type-fest/releases)
- [Commits](sindresorhus/type-fest@v4.30.2...v4.31.0)

---
updated-dependencies:
- dependency-name: markdownlint-cli2
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@tui-sandbox/library"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: concurrently
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: type-fest
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@tui-sandbox/library"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: concurrently
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: type-fest
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jan 6, 2025
1 parent d2af8f5 commit 22427f5
Show file tree
Hide file tree
Showing 6 changed files with 467 additions and 311 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@ describe("'rename' events", () => {
cy.contains(dir.contents["initial-file.txt"].name)
cy.contains("If you see this text, Neovim is ready!")

// start yazi
// start yazi and wait for it to be ready
cy.typeIntoTerminal("{upArrow}")
cy.contains("config-modifications" satisfies MyTestDirectoryFile)

// start file renaming
cy.typeIntoTerminal("r")
Expand All @@ -233,8 +234,12 @@ describe("'rename' events", () => {
// yazi should now be closed
cy.contains("-- TERMINAL --").should("not.exist")

cy.typeIntoTerminal(":mes{enter}")
cy.contains("Just received a YaziRenamedOrMoved event!")
cy.runLuaCode({ luaCode: `return _G.yazi_test_events` }).should(
(result) => {
const events = result.value as unknown[]
expect(events).to.have.length(1)
},
)
})
})

Expand All @@ -248,8 +253,9 @@ describe("'rename' events", () => {
cy.contains(dir.contents["initial-file.txt"].name)
cy.contains("If you see this text, Neovim is ready!")

// start yazi
// start yazi and wait for it to be ready
cy.typeIntoTerminal("{upArrow}")
cy.contains("config-modifications" satisfies MyTestDirectoryFile)

// move to another directory
cy.typeIntoTerminal(
Expand All @@ -264,9 +270,17 @@ describe("'rename' events", () => {
// yazi should now be closed
cy.contains("-- TERMINAL --").should("not.exist")

cy.contains("yazi_closed_successfully hook")
cy.contains("last_directory = ")
cy.contains("dir with spaces")
cy.runLuaCode({
luaCode: `return _G.yazi_closed_successfully_hook_test_results`,
}).should((result) => {
debugger
assert(result.value)
assert(typeof result.value === "object")
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
const data = result.value as any
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
expect(data["last_directory"]).to.match(/dir with spaces$/)
})
})
})

Expand All @@ -290,15 +304,15 @@ describe("'rename' events", () => {

cy.typeIntoTerminal("q")
cy.contains(dir.contents["file2.txt"].name).should("not.exist")
cy.typeIntoTerminal(":messages{enter}", { delay: 0 })

// should see a message for the event kind MyMessageNoData that has no data
// this checks that events without data are supported
cy.contains("Just received a YaziDDSCustom event 'MyMessageNoData'!")

// should see the data for MyMessageWithData
cy.contains("Just received a YaziDDSCustom event 'MyMessageWithData'!")
cy.contains("somedata")
cy.runExCommand({ command: "messages" }).should((result) => {
expect(result.value).to.match(
/Just received a YaziDDSCustom event 'MyMessageNoData'!/,
)
expect(result.value).to.match(
/Just received a YaziDDSCustom event 'MyMessageWithData'!/,
)
expect(result.value).to.match(/somedata/)
})
})
})
})
Expand Down
12 changes: 6 additions & 6 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
"zod": "3.24.1"
},
"devDependencies": {
"@tui-sandbox/library": "7.4.0",
"@types/node": "22.10.2",
"@tui-sandbox/library": "7.5.5",
"@types/node": "22.10.5",
"@types/tinycolor2": "1.4.6",
"@typescript-eslint/eslint-plugin": "8.18.1",
"@typescript-eslint/parser": "8.18.1",
"concurrently": "9.1.0",
"@typescript-eslint/eslint-plugin": "8.19.0",
"@typescript-eslint/parser": "8.19.0",
"concurrently": "9.1.2",
"eslint": "9.17.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-no-only-tests": "3.3.0",
"prettier-plugin-organize-imports": "4.1.0",
"tinycolor2": "1.6.0",
"type-fest": "4.30.2",
"type-fest": "4.31.0",
"typescript": "5.7.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ require("yazi").setup(
---@diagnostic disable-next-line: missing-fields
hooks = {
yazi_closed_successfully = function(chosen_file, _, state)
-- selene: allow(mixed_table)
vim.notify(vim.inspect({
"yazi_closed_successfully hook",
-- selene: allow(global_usage)
_G.yazi_closed_successfully_hook_test_results = {
chosen_file = chosen_file,
last_directory = state.last_directory
and state.last_directory:normalize(vim.uv.cwd()),
}))
}
end,
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ vim.api.nvim_create_autocmd("User", {
pattern = "YaziRenamedOrMoved",
---@param event {data: YaziNeovimEvent.YaziRenamedOrMovedData}
callback = function(event)
-- printing the messages will allow seeing them with `:messages`
print(
vim.inspect({ "Just received a YaziRenamedOrMoved event!", event.data })
)
-- selene: allow(global_usage)
_G.yazi_test_events = _G.yazi_test_events or {}
-- selene: allow(global_usage)
table.insert(_G.yazi_test_events, event)
end,
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@umbrelladocs/linkspector": "0.3.13",
"markdownlint-cli2": "0.16.0",
"markdownlint-cli2": "0.17.1",
"prettier": "3.4.2",
"prettier-plugin-packagejson": "2.5.6"
},
Expand Down
Loading

0 comments on commit 22427f5

Please sign in to comment.