@base-framework/base 3.9.21 → 3.9.23

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.
@@ -38,6 +38,7 @@ export class Route extends BasicData {
38
38
  title: any;
39
39
  preventScroll: any;
40
40
  scrollTo: any;
41
+ importSrc: any;
41
42
  /**
42
43
  * This will setup the route settings.
43
44
  *
@@ -120,6 +121,21 @@ export class Route extends BasicData {
120
121
  * @returns {object|boolean}
121
122
  */
122
123
  match(path: string): object | boolean;
124
+ /**
125
+ * This will check if the route matches the path without changing
126
+ * the route params, so it is safe to call on an active route.
127
+ *
128
+ * @param {string} path
129
+ * @returns {boolean}
130
+ */
131
+ matches(path: string): boolean;
132
+ /**
133
+ * This will start loading the route's imported page so it opens
134
+ * without waiting when the user navigates to it.
135
+ *
136
+ * @returns {Promise<unknown>|null}
137
+ */
138
+ prefetch(): Promise<unknown> | null;
123
139
  /**
124
140
  * Checks query/hash route conditions.
125
141
  *
package/package.json CHANGED
@@ -1,89 +1,89 @@
1
- {
2
- "name": "@base-framework/base",
3
- "version": "3.9.21",
4
- "description": "This is a javascript framework.",
5
- "main": "./dist/base.js",
6
- "module": "./dist/base.js",
7
- "type": "module",
8
- "sideEffects": [
9
- "**/default-directives.js",
10
- "./dist/base.js",
11
- "./dist/modules/*.js",
12
- "./dist/chunks/*.js"
13
- ],
14
- "scripts": {
15
- "build": "node ./esbuild.js && tsc",
16
- "prepublishOnly": "node ./esbuild.js",
17
- "test": "vitest",
18
- "test:run": "vitest run",
19
- "size": "node ./scripts/size-report.js",
20
- "size:check": "node ./scripts/size-report.js --check",
21
- "bench": "node --expose-gc ./scripts/bench.js"
22
- },
23
- "keywords": [
24
- "JavaScript",
25
- "Framework",
26
- "Base",
27
- "ES6"
28
- ],
29
- "author": "Chris Durfee",
30
- "license": "ISC",
31
- "repository": {
32
- "type": "git",
33
- "url": "git+https://github.com/chrisdurfee/base.git"
34
- },
35
- "bugs": {
36
- "url": "https://github.com/chrisdurfee/base/issues"
37
- },
38
- "devDependencies": {
39
- "esbuild": "^0.25.0",
40
- "jsdom": "^29.1.1",
41
- "typescript": "^5.7.3",
42
- "vitest": "^4.1.11"
43
- },
44
- "types": "dist/types/base.d.ts",
45
- "files": [
46
- "package.json",
47
- "readme.md",
48
- "dist",
49
- "copilot.md",
50
- "!dist/**/*.map"
51
- ],
52
- "exports": {
53
- "./package.json": "./package.json",
54
- ".": {
55
- "types": "./dist/types/base.d.ts",
56
- "import": "./dist/base.js",
57
- "require": "./dist/base.js"
58
- },
59
- "./component": {
60
- "types": "./dist/types/entries/component.d.ts",
61
- "import": "./dist/modules/component.js"
62
- },
63
- "./data": {
64
- "types": "./dist/types/entries/data.d.ts",
65
- "import": "./dist/modules/data.js"
66
- },
67
- "./router": {
68
- "types": "./dist/types/entries/router.d.ts",
69
- "import": "./dist/modules/router.js"
70
- },
71
- "./state": {
72
- "types": "./dist/types/entries/state.d.ts",
73
- "import": "./dist/modules/state.js"
74
- },
75
- "./ajax": {
76
- "types": "./dist/types/entries/ajax.d.ts",
77
- "import": "./dist/modules/ajax.js"
78
- },
79
- "./html": {
80
- "types": "./dist/types/entries/html.d.ts",
81
- "import": "./dist/modules/html.js"
82
- },
83
- "./date": {
84
- "types": "./dist/types/entries/date.d.ts",
85
- "import": "./dist/modules/date.js"
86
- }
87
- },
88
- "homepage": "https://github.com/chrisdurfee/base#readme"
89
- }
1
+ {
2
+ "name": "@base-framework/base",
3
+ "version": "3.9.23",
4
+ "description": "This is a javascript framework.",
5
+ "main": "./dist/base.js",
6
+ "module": "./dist/base.js",
7
+ "type": "module",
8
+ "sideEffects": [
9
+ "**/default-directives.js",
10
+ "./dist/base.js",
11
+ "./dist/modules/*.js",
12
+ "./dist/chunks/*.js"
13
+ ],
14
+ "scripts": {
15
+ "build": "node ./esbuild.js && tsc",
16
+ "prepublishOnly": "node ./esbuild.js",
17
+ "test": "vitest",
18
+ "test:run": "vitest run",
19
+ "size": "node ./scripts/size-report.js",
20
+ "size:check": "node ./scripts/size-report.js --check",
21
+ "bench": "node --expose-gc ./scripts/bench.js"
22
+ },
23
+ "keywords": [
24
+ "JavaScript",
25
+ "Framework",
26
+ "Base",
27
+ "ES6"
28
+ ],
29
+ "author": "Chris Durfee",
30
+ "license": "ISC",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/chrisdurfee/base.git"
34
+ },
35
+ "bugs": {
36
+ "url": "https://github.com/chrisdurfee/base/issues"
37
+ },
38
+ "devDependencies": {
39
+ "esbuild": "^0.25.0",
40
+ "jsdom": "^29.1.1",
41
+ "typescript": "^5.7.3",
42
+ "vitest": "^4.1.11"
43
+ },
44
+ "types": "dist/types/base.d.ts",
45
+ "files": [
46
+ "package.json",
47
+ "readme.md",
48
+ "dist",
49
+ "copilot.md",
50
+ "!dist/**/*.map"
51
+ ],
52
+ "exports": {
53
+ "./package.json": "./package.json",
54
+ ".": {
55
+ "types": "./dist/types/base.d.ts",
56
+ "import": "./dist/base.js",
57
+ "require": "./dist/base.js"
58
+ },
59
+ "./component": {
60
+ "types": "./dist/types/entries/component.d.ts",
61
+ "import": "./dist/modules/component.js"
62
+ },
63
+ "./data": {
64
+ "types": "./dist/types/entries/data.d.ts",
65
+ "import": "./dist/modules/data.js"
66
+ },
67
+ "./router": {
68
+ "types": "./dist/types/entries/router.d.ts",
69
+ "import": "./dist/modules/router.js"
70
+ },
71
+ "./state": {
72
+ "types": "./dist/types/entries/state.d.ts",
73
+ "import": "./dist/modules/state.js"
74
+ },
75
+ "./ajax": {
76
+ "types": "./dist/types/entries/ajax.d.ts",
77
+ "import": "./dist/modules/ajax.js"
78
+ },
79
+ "./html": {
80
+ "types": "./dist/types/entries/html.d.ts",
81
+ "import": "./dist/modules/html.js"
82
+ },
83
+ "./date": {
84
+ "types": "./dist/types/entries/date.d.ts",
85
+ "import": "./dist/modules/date.js"
86
+ }
87
+ },
88
+ "homepage": "https://github.com/chrisdurfee/base#readme"
89
+ }