@benshawmean/envedit 1.3.5 → 1.4.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/.gitlab-ci.yml CHANGED
@@ -87,17 +87,6 @@ publish:
87
87
  - bunx npm publish ${PUBLISH_FLAGS[*]} package.tgz
88
88
  - sh ci/npm.sh
89
89
  - bun publish ${PUBLISH_FLAGS[*]} package.tgz
90
- after_script:
91
- - echo "Preparing environment variables for release job"
92
- - echo "PACKAGE_NAME=$PACKAGE_NAME" >> variables.env
93
- - echo "CURR_VER=$CURR_VER" >> variables.env
94
- - echo "IS_PRE_RELEASE=$IS_PRE_RELEASE" >> variables.env
95
- - bunx git-cliff -r . > CI-CHANGELOG.md
96
- artifacts:
97
- paths:
98
- - CI-CHANGELOG.md
99
- reports:
100
- dotenv: variables.env
101
90
  allow_failure:
102
91
  exit_codes:
103
92
  - 9001
@@ -110,19 +99,22 @@ release:
110
99
  rules:
111
100
  - if: $CI_COMMIT_REF_PROTECTED && $CI_COMMIT_TAG && $CI_COMMIT_TAG =~ $VERSION_REGEX
112
101
 
113
- needs:
114
- - job: publish
115
- artifacts: true
102
+ needs: [ publish ]
116
103
 
117
104
  script:
118
- - echo "running release_job"
105
+ - glab changelog generate > CHANGELOG.md
106
+ - export GLAB_PACKAGE_URL=$(glab packages list --jq ".[-1]._links.web_path" | sed 's/^\///')
107
+ - export VERSION_NUMBER=$(glab packages list --jq ".[-1].version")
119
108
 
120
109
  release:
121
110
  name: "Release $CI_COMMIT_TAG"
122
111
  tag_name: '$CI_COMMIT_TAG'
123
- description: CI-CHANGELOG.md
112
+ description: CHANGELOG.md
124
113
  assets:
125
114
  links:
126
115
  - name: "General NPM Registry Release"
127
- url: "https://www.npmjs.com/package/$PACKAGE_NAME/v/$CI_COMMIT_TAG"
116
+ url: "https://www.npmjs.com/package/@$CI_PROJECT_PATH/v/$VERSION_NUMBER"
117
+ link_type: package
118
+ - name: "GitLab Package Registry Release"
119
+ url: "https://gitlab.com$GLAB_PACKAGE_URL"
128
120
  link_type: package
package/CHANGELOG.md CHANGED
@@ -1,168 +1,196 @@
1
- # Changelog
1
+ ## [HEAD]
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ ### Bug Fixes
4
+ - Fix some things by @benshawmean
5
+ - Correct changelogs again by @benshawmean
6
+
7
+ ### Documentation
8
+ - Update changelog by @benshawmean
9
+
10
+ ### Refactor
11
+ - Change "Unreleased" to "HEAD" on changelog by @benshawmean
12
+
13
+ ## [1.3.5] - 2026-09-05
14
+
15
+ ### Bug Fixes
16
+ - Make changelog on the fly by @benshawmean
17
+ - Fix rules for release by @benshawmean
18
+
19
+ ### Changed
20
+ - V1.3.5 by @benshawmean
4
21
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
22
+ ### Documentation
23
+ - Update changelog by @benshawmean
24
+
25
+ ### Refactor
26
+ - Extend ci config by @benshawmean
7
27
 
8
28
  ## [1.3.4] - 2026-09-05
9
29
 
10
30
  ### Bug Fixes
11
- - Fix "before_script" from failing
31
+ - Fix "before_script" from failing by @benshawmean
12
32
 
13
33
  ### Changed
14
- - Make some needed changes
15
- - V1.3.4
34
+ - Make some needed changes by @benshawmean
35
+ - V1.3.4 by @benshawmean
16
36
 
17
37
  ## [1.3.3] - 2026-09-05
18
38
 
19
39
  ### Added
20
- - Add in automated release pipelines
40
+ - Add in automated release pipelines by @benshawmean
21
41
 
