@cocreate/events 1.30.1 → 1.31.1
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 +18 -17
- package/release.config.js +11 -3
- package/src/index.js +1 -1
|
@@ -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.1](https://github.com/CoCreate-app/CoCreate-events/compare/v1.31.0...v1.31.1) (2026-07-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump dependencies ([877691a](https://github.com/CoCreate-app/CoCreate-events/commit/877691ac04ba34c6838944cc238567af3101419d))
|
|
7
|
+
|
|
8
|
+
# [1.31.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.30.2...v1.31.0) (2026-07-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update import path for getAttribute to include file extension ([9dd6bf0](https://github.com/CoCreate-app/CoCreate-events/commit/9dd6bf094c712582c746b95c9376b410a3d8bf4c))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* update automated workflow and release configuration for improved semantic release handling ([413dba3](https://github.com/CoCreate-app/CoCreate-events/commit/413dba3a5e141937fe53dc271bdf377445809bd3))
|
|
19
|
+
|
|
20
|
+
## [1.30.2](https://github.com/CoCreate-app/CoCreate-events/compare/v1.30.1...v1.30.2) (2026-07-11)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* bump package versions ([d91a27d](https://github.com/CoCreate-app/CoCreate-events/commit/d91a27dd75f1b027ceed6b914f57415804ee8568))
|
|
26
|
+
* removed post install and add add packages to apprved list ([54d1833](https://github.com/CoCreate-app/CoCreate-events/commit/54d1833e70b460993647f19b1517d54a14600a4a))
|
|
27
|
+
* semantic version handling ([aee37b5](https://github.com/CoCreate-app/CoCreate-events/commit/aee37b53737328890a570f251d4dd4b77a99dbb6))
|
|
28
|
+
|
|
1
29
|
## [1.30.1](https://github.com/CoCreate-app/CoCreate-events/compare/v1.30.0...v1.30.1) (2026-03-05)
|
|
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.1",
|
|
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",
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"start": "
|
|
20
|
-
"build": "
|
|
21
|
-
"dev": "
|
|
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); } }\""
|
|
19
|
+
"start": "webpack --config webpack.config.js",
|
|
20
|
+
"build": "webpack --mode=production --config webpack.config.js",
|
|
21
|
+
"dev": "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.22.1",
|
|
40
|
+
"@cocreate/element-prototype": "^1.33.0",
|
|
41
|
+
"@cocreate/observer": "^1.20.0",
|
|
42
|
+
"@cocreate/utils": "^1.44.0"
|
|
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.6.0"
|
|
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(),
|