@cocreate/events 1.30.0 → 1.31.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/.github/workflows/automated.yml +23 -10
- package/.github/workflows/manual.yml +1 -2
- package/CHANGELOG.md +28 -0
- package/package.json +16 -15
- package/release.config.js +11 -3
- package/src/index.js +4 -9
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
name: Automated Workflow
|
|
2
|
+
|
|
2
3
|
on:
|
|
3
4
|
push:
|
|
4
5
|
branches:
|
|
5
6
|
- master
|
|
7
|
+
|
|
6
8
|
jobs:
|
|
7
9
|
about:
|
|
8
10
|
runs-on: ubuntu-latest
|
|
@@ -18,26 +20,37 @@ jobs:
|
|
|
18
20
|
with:
|
|
19
21
|
direction: overwrite-github
|
|
20
22
|
githubToken: "${{ secrets.GITHUB }}"
|
|
23
|
+
|
|
21
24
|
release:
|
|
22
25
|
runs-on: ubuntu-latest
|
|
23
26
|
steps:
|
|
24
27
|
- name: Checkout
|
|
25
28
|
uses: actions/checkout@v4
|
|
29
|
+
with:
|
|
30
|
+
fetch-depth: 0 # Required so semantic-release can trace git tags/history
|
|
31
|
+
|
|
26
32
|
- name: Setup Node.js
|
|
27
33
|
uses: actions/setup-node@v4
|
|
28
34
|
with:
|
|
29
|
-
node-version: 22
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
@semantic-release/changelog
|
|
35
|
+
node-version: 22
|
|
36
|
+
|
|
37
|
+
- name: Install Semantic Release & Plugins
|
|
38
|
+
# Installs semantic-release and its plugins on the runner
|
|
39
|
+
run: |
|
|
40
|
+
npm install -g semantic-release \
|
|
41
|
+
@semantic-release/changelog \
|
|
42
|
+
@semantic-release/npm \
|
|
43
|
+
@semantic-release/github \
|
|
36
44
|
@semantic-release/git
|
|
37
|
-
|
|
45
|
+
|
|
46
|
+
- name: Run Semantic Release (Native)
|
|
47
|
+
id: semantic
|
|
48
|
+
# This will automatically pick up your export default config file in the repository root
|
|
49
|
+
run: npx semantic-release
|
|
38
50
|
env:
|
|
39
|
-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
51
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
40
52
|
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
|
|
53
|
+
|
|
41
54
|
outputs:
|
|
42
55
|
new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
|
|
43
|
-
new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
|
|
56
|
+
new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# [1.31.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.30.2...v1.31.0) (2026-07-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update import path for getAttribute to include file extension ([9dd6bf0](https://github.com/CoCreate-app/CoCreate-events/commit/9dd6bf094c712582c746b95c9376b410a3d8bf4c))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update automated workflow and release configuration for improved semantic release handling ([413dba3](https://github.com/CoCreate-app/CoCreate-events/commit/413dba3a5e141937fe53dc271bdf377445809bd3))
|
|
12
|
+
|
|
13
|
+
## [1.30.2](https://github.com/CoCreate-app/CoCreate-events/compare/v1.30.1...v1.30.2) (2026-07-11)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* bump package versions ([d91a27d](https://github.com/CoCreate-app/CoCreate-events/commit/d91a27dd75f1b027ceed6b914f57415804ee8568))
|
|
19
|
+
* removed post install and add add packages to apprved list ([54d1833](https://github.com/CoCreate-app/CoCreate-events/commit/54d1833e70b460993647f19b1517d54a14600a4a))
|
|
20
|
+
* semantic version handling ([aee37b5](https://github.com/CoCreate-app/CoCreate-events/commit/aee37b53737328890a570f251d4dd4b77a99dbb6))
|
|
21
|
+
|
|
22
|
+
## [1.30.1](https://github.com/CoCreate-app/CoCreate-events/compare/v1.30.0...v1.30.1) (2026-03-05)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* operator $value should trigger getValue() instead of being treated as a literal string ([7198b2d](https://github.com/CoCreate-app/CoCreate-events/commit/7198b2d3aa65899a22889cb1d6a3638baca442c5))
|
|
28
|
+
|
|
1
29
|
# [1.30.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.29.1...v1.30.0) (2026-02-15)
|
|
2
30
|
|
|
3
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/events",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.0",
|
|
4
4
|
"description": "A simple events component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"events",
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"start": "npx webpack --config webpack.config.js",
|
|
20
20
|
"build": "npx webpack --mode=production --config webpack.config.js",
|
|
21
|
-
"dev": "npx webpack --config webpack.config.js --watch"
|
|
22
|
-
"postinstall": "node -e \"const { execSync } = require('child_process'); try { execSync('coc --version', { stdio: 'ignore' }); } catch (error) { try { execSync('npm install -g @cocreate/cli', { stdio: 'inherit' }); console.log('Installed \"@cocreate/cli\" globally.'); } catch (error) { console.error('Failed to install \"@cocreate/cli\" globally:', error); } }\""
|
|
21
|
+
"dev": "npx webpack --config webpack.config.js --watch"
|
|
23
22
|
},
|
|
24
23
|
"repository": {
|
|
25
24
|
"type": "git",
|
|
@@ -36,19 +35,21 @@
|
|
|
36
35
|
"url": "https://github.com/sponsors/CoCreate-app"
|
|
37
36
|
},
|
|
38
37
|
"main": "./src/index.js",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@cocreate/actions": "^1.21.4",
|
|
40
|
+
"@cocreate/element-prototype": "^1.31.4",
|
|
41
|
+
"@cocreate/observer": "^1.19.0",
|
|
42
|
+
"@cocreate/utils": "^1.42.2"
|
|
43
|
+
},
|
|
39
44
|
"devDependencies": {
|
|
40
|
-
"
|
|
41
|
-
"esbuild": "^0.25.2",
|
|
42
|
-
"esbuild-loader": "^4.3.0",
|
|
43
|
-
"mini-css-extract-plugin": "^1.5.0",
|
|
44
|
-
"webpack": "^5.24.4",
|
|
45
|
-
"webpack-cli": "^4.5.0",
|
|
46
|
-
"webpack-log": "^3.0.1"
|
|
45
|
+
"@cocreate/webpack": "^1.4.3"
|
|
47
46
|
},
|
|
48
|
-
"
|
|
49
|
-
"@cocreate/actions
|
|
50
|
-
"@cocreate/element-prototype
|
|
51
|
-
"@cocreate/observer
|
|
52
|
-
"@cocreate/utils
|
|
47
|
+
"allowScripts": {
|
|
48
|
+
"@cocreate/actions@1.21.4": true,
|
|
49
|
+
"@cocreate/element-prototype@1.31.4": true,
|
|
50
|
+
"@cocreate/observer@1.19.0": true,
|
|
51
|
+
"@cocreate/utils@1.42.2": true,
|
|
52
|
+
"@cocreate/uuid@1.12.4": true,
|
|
53
|
+
"@cocreate/webpack@1.4.3": true
|
|
53
54
|
}
|
|
54
55
|
}
|
package/release.config.js
CHANGED
|
@@ -10,12 +10,20 @@ module.exports = {
|
|
|
10
10
|
changelogFile: "CHANGELOG.md",
|
|
11
11
|
},
|
|
12
12
|
],
|
|
13
|
-
"@semantic-release/npm",
|
|
14
|
-
"@semantic-release/github",
|
|
13
|
+
"@semantic-release/npm",
|
|
15
14
|
[
|
|
16
|
-
"@semantic-release/
|
|
15
|
+
"@semantic-release/github",
|
|
17
16
|
{
|
|
17
|
+
successComment: false,
|
|
18
|
+
failTitle: false,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"@semantic-release/git",
|
|
23
|
+
{
|
|
24
|
+
// Only stage and commit the changelog and package.json
|
|
18
25
|
assets: ["CHANGELOG.md", "package.json"],
|
|
26
|
+
message: "chore(release): ${nextRelease.version} [skip ci]",
|
|
19
27
|
},
|
|
20
28
|
],
|
|
21
29
|
],
|
package/src/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import { queryElements } from "@cocreate/utils";
|
|
|
24
24
|
import action from "@cocreate/actions";
|
|
25
25
|
import observer from "@cocreate/observer";
|
|
26
26
|
import "@cocreate/element-prototype";
|
|
27
|
-
import { getAttribute } from "@cocreate/element-prototype/src/getAttribute";
|
|
27
|
+
import { getAttribute } from "@cocreate/element-prototype/src/getAttribute.js";
|
|
28
28
|
|
|
29
29
|
const CoCreateEvents = {
|
|
30
30
|
elements: new Map(),
|
|
@@ -473,9 +473,9 @@ const CoCreateEvents = {
|
|
|
473
473
|
|
|
474
474
|
// Get Value
|
|
475
475
|
let value = sourceElement.getAttribute(name);
|
|
476
|
-
if (
|
|
476
|
+
if (value === "$value" && sourceElement.getValue) {
|
|
477
477
|
value = await sourceElement.getValue();
|
|
478
|
-
}
|
|
478
|
+
}
|
|
479
479
|
|
|
480
480
|
// Parse CSV for rotation
|
|
481
481
|
let values = [];
|
|
@@ -608,12 +608,7 @@ const CoCreateEvents = {
|
|
|
608
608
|
newValue = this.__getNextValue(values, oldValue, deactivate);
|
|
609
609
|
|
|
610
610
|
// Handle Namespaced Attributes (e.g. svg:href) if encoded in name
|
|
611
|
-
|
|
612
|
-
const realName = targetName.replace('.', ':');
|
|
613
|
-
targetElement.setAttribute(realName, newValue);
|
|
614
|
-
} else {
|
|
615
|
-
targetElement.setAttribute(targetName, newValue);
|
|
616
|
-
}
|
|
611
|
+
targetElement.setAttribute(targetName, newValue);
|
|
617
612
|
}
|
|
618
613
|
break;
|
|
619
614
|
}
|