22
42
  ### Bug Fixes
23
- - Ensure that the process is running with bun
43
+ - Ensure that the process is running with bun by @benshawmean
24
44
 
25
45
  ### Changed
26
- - Show how to add JSON support
27
- - V1.3.3
46
+ - Show how to add JSON support by @benshawmean
47
+ - V1.3.3 by @benshawmean
28
48
 
29
49
  ### Documentation
30
- - Add documentation for JetBrains IDE
50
+ - Add documentation for JetBrains IDE by @benshawmean
31
51
 
32
52
  ## [1.3.2-2] - 2026-08-20
33
53
 
34
54
  ### Bug Fixes
35
- - Fix ci/cd pipeline
55
+ - Fix ci/cd pipeline by @benshawmean
36
56
 
37
57
  ### Changed
38
- - V1.3.2-2
58
+ - V1.3.2-2 by @benshawmean
39
59
 
40
60
  ## [1.3.2-1] - 2026-08-20
41
61
 
42
62
  ### Changed
43
- - V1.3.2-1
63
+ - V1.3.2-1 by @benshawmean
44
64
 
45
65
  ### Continuous Integration
46
- - Fix deploy tags
66
+ - Fix deploy tags by @benshawmean
47
67
 
48
68
  ## [1.3.2-0] - 2026-08-20
49
69
 
50
70
  ### Changed
51
- - V1.3.2-0
71
+ - V1.3.2-0 by @benshawmean
52
72
 
53
73
  ### Refactor
54
- - Refactor
74
+ - Refactor by @benshawmean
55
75
 
56
76
  ## [1.3.1] - 2026-08-20
57
77
 
58
78
  ### Changed
59
- - V1.3.1
79
+ - V1.3.1 by @benshawmean
60
80
 
61
81
  ### Refactor
62
- - Do some refactoring of the code to ensure everything works properly
63
- - Refactor(test)
82
+ - Do some refactoring of the code to ensure everything works properly by @benshawmean
83
+ - Refactor(test) by @benshawmean
64
84
 
65
85
  ## [1.3.0] - 2026-08-19
66
86
 
67
87
  ### Changed
68
- - I hate testing stuff oml
69
- - Only print failures
70
- - V1.3.0
88
+ - I hate testing stuff oml by @benshawmean
89
+ - Only print failures by @benshawmean
90
+ - V1.3.0 by @benshawmean
71
91
 
72
92
  ## [1.2.3] - 2026-08-16
73
93
 
74
94
  ### Changed
75
- - Edit README.md
76
- - V1.2.3
95
+ - Edit README.md by @benshawmean
96
+ - V1.2.3 by @benshawmean
77
97
 
78
98
  ### Refactor
79
- - Update logging utilities
99
+ - Update logging utilities by @benshawmean
100
+
101
+ ### New Contributors
102
+ * @benshawmean made their first contribution
80
103
 
81
104
  ## [1.2.2] - 2026-08-09
82
105
 
83
106
  ### Changed
84
- - V1.2.2
107
+ - V1.2.2 by @benshawmean
85
108
 
86
109
  ### Continuous Integration
87
- - Try and fix CI pipelines
110
+ - Try and fix CI pipelines by @benshawmean
88
111
 
89
112
  ## [1.2.1] - 2026-08-08
90
113
 
91
114
  ### Changed
92
- - Try and get this to work because otherwise its gonna piss me off
93
- - V1.2.1
115
+ - Try and get this to work because otherwise its gonna piss me off by @benshawmean
116
+ - V1.2.1 by @benshawmean
94
117
 
95
118
  ## [1.2.0] - 2026-08-08
96
119
 
97
120
  ### Changed
98
- - Lets try this one more time
99
- - V1.2.0
121
+ - Lets try this one more time by @benshawmean
122
+ - V1.2.0 by @benshawmean
100
123
 
101
124
  ## [1.1.4] - 2026-08-08
102
125
 
103
126
  ### Changed
104
- - Try and fix the issue
105
- - V1.1.4
127
+ - Try and fix the issue by @benshawmean
128
+ - V1.1.4 by @benshawmean
106
129
 
