@madronejs/core 1.0.16 → 1.0.17
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/README.md +1 -89
- package/dist/core.js +528 -0
- package/package.json +39 -36
- package/types/decorate.d.ts +1 -1
- package/types/global.d.ts +1 -1
- package/types/integrations/index.d.ts +0 -1
- package/types/reactivity/Observer.d.ts +0 -1
- package/types/util.d.ts +1 -1
- package/dist/core.mjs +0 -617
- package/dist/core.umd.js +0 -1
- package/types/integrations/MadroneVue2.d.ts +0 -3
- package/types/integrations/__spec__/vue2.spec.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@madronejs/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "Object composition and reactivity framework.",
|
|
5
5
|
"private": false,
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
6
8
|
"main": "./dist/core.umd.js",
|
|
7
9
|
"module": "./dist/core.mjs",
|
|
8
10
|
"types": "./types/index.d.ts",
|
|
9
11
|
"exports": {
|
|
10
12
|
".": {
|
|
13
|
+
"types": "./types/index.d.ts",
|
|
11
14
|
"import": "./dist/core.mjs",
|
|
12
|
-
"require": "./dist/core.umd.js"
|
|
13
|
-
"types": "./types"
|
|
15
|
+
"require": "./dist/core.umd.js"
|
|
14
16
|
}
|
|
15
17
|
},
|
|
16
|
-
"license": "MIT",
|
|
17
18
|
"files": [
|
|
18
19
|
"dist/*.js",
|
|
19
20
|
"dist/*.mjs",
|
|
@@ -29,6 +30,17 @@
|
|
|
29
30
|
"publishConfig": {
|
|
30
31
|
"registry": "https://registry.npmjs.org/"
|
|
31
32
|
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"lint": "eslint src/",
|
|
35
|
+
"test": "vitest",
|
|
36
|
+
"test-ci": "CI=true NODE_ENV=test vitest run --coverage",
|
|
37
|
+
"docs": "typedoc --entryPoints src/index.ts",
|
|
38
|
+
"cleanup": "rm -rf ./dist/* && rm -rf ./types/*",
|
|
39
|
+
"cov": "CI=true NODE_ENV=test vitest run --coverage && open coverage/lcov-report/index.html",
|
|
40
|
+
"build": "vite build",
|
|
41
|
+
"build-types": "tsc -p ./tsconfig.types.json && tsc-alias -p tsconfig.types.json",
|
|
42
|
+
"build-all": "pnpm cleanup && pnpm build && pnpm build-types"
|
|
43
|
+
},
|
|
32
44
|
"keywords": [
|
|
33
45
|
"reactivity",
|
|
34
46
|
"composition",
|
|
@@ -37,38 +49,29 @@
|
|
|
37
49
|
"vue"
|
|
38
50
|
],
|
|
39
51
|
"devDependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"eslint
|
|
47
|
-
"eslint-plugin-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
52
|
+
"@eslint/compat": "~1.4.0",
|
|
53
|
+
"@eslint/eslintrc": "~3.3.1",
|
|
54
|
+
"@eslint/js": "~9.37.0",
|
|
55
|
+
"@stylistic/eslint-plugin": "~5.4.0",
|
|
56
|
+
"@types/lodash": "~4.17.20",
|
|
57
|
+
"@vitest/coverage-v8": "~3.2.4",
|
|
58
|
+
"eslint": "~9.37.0",
|
|
59
|
+
"eslint-plugin-import": "~2.32.0",
|
|
60
|
+
"eslint-plugin-unicorn": "~61.0.2",
|
|
61
|
+
"globals": "~16.4.0",
|
|
62
|
+
"happy-dom": "~20.0.0",
|
|
63
|
+
"lodash": "~4.17.21",
|
|
64
|
+
"tsc-alias": "~1.8.16",
|
|
65
|
+
"typedoc": "~0.28.14",
|
|
66
|
+
"typescript": "~5.9.3",
|
|
67
|
+
"typescript-eslint": "8.46.1",
|
|
68
|
+
"vite": "~7.1.10",
|
|
69
|
+
"vitest": "~3.2.4",
|
|
70
|
+
"vue3": "npm:vue@~3.5.13"
|
|
57
71
|
},
|
|
58
72
|
"engines": {
|
|
59
|
-
"node": "
|
|
60
|
-
"pnpm": "
|
|
73
|
+
"node": ">=20.11 || >=22.14",
|
|
74
|
+
"pnpm": ">=10"
|
|
61
75
|
},
|
|
62
|
-
"packageManager": "pnpm@
|
|
63
|
-
|
|
64
|
-
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx",
|
|
65
|
-
"test": "vitest",
|
|
66
|
-
"test-ci": "CI=true NODE_ENV=test vitest run --coverage",
|
|
67
|
-
"docs": "typedoc --entryPoints src/index.ts",
|
|
68
|
-
"cleanup": "rm -rf ./dist && rm -rf ./types",
|
|
69
|
-
"cov": "CI=true NODE_ENV=test vitest run --coverage && open coverage/lcov-report/index.html",
|
|
70
|
-
"build": "vite build",
|
|
71
|
-
"build-types": "tsc -p ./tsconfig.types.json && tsc-alias -p tsconfig.types.json",
|
|
72
|
-
"build-all": "pnpm cleanup && pnpm build && pnpm build-types"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
76
|
+
"packageManager": "pnpm@10.18.3"
|
|
77
|
+
}
|
package/types/decorate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DecoratorDescriptorType } from './interfaces';
|
|
2
|
-
export declare function classMixin(...mixins: Array<
|
|
2
|
+
export declare function classMixin(...mixins: Array<() => any>): (target: () => any) => void;
|
|
3
3
|
/**
|
|
4
4
|
* Configure a getter property to be cached
|
|
5
5
|
* @param target The target to add the computed property to
|
package/types/global.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Integration } from './interfaces';
|
|
2
|
-
export declare function getIntegrations(): Integration
|
|
2
|
+
export declare function getIntegrations(): Array<Integration>;
|
|
3
3
|
export declare function addIntegration(integration: Integration): void;
|
|
4
4
|
export declare function removeIntegration(integration: any): void;
|
|
5
5
|
export declare function getIntegration(): Integration;
|
package/types/util.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type Spread<A extends readonly [...any]> = A extends [infer L, ...infer R
|
|
|
16
16
|
* @param types
|
|
17
17
|
* @returns The new object definition
|
|
18
18
|
*/
|
|
19
|
-
export declare function merge<A extends object[]>(...types: [...A]): Spread<A>;
|
|
19
|
+
export declare function merge<A extends (object | ((...any: any[]) => any))[]>(...types: [...A]): Spread<A>;
|
|
20
20
|
/**
|
|
21
21
|
* Extend the prototype of a base class with the prototypes of other classes. Mutates the base class.
|
|
22
22
|
* @param base Base class that the mixins will be mixed into. Any naming conflicts will prefer this base class.
|