@rindo/core 2.22.2 → 3.0.0-alpha.0

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.
Files changed (39) hide show
  1. package/bin/rindo +3 -3
  2. package/cli/index.cjs +3 -5
  3. package/cli/index.d.ts +3 -3
  4. package/cli/index.js +3 -5
  5. package/cli/package.json +1 -1
  6. package/compiler/package.json +1 -1
  7. package/compiler/rindo.js +190 -308
  8. package/compiler/rindo.min.js +2 -2
  9. package/dependencies.json +1 -1
  10. package/dev-server/client/index.js +1 -1
  11. package/dev-server/client/package.json +1 -1
  12. package/dev-server/connector.html +2 -2
  13. package/dev-server/index.js +1 -1
  14. package/dev-server/package.json +1 -1
  15. package/dev-server/server-process.js +2 -2
  16. package/internal/app-data/package.json +1 -1
  17. package/internal/client/css-shim.js +1 -1
  18. package/internal/client/dom.js +1 -1
  19. package/internal/client/index.js +1 -1
  20. package/internal/client/package.json +1 -1
  21. package/internal/client/patch-browser.js +1 -1
  22. package/internal/client/patch-esm.js +1 -1
  23. package/internal/client/shadow-css.js +1 -1
  24. package/internal/hydrate/package.json +1 -1
  25. package/internal/package.json +1 -1
  26. package/internal/rindo-public-compiler.d.ts +31 -17
  27. package/internal/rindo-public-runtime.d.ts +12 -12
  28. package/internal/testing/package.json +1 -1
  29. package/mock-doc/index.cjs +1 -1
  30. package/mock-doc/index.js +1 -1
  31. package/mock-doc/package.json +1 -1
  32. package/package.json +4 -4
  33. package/screenshot/package.json +1 -1
  34. package/sys/node/index.js +7 -7
  35. package/sys/node/package.json +1 -1
  36. package/sys/node/worker.js +1 -1
  37. package/testing/index.js +4 -4
  38. package/testing/package.json +1 -1
  39. package/testing/puppeteer/puppeteer-declarations.d.ts +1 -27