107
130
  ### Removed
108
- - Remove "semver.ts" as Bun natively handles version bumping
131
+ - Remove "semver.ts" as Bun natively handles version bumping by @benshawmean
109
132
 
110
133
  ## [1.1.3] - 2026-08-08
111
134
 
112
135
  ### Changed
113
- - Do some more changes to reduce the size of the package
114
- - V1.1.3
136
+ - Do some more changes to reduce the size of the package by @benshawmean
137
+ - V1.1.3 by @benshawmean
115
138
 
116
139
  ### Continuous Integration
117
- - Make the code a bit more readable
118
- - Disable testing on tag pushes
119
- - Add some more checks
120
- - Try and fix CI prevention
121
- - Allow global multiline checks
122
- - Fix regex
123
- - Try to fix ci prevention
140
+ - Make the code a bit more readable by @benshawmean
141
+ - Disable testing on tag pushes by @benshawmean
142
+ - Add some more checks by @benshawmean
143
+ - Try and fix CI prevention by @benshawmean
144
+ - Allow global multiline checks by @benshawmean
145
+ - Fix regex by @benshawmean
146
+ - Try to fix ci prevention by @benshawmean
124
147
 
125
148
  ## [1.1.2] - 2026-08-08
126
149
 
127
150
  ### Added
128
- - Add in automated deployment systems into the pipeline
151
+ - Add in automated deployment systems into the pipeline by @benshawmean
129
152
 
130
153
  ### Bug Fixes
131
- - Fix some bugs with selecting active enviornments
132
- - Fix package.json
154
+ - Fix some bugs with selecting active enviornments by @benshawmean
155
+ - Fix package.json by @benshawmean
133
156
 
134
157
  ### Changed
135
- - Initial Commit
136
- - Prepare deployment for the code!
137
- - Make executable
138
- - Try again!
139
- - This is pissing me off
140
- - Try and prepare new pipeline maybe?
141
- - Allow for better release deployments using a singular connection
142
- - Try to do more fixes
143
- - V1.1.2
158
+ - Initial Commit by @benshawmean
159
+ - Prepare deployment for the code! by @benshawmean
160
+ - Make executable by @benshawmean
161
+ - Try again! by @benshawmean
162
+ - This is pissing me off by @benshawmean
163
+ - Try and prepare new pipeline maybe? by @benshawmean
164
+ - Allow for better release deployments using a singular connection by @benshawmean
165
+ - Try to do more fixes by @benshawmean
166
+ - V1.1.2 by @benshawmean
144
167
 
145
168
  ### Documentation
146
- - Fix up some documentation and other files to make the project look cleaner
169
+ - Fix up some documentation and other files to make the project look cleaner by @benshawmean
147
170
 
148
171
  ### Refactor
149
- - Handle saving and loading config files within the Config class
150
- - (refactor)
172
+ - Handle saving and loading config files within the Config class by @benshawmean
173
+ - (refactor) by @benshawmean
151
174
 
152
175
  ### Testing
153
- - Add in testing abilities
154
-
155
- [1.3.4]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.3.3...v1.3.4
156
- [1.3.3]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.3.2-2...v1.3.3
157
- [1.3.2-2]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.3.2-1...v1.3.2-2
158
- [1.3.2-1]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.3.2-0...v1.3.2-1
159
- [1.3.2-0]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.3.1...v1.3.2-0
160
- [1.3.1]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.3.0...v1.3.1
161
- [1.3.0]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.2.3...v1.3.0
162
- [1.2.3]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.2.2...v1.2.3
163
- [1.2.2]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.2.1...v1.2.2
164
- [1.2.1]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.2.0...v1.2.1
165
- [1.2.0]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.1.4...v1.2.0
166
- [1.1.4]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.1.3...v1.1.4
167
- [1.1.3]: https://gitlab.com/benshawmean/BanManagerWebUIv2/-/compare/v1.1.2...v1.1.3
176
+ - Add in testing abilities by @benshawmean
177
+
178
+ ### New Contributors
179
+ * @benshawmean made their first contribution
180
+
181
+ [HEAD]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.3.5...HEAD
182
+ [1.3.5]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.3.4...v1.3.5
183
+ [1.3.4]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.3.3...v1.3.4
184
+ [1.3.3]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.3.2-2...v1.3.3
185
+ [1.3.2-2]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.3.2-1...v1.3.2-2
186
+ [1.3.2-1]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.3.2-0...v1.3.2-1
187
+ [1.3.2-0]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.3.1...v1.3.2-0
188
+ [1.3.1]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.3.0...v1.3.1
189
+ [1.3.0]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.2.3...v1.3.0
190
+ [1.2.3]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.2.2...v1.2.3
191
+ [1.2.2]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.2.1...v1.2.2
192
+ [1.2.1]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.2.0...v1.2.1
193
+ [1.2.0]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.1.4...v1.2.0
194
+ [1.1.4]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.1.3...v1.1.4
195
+ [1.1.3]: https://gitlab.com/benshawmean/EnvEdit/-/compare/v1.1.2...v1.1.3
168
196
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@benshawmean/envedit",
3
3
  "type": "module",
