@lapis-notes/language-service 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @lapis-notes/language-service
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Load the Markdownlint worker through a standards-based emitted module-worker
8
+ URL so packed Vite consumers do not depend on source-only query transforms.
9
+
3
10
  ## 0.1.0
4
11
 
5
12
  ### Minor Changes
package/README.md CHANGED
@@ -3,7 +3,9 @@
3
3
  Provider-neutral Markdown language services for Lapis applications.
4
4
 
5
5
  The package exposes browser-worker and native-host adapters without owning
6
- workspace presentation, vault navigation, or application policy.
6
+ workspace presentation, vault navigation, or application policy. Its browser
7
+ provider loads the emitted worker through the standard module-worker URL form,
8
+ so installed package consumers do not require a Vite-specific worker import.
7
9
 
8
10
  ## Public surface
9
11
 
package/dist/markdown.js CHANGED
@@ -1,12 +1,12 @@
1
- /// <reference path="./vite-env.d.ts" />
2
1
  import { LanguageServiceWorkerClient } from "@lapis-notes/api/language-service/worker";
3
- import MarkdownLintWorker from "./workers/markdownlint.worker.js?worker&inline";
4
2
  const DESKTOP_LANGUAGE_SERVICE_PROTOCOL_VERSION = 1;
5
3
  function resolveMarkdownRules(options) {
6
4
  return options.getRules?.() ?? options.rules;
7
5
  }
8
6
  export function createMarkdownLanguageServiceProvider(options = {}) {
9
- const client = new LanguageServiceWorkerClient(new MarkdownLintWorker());
7
+ const client = new LanguageServiceWorkerClient(new Worker(new URL("./workers/markdownlint.worker.js", import.meta.url), {
8
+ type: "module",
9
+ }));
10
10
  return {
11
11
  metadata: {
12
12
  id: "markdownlint-worker",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lapis-notes/language-service",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Provider-neutral Markdown language services for Lapis applications",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "repository": {