Skip to content

Commit 5dd201e

Browse files
authored
feat: Updated crossnote to 0.9.9 (#1966)
1 parent b11a55a commit 5dd201e

File tree

10 files changed

+42
-21
lines changed

10 files changed

+42
-21
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v3
13-
- name: 'Install nodejs 18'
13+
- name: 'Install nodejs 20'
1414
uses: actions/setup-node@v2
1515
with:
16-
node-version: '18'
16+
node-version: '20'
1717
- name: Install dependencies
1818
run: |
1919
corepack enable

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
uses: actions/checkout@v3
1919
with:
2020
fetch-depth: 0
21-
- name: 'Install nodejs 18'
21+
- name: 'Install nodejs 20'
2222
uses: actions/setup-node@v2
2323
with:
24-
node-version: '18'
24+
node-version: '20'
2525
- name: 'Build and test'
2626
run: |
2727
corepack enable

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.8.13] - 2024-03-18
11+
12+
Updated [crossnote](https://github.com/shd101wyy/crossnote) to version [0.9.8](https://github.com/shd101wyy/crossnote/releases/tag/0.9.9).
13+
14+
### Bug fixes
15+
16+
- Fixed [a bug of link redirection in preview](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/1951) by @byte-clown
17+
- Fixed [Long sidebarToc does not display completely](https://github.com/shd101wyy/crossnote/pull/354) by @moonlitusun
18+
- Removed the `text` as the default language selector for code block.
19+
20+
### Chore
21+
22+
- Updated [flake.nix](./flake.nix) and node.js to 20.
23+
1024
## [0.8.12] - 2024-03-10
1125

1226
Updated [crossnote](https://github.com/shd101wyy/crossnote) to version [0.9.8](https://github.com/shd101wyy/crossnote/releases/tag/0.9.8).

build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const esbuildProblemMatcherPlugin = {
2020
if (result.errors.length) {
2121
result.errors.forEach((error) =>
2222
console.error(
23-
`> ${error.location.file}:${error.location.line}:${error.location.column}: error: ${error.text}`,
23+
`> ${error.location?.file}:${error.location?.line}:${error.location?.column}: error: ${error.text}`,
2424
),
2525
);
2626
} else {

flake.lock

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
inputs = {
55
nixpkgs = {
6-
url = "github:NixOS/nixpkgs/nixos-23.05";
6+
url = "github:NixOS/nixpkgs/nixos-23.11";
77
inputs.nixpkgs.follows = "nixpkgs";
88
};
99
flake-utils = { url = "github:numtide/flake-utils"; };

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "markdown-preview-enhanced",
33
"displayName": "%displayName%",
4-
"version": "0.8.12",
4+
"version": "0.8.13",
55
"description": "%description%",
66
"categories": [
77
"Other"
@@ -679,7 +679,7 @@
679679
"@types/crypto-js": "^4.1.2",
680680
"@types/vfile": "^3.0.2",
681681
"async-mutex": "^0.4.0",
682-
"crossnote": "^0.9.8",
682+
"crossnote": "^0.9.9",
683683
"crypto-js": "^4.2.0"
684684
},
685685
"devDependencies": {

shell.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ pkgs ? import <nixpkgs> { } }:
22
with pkgs;
33
mkShell {
4-
buildInputs = [ nodejs_18 yarn ];
4+
buildInputs = [ nodejs_20 yarn ];
55
shellHook = ''
66
# ...
77
'';

src/extension-common.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,14 @@ export async function initExtensionCommon(context: vscode.ExtensionContext) {
557557

558558
if (fileExists) {
559559
const previewMode = getPreviewMode();
560-
const document = await vscode.workspace.openTextDocument(vscode.Uri.parse(openFilePath.split('#').slice(0, -1).join('#')||openFilePath));
560+
const document = await vscode.workspace.openTextDocument(
561+
vscode.Uri.parse(
562+
openFilePath
563+
.split('#')
564+
.slice(0, -1)
565+
.join('#') || openFilePath,
566+
),
567+
);
561568
// Open custom editor
562569
if (
563570
previewMode === PreviewMode.PreviewsOnly &&

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1913,10 +1913,10 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
19131913
shebang-command "^2.0.0"
19141914
which "^2.0.1"
19151915

1916-
crossnote@^0.9.8:
1917-
version "0.9.8"
1918-
resolved "https://registry.yarnpkg.com/crossnote/-/crossnote-0.9.8.tgz#431c88b2eb6d02d9f031370dc55ec8e517738e4b"
1919-
integrity sha512-oIbryBodITwFn1SksIDkuXWW2KkqSBaVyx/44qVPGJ4ziI//UvyDY4Hq9RzCF0crDv+kAafOkz4jP/GXULg0NQ==
1916+
crossnote@^0.9.9:
1917+
version "0.9.9"
1918+
resolved "https://registry.yarnpkg.com/crossnote/-/crossnote-0.9.9.tgz#a0a964f90311e9fb7902ba995901d5458ccf87e3"
1919+
integrity sha512-KaJt53tA89NUck20cu+xY8qjbqckvSAf77QEx4VaUFH9QDjAM6PCv/YWGLsW0iKAaY1akC80GqJ+tsX2dFA3Tg==
19201920
dependencies:
19211921
"@headlessui/react" "^1.7.17"
19221922
"@heroicons/react" "^2.0.18"

0 commit comments

Comments
 (0)