@@ -892,8 +892,8 @@ export declare namespace JSXBase {
892
892
  accept?: string;
893
893
  allowdirs?: boolean;
894
894
  alt?: string;
895
- autoCapitalize?: any;
896
- autocapitalize?: any;
895
+ autoCapitalize?: string;
896
+ autocapitalize?: string;
897
897
  autoComplete?: string;
898
898
  autocomplete?: string;
899
899
  autoFocus?: boolean;
@@ -1217,8 +1217,8 @@ export declare namespace JSXBase {
1217
1217
  resource?: string;
1218
1218
  typeof?: string;
1219
1219
  vocab?: string;
1220
- autoCapitalize?: any;
1221
- autocapitalize?: any;
1220
+ autoCapitalize?: string;
1221
+ autocapitalize?: string;
1222
1222
  autoCorrect?: string;
1223
1223
  autocorrect?: string;
1224
1224
  autoSave?: string;
@@ -1509,12 +1509,12 @@ export declare namespace JSXBase {
1509
1509
  onCutCapture?: (event: ClipboardEvent) => void;
1510
1510
  onPaste?: (event: ClipboardEvent) => void;
1511
1511
  onPasteCapture?: (event: ClipboardEvent) => void;
1512
- onCompositionEnd?: (event: CompositionEvent) => void;
1513
- onCompositionEndCapture?: (event: CompositionEvent) => void;
1514
- onCompositionStart?: (event: CompositionEvent) => void;
1515
- onCompositionStartCapture?: (event: CompositionEvent) => void;
1516
- onCompositionUpdate?: (event: CompositionEvent) => void;
1517
- onCompositionUpdateCapture?: (event: CompositionEvent) => void;
1512
+ onCompositionend?: (event: CompositionEvent) => void;
1513
+ onCompositionendCapture?: (event: CompositionEvent) => void;
1514
+ onCompositionstart?: (event: CompositionEvent) => void;
1515
+ onCompositionstartCapture?: (event: CompositionEvent) => void;
1516
+ onCompositionupdate?: (event: CompositionEvent) => void;
1517
+ onCompositionupdateCapture?: (event: CompositionEvent) => void;
1518
1518
  onFocus?: (event: FocusEvent) => void;
1519
1519
  onFocusCapture?: (event: FocusEvent) => void;
1520
1520
  onFocusin?: (event: FocusEvent) => void;
@@ -1525,8 +1525,8 @@ export declare namespace JSXBase {
1525
1525
  onBlurCapture?: (event: FocusEvent) => void;
1526
1526
  onChange?: (event: Event) => void;
1527
1527
  onChangeCapture?: (event: Event) => void;
1528
- onInput?: (event: Event) => void;
1529
- onInputCapture?: (event: Event) => void;
1528
+ onInput?: (event: InputEvent) => void;
1529
+ onInputCapture?: (event: InputEvent) => void;
1530
1530
  onReset?: (event: Event) => void;
1531
1531
  onResetCapture?: (event: Event) => void;
1532
1532
  onSubmit?: (event: Event) => void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/internal/testing",
3
- "version": "2.22.2",
3
+ "version": "3.0.0-alpha.0",
4
4
  "description": "Rindo internal testing platform to be imported by the Rindo Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "private": true
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Mock Doc (CommonJS) v2.22.2 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Mock Doc (CommonJS) v3.0.0-alpha.0 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  var mockDoc = (function(exports) {
5
5
  'use strict';
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Mock Doc v2.22.2 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Mock Doc v3.0.0-alpha.0 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  const CONTENT_REF_ID = 'r';
5
5
  const ORG_LOCATION_ID = 'o';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/mock-doc",
3
- "version": "2.22.2",
3
+ "version": "3.0.0-alpha.0",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core",
3
- "version": "2.22.2",
3
+ "version": "3.0.0-alpha.0",
4
4
  "license": "MIT",
5
5
  "main": "./internal/rindo-core/index.cjs",
6
6
  "module": "./internal/rindo-core/index.js",
@@ -29,9 +29,9 @@
29
29
  "clean": "rm -rf build/ cli/ compiler/ dev-server/ internal/ mock-doc/ sys/ testing/ && npm run clean-scripts",
30
30
  "clean-scripts": "rm -rf scripts/build",
31
31
  "license": "node scripts/build --license",
32
- "lint": "eslint 'bin/*' 'scripts/*.ts' 'scripts/**/*.ts' 'src/*.ts' 'src/**/*.ts' 'src/**/*.tsx'",
32
+ "lint": "eslint \"bin/*\" \"scripts/*.ts\" \"scripts/**/*.ts\" \"src/*.ts\" \"src/**/*.ts\"",
33
33
  "prettier": "npm run prettier.base -- --write",
34
- "prettier.base": "prettier --cache \"./({bin,scripts,src,test}/**/*.{ts,tsx,js,jsx})|bin/rindo|.github/(**/)?*.(yml|yaml)|*.js\"",
34
+ "prettier.base": "prettier --cache \"./({bin,scripts,src}/**/*.{ts,tsx,js,jsx})|bin/rindo|.github/(**/)?*.(yml|yaml)|*.js\"",
35
35
  "prettier.dry-run": "npm run prettier.base -- --list-different",
36
36
  "release": "npm run tsc.scripts && node scripts/build --release --publish",
37
37
  "release.prepare": "npm run tsc.scripts && node scripts/build --release --prepare",
@@ -116,7 +116,7 @@
116
116
  "ws": "8.12.0"
117
117
  },
118
118
  "engines": {
119
- "node": ">=12.10.0",
119
+ "node": ">=14.10.0",
120
120
  "npm": ">=6.0.0"
121
121
  },
122
122
  "repository": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/screenshot",
3
- "version": "2.22.2",
3
+ "version": "3.0.0-alpha.0",
4
4
  "description": "Rindo Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Node System v2.22.2 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Node System v3.0.0-alpha.0 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _interopDefaultLegacy(e) {
5
5
  return e && "object" == typeof e && "default" in e ? e : {
@@ -5673,10 +5673,10 @@ exports.createNodeLogger = e => {
5673
5673
  } catch (e) {}
5674
5674
  return t;
5675
5675
  },
5676
- addDestory(e) {
5676
+ addDestroy(e) {
5677
5677
  n.add(e);
5678
5678
  },
5679
- removeDestory(e) {
5679
+ removeDestroy(e) {
5680
5680
  n.delete(e);
5681
5681
  },
5682
5682
  applyPrerenderGlobalPatch(e) {
@@ -5979,9 +5979,9 @@ exports.createNodeLogger = e => {
5979
5979
  }), n), o = () => {
5980
5980
  i.close();
5981
5981
  };
5982
- return f.addDestory(o), {
5982
+ return f.addDestroy(o), {
5983
5983
  close() {
5984
- f.removeDestory(o), i.close();
5984
+ f.removeDestroy(o), i.close();
5985
5985
  }
5986
5986
  };
5987
5987
  }, f.watchFile = (e, r) => {
@@ -5992,9 +5992,9 @@ exports.createNodeLogger = e => {
5992
5992
  })), o = () => {
5993
5993
  i.close();
5994
5994
  };
5995
- return f.addDestory(o), {
5995
+ return f.addDestroy(o), {
5996
5996
  close() {
5997
- f.removeDestory(o), i.close();
5997
+ f.removeDestroy(o), i.close();
5998
5998
  }
5999
5999
  };
6000
6000
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/sys/node",
3
- "version": "2.22.2",
3
+ "version": "3.0.0-alpha.0",
4
4
  "description": "Rindo Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Node System Worker v2.22.2 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Node System Worker v3.0.0-alpha.0 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _interopNamespace(e) {
5
5
  if (e && e.__esModule) return e;
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Testing v2.22.2 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Testing v3.0.0-alpha.0 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -2961,11 +2961,11 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
2961
2961
  d("/");
2962
2962
  const S = {
2963
2963
  name: "in-memory",
2964
- version: "2.22.2",
2964
+ version: "3.0.0-alpha.0",
2965
2965
  events: a,
2966
2966
  access: async e => u(e),
2967
2967
  accessSync: u,
2968
- addDestory: o,
2968
+ addDestroy: o,
2969
2969
  copyFile: async (e, t) => (E(t, f(e)), !0),
2970
2970
  createDir: async (e, t) => d(e, t),
2971
2971
  createDirSync: d,
@@ -3009,7 +3009,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
3009
3009
  readFileSync: f,
3010
3010
  realpath: async e => m(e),
3011
3011
  realpathSync: m,
3012
- removeDestory: i,
3012
+ removeDestroy: i,
3013
3013
  rename: async (e, t) => {
3014
3014
  const r = {
3015
3015
  oldPath: e = normalizePath(e),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/testing",
3
- "version": "2.22.2",
3
+ "version": "3.0.0-alpha.0",
4
4
  "description": "Rindo testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,32 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import type { EventInitDict, EventSpy, ScreenshotDiff, ScreenshotOptions } from '@rindo/core/internal';
3
- import type { ClickOptions, HTTPResponse as PuppeteerHTTPResponse, Page, ScreenshotOptions as PuppeteerScreenshotOptions, WaitForOptions } from 'puppeteer';
4
- /**
5
- * This type helps with declaration merging as a part of Rindo's migration from Puppeteer v5.4.3 to v10.0.0. In
6
- * v5.4.3, `HttpResponse` was an interface whereas v10.0.0 declares it as a class. It is redeclared here to help teams
7
- * migrate to a newer minor version of Rindo without requiring a Puppeteer upgrade/major version of Rindo. This type
8
- * should be removed as a part of the Rindo 3.0 release.
9
- */
10
- export type HTTPResponse = PuppeteerHTTPResponse;
11
- /**
12
- * These types help with declaration merging as a part of Rindo's migration from Puppeteer v5.4.3 to v10.0.0. In
13
- * v10.0.0, `WaitForOptions` is a renamed version of `NavigationOptions` from v5.4.3, who has had its type hierarchy
14
- * flattened.
15
- *
16
- * See {@link https://github.com/DefinitelyTyped/DefinitelyTyped/blob/8290e943f6b398acf39ee1b2e486824144e15bc8/types/puppeteer/index.d.ts#L605-L622}
17
- * for the v5.4.3 types.
18
- *
19
- * These types are redeclared here to help teams migrate to a newer minor version of Rindo without requiring a
20
- * Puppeteer upgrade/major version of Rindo. These type additions should be removed as a part of the Rindo 3.0
21
- * release.
22
- */
23
- declare module 'puppeteer' {
24
- type LifeCycleEvent = 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2';
25
- interface WaitForOptions {
26
- timeout?: number;
27
- waitUntil?: LifeCycleEvent | LifeCycleEvent[];
28
- }
29
- }
3
+ import type { ClickOptions, HTTPResponse, Page, ScreenshotOptions as PuppeteerScreenshotOptions, WaitForOptions } from 'puppeteer';
30
4
  /**
31
5
  * This type was once exported by Puppeteer, but has since moved to an object literal in (Puppeteer’s) native types.
32
6
  * Re-create it here as a named type to use across multiple Rindo-related testing files.