chore(release): prepare v1.3.5

This commit is contained in:
Yuri Karamian
2026-08-17 16:50:14 +02:00
parent b253ec4121
commit ade146f9f3
35 changed files with 3973 additions and 3174 deletions
+28
View File
@@ -0,0 +1,28 @@
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import test from 'node:test';
import { transformWithEsbuild } from 'vite';
const source = await readFile(
new URL('../src/lib/utils/note-drag.ts', import.meta.url),
'utf8'
);
const { code } = await transformWithEsbuild(source, 'note-drag.ts', {
loader: 'ts',
format: 'esm',
target: 'esnext'
});
const noteDrag = await import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`);
test('round-trips every selected note path in a drag payload', () => {
const paths = ['/vault/Alpha.md', '/vault/Projects/Beta.md'];
assert.deepEqual(noteDrag.decodeNoteDragPaths(noteDrag.encodeNoteDragPaths(paths)), paths);
});
test('keeps single-note and Windows path payloads compatible', () => {
assert.deepEqual(noteDrag.decodeNoteDragPaths('/vault/Alpha.md'), ['/vault/Alpha.md']);
assert.deepEqual(
noteDrag.decodeNoteDragPaths('C:\\Vault\\Alpha.md\r\nC:\\Vault\\Beta.md'),
['C:\\Vault\\Alpha.md', 'C:\\Vault\\Beta.md']
);
});