4
- "version": "1.3.5",
4
+ "version": "1.4.0",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {
7
7
  "envedit": "cli/index.ts"
package/cliff.toml DELETED
@@ -1,151 +0,0 @@
1
- [remote.gitlab]
2
- owner = "benshawmean"
3
- repo = "BanManagerWebUIv2"
4
-
5
- [bump]
6
- features_always_bump_minor = true
7
- breaking_always_bump_major = true
8
- initial_tag = "0.1.0"
9
-
10
- [changelog]
11
- # A Tera template to be rendered as the changelog's header.
12
- # See https://keats.github.io/tera/#getting-started
13
- header = """
14
- # Changelog\n
15
- All notable changes to this project will be documented in this file.
16
-
17
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
18
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n
19
- """
20
- # A Tera template to be rendered for each release in the changelog.
21
- # See https://keats.github.io/tera/#getting-started
22
- body = """
23
- {%- macro project_url() -%}
24
- {%- set ci_project_url = get_env(name="CI_PROJECT_URL", default="") -%}
25
- {%- if ci_project_url != "" -%}
26
- {{ ci_project_url }}
27
- {%- elif remote.gitlab.api_url and remote.gitlab.owner and remote.gitlab.repo -%}
28
- {{ remote.gitlab.api_url | trim_end_matches(pat="/api/v4") }}/{{ remote.gitlab.owner }}/{{ remote.gitlab.repo }}
29
- {%- elif remote.gitlab.owner and remote.gitlab.repo -%}
30
- https://gitlab.com/{{ remote.gitlab.owner }}/{{ remote.gitlab.repo }}
31
- {%- else -%}
32
-
33
- {%- endif -%}
34
- {%- endmacro -%}
35
-
36
- {% if version -%}
37
- ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
38
- {% else -%}
39
- ## [Unreleased]
40
- {% endif -%}
41
-
42
- {% for group, commits in commits | group_by(attribute="group") %}
43
- ### {{ group | upper_first }}
44
- {%- for commit in commits %}
45
- - {{ commit.message | split(pat="\n") | first | upper_first | trim }}\
46
- {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
47
- {% if commit.remote.pr_number %} in \
48
- [!{{ commit.remote.pr_number }}]({{ self::project_url() }}/-/merge_requests/{{ commit.remote.pr_number }}) \
49
- {%- endif -%}
50
- {% endfor %}
51
- {% endfor %}
52
-
53
- {%- if gitlab.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
54
- ### New Contributors
55
- {%- endif -%}
56
-
57
- {% for contributor in gitlab.contributors | filter(attribute="is_first_time", value=true) %}
58
- * @{{ contributor.username }} made their first contribution
59
- {%- if contributor.pr_number %} in \
60
- [!{{ contributor.pr_number }}]({{ self::project_url() }}/-/merge_requests/{{ contributor.pr_number }}) \
61
- {%- endif %}
62
- {%- endfor %}\n
63
-
64
- {%- if gitlab.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}{% raw %}\n{% endraw -%}{% endif %}
65
-
66
- """
67
- # A Tera template to be rendered as the changelog's footer.
68
- # See https://keats.github.io/tera/#getting-started
69
- footer = """
70
- {%- macro project_url() -%}
71
- {%- set ci_project_url = get_env(name="CI_PROJECT_URL", default="") -%}
72
- {%- if ci_project_url != "" -%}
73
- {{ ci_project_url }}
74
- {%- elif remote.gitlab.api_url and remote.gitlab.owner and remote.gitlab.repo -%}
75
- {{ remote.gitlab.api_url | trim_end_matches(pat="/api/v4") }}/{{ remote.gitlab.owner }}/{{ remote.gitlab.repo }}
76
- {%- elif remote.gitlab.owner and remote.gitlab.repo -%}
77
- https://gitlab.com/{{ remote.gitlab.owner }}/{{ remote.gitlab.repo }}
78
- {%- else -%}
79
-
80
- {%- endif -%}
81
- {%- endmacro -%}
82
-
83
- {% for release in releases -%}
84
- {% if release.version -%}
85
- {% if release.previous.version -%}
86
- [{{ release.version | trim_start_matches(pat="v") }}]: \
87
- {{ self::project_url() }}/-/compare/{{ release.previous.version }}...{{ release.version }}
88
- {% endif -%}
89
- {% else -%}
90
- [unreleased]: {{ self::project_url() }}/-/compare/{{ release.previous.version }}...HEAD
91
- {% endif -%}
92
- {% endfor %}
93
- """
94
- # Remove leading and trailing whitespaces from the changelog's body.
95
- trim = true
96
- output = "CHANGELOG.md"
97
- postprocessors = [
98
- { pattern = "\\s+\\* @Benjamin made their first contribution", replace = "" },
99
- { pattern = "Benjamin", replace = "benshawmean" },
100
- ]
101
-
102
- [git]
103
- conventional_commits = true
104
- filter_unconventional = false
105
- require_conventional = false
106
- split_commits = false
107
- commit_parsers = [
108
- { message = "^\\(*feat", group = "Features" },
109
- { message = "^\\(*fix", group = "Bug Fixes" },
110
- { message = "^\\(*doc", group = "Documentation" },
111
- { message = "^\\(*perf", group = "Performance" },
112
- { message = "^\\(*refactor", group = "Refactor" },
113
- { message = "^\\(*style", group = "Styling" },
114
- { message = "^\\(*test", group = "Testing" },
115
- { message = "^\\(*chore", group = "Chores" },
116
- { message = "^\\(*ci", group = "Continuous Integration" },
117
- { message = "^\\(*build", group = "Build System" },
118
- { message = "^\\(*revert", group = "Reverts" },
119
- { message = "^[a|A]dd", group = "Added" },
120
- { message = "^[s|S]upport", group = "Added" },
121
- { message = "^[r|R]emove", group = "Removed" },
122
- { message = "^.*: add", group = "Added" },
123
- { message = "^.*: support", group = "Added" },
124
- { message = "^.*: remove", group = "Removed" },
125
- { message = "^.*: delete", group = "Removed" },
126
- { message = "^test", group = "Fixed" },
127
- { message = "^fix", group = "Fixed" },
128
- { message = "^.*: fix", group = "Fixed" },
129
- { message = "^.*", group = "Changed" },
130
- ]
131
- protect_breaking_commits = false
132
- filter_commits = false
133
- fail_on_unmatched_commit = false
134
- tag_pattern = "^v?\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)*)?$"
135
-
136
- topo_order = false
137
- topo_order_commits = true
138
- sort_commits = "oldest"
139
- link_parsers = [
140
- { pattern = "RFC(\\d+)", text = "ietf-rfc$1", href = "https://datatracker.ietf.org/doc/html/rfc$1" },
141
- ]
142
- processing_order = [
143
- "commit_preprocessors",
144
- "split_commits",
145
- "conventional_commits",
146
- "commit_parsers",
147
- "link_parsers",
148
- ]
149
- limit_commits = 1000
150
- recurse_submodules = false
151
- exclude_paths = ["unrelated/"]