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

Updated crossnote to 0.9.9 #1966

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'Install nodejs 18'
- name: 'Install nodejs 20'
uses: actions/setup-node@v2
with:
node-version: '18'
node-version: '20'
- name: Install dependencies
run: |
corepack enable
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Install nodejs 18'
- name: 'Install nodejs 20'
uses: actions/setup-node@v2
with:
node-version: '18'
node-version: '20'
- name: 'Build and test'
run: |
corepack enable
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.8.13] - 2024-03-18

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

### Bug fixes

- Fixed [a bug of link redirection in preview](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/1951) by @byte-clown
- Fixed [Long sidebarToc does not display completely](https://github.com/shd101wyy/crossnote/pull/354) by @moonlitusun
- Removed the `text` as the default language selector for code block.

### Chore

- Updated [flake.nix](./flake.nix) and node.js to 20.

## [0.8.12] - 2024-03-10

Updated [crossnote](https://github.com/shd101wyy/crossnote) to version [0.9.8](https://github.com/shd101wyy/crossnote/releases/tag/0.9.8).
Expand Down
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
if (result.errors.length) {
result.errors.forEach((error) =>
console.error(
`> ${error.location.file}:${error.location.line}:${error.location.column}: error: ${error.text}`,
`> ${error.location?.file}:${error.location?.line}:${error.location?.column}: error: ${error.text}`,
),
);
} else {
Expand Down Expand Up @@ -92,7 +92,7 @@
// window: "globalThis",
'window': JSON.stringify(defaultWindow),
// document: JSON.stringify(defaultDocument),
'process.env.IS_VSCODE_WEB_EXTENSION': '"true"',

Check warning on line 95 in build.js

View workflow job for this annotation

GitHub Actions / Test

Object Literal Property name `process.env.IS_VSCODE_WEB_EXTENSION` must match one of the following formats: camelCase
},
};

Expand All @@ -116,7 +116,7 @@
define: {
...(webConfig.define ?? {}),
...{
'process.env.IS_VSCODE_WEB_EXTENSION_DEV_MODE': '"true"',

Check warning on line 119 in build.js

View workflow job for this annotation

GitHub Actions / Test

Object Literal Property name `process.env.IS_VSCODE_WEB_EXTENSION_DEV_MODE` must match one of the following formats: camelCase
},
},
plugins: [esbuildProblemMatcherPlugin, ...(webConfig.plugins ?? [])],
Expand Down
14 changes: 7 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-23.05";
url = "github:NixOS/nixpkgs/nixos-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils = { url = "github:numtide/flake-utils"; };
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "markdown-preview-enhanced",
"displayName": "%displayName%",
"version": "0.8.12",
"version": "0.8.13",
"description": "%description%",
"categories": [
"Other"
Expand Down Expand Up @@ -679,7 +679,7 @@
"@types/crypto-js": "^4.1.2",
"@types/vfile": "^3.0.2",
"async-mutex": "^0.4.0",
"crossnote": "^0.9.8",
"crossnote": "^0.9.9",
"crypto-js": "^4.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [ nodejs_18 yarn ];
buildInputs = [ nodejs_20 yarn ];
shellHook = ''
# ...
'';
Expand Down
9 changes: 8 additions & 1 deletion src/extension-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,14 @@ export async function initExtensionCommon(context: vscode.ExtensionContext) {

if (fileExists) {
const previewMode = getPreviewMode();
const document = await vscode.workspace.openTextDocument(vscode.Uri.parse(openFilePath.split('#').slice(0, -1).join('#')||openFilePath));
const document = await vscode.workspace.openTextDocument(
vscode.Uri.parse(
openFilePath
.split('#')
.slice(0, -1)
.join('#') || openFilePath,
),
);
// Open custom editor
if (
previewMode === PreviewMode.PreviewsOnly &&
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1913,10 +1913,10 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
shebang-command "^2.0.0"
which "^2.0.1"

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