@markless/core 0.2.0 → 0.2.2

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/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ declare function computed<T>(derive: () => T): AsyncComputedValue<T>;
41
41
  declare function element<T extends Element = Element>(): ElementHandle<T>;
42
42
  type SharedDefinition<T> = () => T;
43
43
  declare function shared<T>(create: () => T, options?: SharedOptions): SharedDefinition<T>;
44
+ declare function storage(fallback: string): string;
44
45
  declare function storage(key: string, fallback: string): string;
45
46
  //#endregion
46
47
  export { type AsyncComputedValue, type CsrRenderArtifact, type CsrRenderContainer, type CsrRenderOptions, type CsrRenderOutput, type CsrRenderable, type ElementHandle, type FrameworkApiName, type FrameworkApiRuntimeDiagnostic, FrameworkApiRuntimeError, type RenderTarget, type RenderToStringOptions, type ResumePayloadDocumentInput, type ResumePayloadScriptsInput, type ResumePayloadScriptsResult, type SharedDefinition, type SharedOptions, type SharedScope, type SsrRenderArtifact, type SsrRenderOutput, type SsrRenderable, computed, element, render, renderToString, resumeFromPayloadDocument, resumeFromPayloadScripts, shared, state, storage };
package/dist/index.js CHANGED
@@ -31,8 +31,8 @@ function element() {
31
31
  function shared(create, options) {
32
32
  return frameworkApi("shared", create, options);
33
33
  }
34
- function storage(key, fallback) {
35
- return frameworkApi("storage", key, fallback);
34
+ function storage(...args) {
35
+ return frameworkApi("storage", ...args);
36
36
  }
37
37
  function frameworkApi(name, ..._args) {
38
38
  throw new FrameworkApiRuntimeError(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markless/core",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Markless core authoring APIs: resumable TSRX apps with no hydration and no VDOM.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -109,9 +109,9 @@
109
109
  "provenance": true
110
110
  },
111
111
  "dependencies": {
112
- "@markless/router": "0.2.0",
113
- "@markless/bundler": "0.2.0",
114
- "@markless/web": "0.2.0"
112
+ "@markless/bundler": "0.2.2",
113
+ "@markless/web": "0.2.2",
114
+ "@markless/router": "0.2.2"
115
115
  },
116
116
  "scripts": {}
117
117
  }