@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/package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "@madronejs/core",
3
- "version": "1.0.16",
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
- "@types/lodash": "^4.14.197",
41
- "@typescript-eslint/eslint-plugin": "^6.7.3",
42
- "@typescript-eslint/parser": "^6.7.3",
43
- "@vitest/coverage-v8": "^0.34.6",
44
- "eslint": "^8.50.0",
45
- "eslint-config-airbnb-base": "^15.0.0",
46
- "eslint-plugin-import": "^2.28.1",
47
- "eslint-plugin-unicorn": "^48.0.1",
48
- "happy-dom": "^12.6.0",
49
- "lodash": "4.17.21",
50
- "tsc-alias": "^1.8.7",
51
- "typedoc": "^0.25.0",
52
- "typescript": "^4.9.5",
53
- "vite": "^4.4.10",
54
- "vitest": "^0.34.6",
55
- "vue2": "npm:vue@^2.7.14",
56
- "vue3": "npm:vue@^3.3.4"
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": "^18.8",
60
- "pnpm": "^8.7.0"
73
+ "node": ">=20.11 || >=22.14",
74
+ "pnpm": ">=10"
61
75
  },
62
- "packageManager": "pnpm@8.7.0",
63
- "scripts": {
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
+ }
@@ -1,5 +1,5 @@
1
1
  import { DecoratorDescriptorType } from './interfaces';
2
- export declare function classMixin(...mixins: Array<Function>): (target: Function) => void;
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;
@@ -1,4 +1,3 @@
1
1
  export { default as MadroneState } from './MadroneState';
2
- export { default as MadroneVue2 } from './MadroneVue2';
3
2
  export { default as MadroneVue3 } from './MadroneVue3';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -37,7 +37,6 @@ declare class ObservableItem<T> {
37
37
  */
38
38
  dispose(): void;
39
39
  private wrap;
40
- setHook(hook: OBSERVER_HOOK, cb: ObservableHookType<T>): void;
41
40
  setDirty(): void;
42
41
  private notifyChange;
43
42
  run(): T;
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.