aleman 1.16.4 → 2.0.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.
package/ChangeLog CHANGED
@@ -1,3 +1,21 @@
1
+ 2026.01.25, v2.0.0
2
+
3
+ feature:
4
+ - dc0b6f3 aleman: drop support of node < 22
5
+ - 714ae25 aleman: try-to-catch v4.0.3
6
+ - bbbd53e aleman: try-catch v4.0.7
7
+ - 862c712 aleman: supertape v12.0.12
8
+ - bb0c78a aleman: putout v41.12.0
9
+ - 0c27906 aleman: madrun v12.1.0
10
+ - 3572de6 aleman: fullstore v4.0.0
11
+ - bb793a0 aleman: eslint-plugin-putout v30.0.1
12
+ - 6be993f aleman: @putout/test v15.1.0
13
+
14
+ 2025.11.28, v1.16.5
15
+
16
+ feature:
17
+ - 2b344d2 menu: item-click: stopPropagation (coderaiser/cloudcmd#448)
18
+
1
19
  2025.11.27, v1.16.4
2
20
 
3
21
  fix:
package/aleman/state.js CHANGED
@@ -1,4 +1,4 @@
1
- import fullstore from 'fullstore';
1
+ import {fullstore} from 'fullstore';
2
2
 
3
3
  const {assign} = Object;
4
4
  const {stringify, parse} = JSON;
@@ -39,7 +39,7 @@ export const createState = (state, {options, listener, stateName = 'aleman-state
39
39
 
40
40
  history[str] = true;
41
41
  stateElement.textContent = str;
42
- window.alemanSync = fn;
42
+ globalThis.alemanSync = fn;
43
43
 
44
44
  document.addEventListener('keydown', ({key}) => {
45
45
  if (key === '`')
@@ -1,4 +1,4 @@
1
- import {createMenu} from '../menu/menu.js';
1
+ import {createMenu} from '../nemo/nemo.js';
2
2
 
3
3
  const menuData = {
4
4
  hello: () => alert('x'),
@@ -0,0 +1 @@
1
+ <script src="index.js" type="module"></script>
@@ -0,0 +1,8 @@
1
+ import {createMenu} from '../nemo/nemo.js';
2
+
3
+ const menuData = {
4
+ hello: () => alert('x'),
5
+ world: () => alert('y'),
6
+ };
7
+
8
+ await createMenu(document.body, {}, menuData);
@@ -1,4 +1,4 @@
1
- import jessy from 'jessy';
1
+ import {jessy} from 'jessy';
2
2
  import {getMenuPath as _getMenuPath} from '../menu/get-menu-path.js';
3
3
 
4
4
  const isFn = (a) => typeof a === 'function';
@@ -1,4 +1,4 @@
1
- import jessy from 'jessy';
1
+ import {jessy} from 'jessy';
2
2
  import {getMenuPath as _getMenuPath} from '../menu/get-menu-path.js';
3
3
 
4
4
  const isFn = (a) => typeof a === 'function';
@@ -8,6 +8,7 @@ export const createItemClick = (name) => ({
8
8
  events: ['click'],
9
9
  listener,
10
10
  filter,
11
+ stopPropagation: true,
11
12
  });
12
13
 
13
14
  const filter = ({event, state, options}) => {
@@ -4,7 +4,7 @@ export const setPosition = (name, event) => {
4
4
  const element = document.querySelector(`[data-name="${name}"]`);
5
5
  const heightMenu = getMenuHeight(element);
6
6
  const widthMenu = getMenuWidth(element);
7
- const {innerHeight, innerWidth} = window;
7
+ const {innerHeight, innerWidth} = globalThis;
8
8
 
9
9
  const {x, y} = calculate(event, {
10
10
  heightMenu,
package/menu/importmap.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export const importmap = {
2
2
  imports: {
3
- 'putout': 'https://esm.sh/@putout/bundle@4.7.6',
3
+ 'putout': 'https://esm.sh/@putout/bundle@5.2.4',
4
4
  '@putout/processor-html': 'https://esm.sh/@putout/processor-html',
5
5
  'fullstore': 'https://esm.sh/fullstore',
6
6
  'jessy': 'https://esm.sh/jessy',
@@ -1,4 +1,4 @@
1
- import jessy from 'jessy';
1
+ import {jessy} from 'jessy';
2
2
  import {getMenuPath as _getMenuPath} from '../menu/get-menu-path.js';
3
3
 
4
4
  const isFn = (a) => typeof a === 'function';
@@ -1,4 +1,4 @@
1
- import jessy from 'jessy';
1
+ import {jessy} from 'jessy';
2
2
  import {getMenuPath as _getMenuPath} from '../menu/get-menu-path.js';
3
3
 
4
4
  const isFn = (a) => typeof a === 'function';
@@ -4,7 +4,7 @@ export const setPosition = (name, event) => {
4
4
  const element = document.querySelector(`[data-name="${name}"]`);
5
5
  const heightMenu = getMenuHeight(element);
6
6
  const widthMenu = getMenuWidth(element);
7
- const {innerHeight, innerWidth} = window;
7
+ const {innerHeight, innerWidth} = globalThis;
8
8
 
9
9
  const {x, y} = calculate(event, {
10
10
  heightMenu,
package/nemo/importmap.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export const importmap = {
2
2
  imports: {
3
- 'putout': 'https://esm.sh/@putout/bundle@4.7.6',
3
+ 'putout': 'https://esm.sh/@putout/bundle@5.2.4',
4
4
  '@putout/processor-html': 'https://esm.sh/@putout/processor-html',
5
5
  'fullstore': 'https://esm.sh/fullstore',
6
6
  'jessy': 'https://esm.sh/jessy',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aleman",
3
- "version": "1.16.4",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout-based framework for web",
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@putout/processor-html": "^14.0.2",
32
- "fullstore": "^3.0.0",
32
+ "fullstore": "^4.0.0",
33
33
  "html-escaper": "^3.0.3",
34
- "jessy": "^4.1.0",
34
+ "jessy": "^5.0.0",
35
35
  "once": "^1.4.0",
36
- "putout": "^40.5.1",
37
- "try-to-catch": "^3.0.1"
36
+ "putout": "^41.12.0",
37
+ "try-to-catch": "^4.0.3"
38
38
  },
39
39
  "keywords": [
40
40
  "putout",
@@ -44,21 +44,21 @@
44
44
  "debugger"
45
45
  ],
46
46
  "devDependencies": {
47
- "@putout/test": "^14.0.0",
47
+ "@putout/test": "^15.1.0",
48
48
  "c8": "^10.0.0",
49
49
  "eslint": "^9.0.0",
50
50
  "eslint-plugin-n": "^17.0.0",
51
- "eslint-plugin-putout": "^28.0.0",
51
+ "eslint-plugin-putout": "^30.0.1",
52
52
  "just-kebab-case": "^4.2.0",
53
- "madrun": "^11.0.0",
53
+ "madrun": "^12.1.0",
54
54
  "montag": "^1.2.1",
55
55
  "nodemon": "^3.0.1",
56
- "supertape": "^11.3.0",
57
- "try-catch": "^3.0.1"
56
+ "supertape": "^12.0.12",
57
+ "try-catch": "^4.0.7"
58
58
  },
59
59
  "license": "MIT",
60
60
  "engines": {
61
- "node": ">=20"
61
+ "node": ">=22"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
File without changes