Skip to content

Commit 511cbcf

Browse files
committed
release: v2.4.1
1 parent 01a248e commit 511cbcf

File tree

3 files changed

+85
-8
lines changed

3 files changed

+85
-8
lines changed

Diff for: CHANGELOG.md

+32
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# Changelog
22

3+
## v2.4.1 (2024-07-11)
4+
5+
### Puter
6+
7+
8+
#### Features
9+
10+
- update BR translation ([42a6b39](https://github.com/HeyPuter/puter/commit/42a6b3938a588b8b4d1bd976c37e9c6e58408c75))
11+
- JSON support for kv driver ([3ed7916](https://github.com/HeyPuter/puter/commit/3ed7916856f03eafbe0891f2ab39c34d20d2bd24))
12+
13+
#### Translations
14+
15+
- Update bn.js file formatting ([cff488f](https://github.com/HeyPuter/puter/commit/cff488f4f4378ca6c7568a585a665f2a3b87b89c))
16+
- Issue#530 - Update bengali translations ([92abc99](https://github.com/HeyPuter/puter/commit/92abc9947f811f94f17a5ee5a4b73ee2b210900a))
17+
- Added missing Romanian translations. ([8440f56](https://github.com/HeyPuter/puter/commit/8440f566b91c9eb4f01addcb850061e3fbe3afc7))
18+
- Add 2FA Romanian translations ([473b651](https://github.com/HeyPuter/puter/commit/473b6512c697854e3f3badae1eb7b87742954da5))
19+
- Add Japanese Translation ([47ec74f](https://github.com/HeyPuter/puter/commit/47ec74f0aa6adb3952e6460909029a4acb0c3039))
20+
- Completing Italian translation based on English file ([f5a8ee1](https://github.com/HeyPuter/puter/commit/f5a8ee1c6ab950d62c90b6257791f026a508b4e4))
21+
- Completing Italian translation based on English file. ([a96abb5](https://github.com/HeyPuter/puter/commit/a96abb5793528d0dc56d75f95d771e1dcf5960d1))
22+
- Completing Arabic translation based on English file ([78a0ace](https://github.com/HeyPuter/puter/commit/78a0acea6980b6d491da4874edbd98e17c0d9577))
23+
- Update Arabic translations in src/gui/src/i18n/translations/ar.js to match English version in src/gui/src/i18n/translations/en.js ([fe5be7f](https://github.com/HeyPuter/puter/commit/fe5be7f3cf7f336730137293ba86a637e8d8591d))
24+
- Update Arabic translations in src/gui/src/i18n/translations/ar.js to match English version in src/gui/src/i18n/translations/en.js ([bffa192](https://github.com/HeyPuter/puter/commit/bffa192805216fc17045cd8d629f34784dca7f3f))
25+
- Ukrainian updated ([e61039f](https://github.com/HeyPuter/puter/commit/e61039faf409b0ad85c7513b0123f3f2e92ebe32))
26+
- Update ru.js issue #547 ([17145d0](https://github.com/HeyPuter/puter/commit/17145d0be6a9a1445947cc0c4bec8f16a475144c))
27+
- Russian translation fixed ([8836011](https://github.com/HeyPuter/puter/commit/883601142873f10d69c84874499065a7d29af054))
28+
29+
#### Bug Fixes
30+
31+
- remove flag that breaks puter-js webpack ([7aadae5](https://github.com/HeyPuter/puter/commit/7aadae58ce1a51f925bf64c3d65ac1fa6971b164))
32+
- Improve `getMimeType` to remove trailing dot in the extension if preset ([535475b](https://github.com/HeyPuter/puter/commit/535475b3c36a37e3319ed067a24fb671790dcda3))
33+
34+
335
## 2.4.0 (2024-07-08)
436

537

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puter.com",
3-
"version": "1.0.0",
3+
"version": "2.4.1",
44
"author": "Puter Technologies Inc.",
55
"license": "AGPL-3.0-only",
66
"description": "Desktop environment in the browser!",

Diff for: tools/gen-release-notes.js

+52-7
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ import { simpleGit } from 'simple-git';
2121
const REPO_URL = 'https://github.com/HeyPuter/puter';
2222

2323
const params = {
24-
from: 'v2.3.0',
24+
from: 'v2.4.0',
2525
// from: 'v2.4.0',
26-
to: 'v2.5.0',
27-
date: '2024-07-08',
26+
to: 'v2.4.1',
27+
date: '2024-07-11',
2828
};
2929

3030
const git = simpleGit();
3131
const log = await git.log({ from: params.from });
3232
const commits = log.all;
3333

34-
const CC_REGEX = /^([a-z]+)(\([a-z]+\))?:\s(.*)/;
34+
const CC_REGEX = /^([a-z0-9]+)(\([a-z0-9]+\))?:\s(.*)/;
3535
const parse_conventional_commit = message => {
3636
const parts = CC_REGEX.exec(message);
3737
if ( ! parts ) return null;
@@ -45,9 +45,12 @@ const types = {
4545
feat: {
4646
label: 'Features'
4747
},
48+
i18n: {
49+
label: 'Translations'
50+
},
4851
fix: {
4952
label: 'Bug Fixes'
50-
}
53+
},
5154
};
5255

5356
const scopes = {
@@ -66,6 +69,9 @@ const scopes = {
6669
gui: {
6770
label: 'GUI'
6871
},
72+
tools: {
73+
ignore: true,
74+
},
6975
};
7076

7177
const scope_aliases = {
@@ -74,6 +80,40 @@ const scope_aliases = {
7480
parsely: 'phoenix',
7581
};
7682

83+
const retro_prefixes_0 = {
84+
i18n: [
85+
'883601142873f10d69c84874499065a7d29af054',
86+
'17145d0be6a9a1445947cc0c4bec8f16a475144c',
87+
'e61039faf409b0ad85c7513b0123f3f2e92ebe32',
88+
'bffa192805216fc17045cd8d629f34784dca7f3f',
89+
'fe5be7f3cf7f336730137293ba86a637e8d8591d',
90+
'78a0acea6980b6d491da4874edbd98e17c0d9577',
91+
'a96abb5793528d0dc56d75f95d771e1dcf5960d1',
92+
'f5a8ee1c6ab950d62c90b6257791f026a508b4e4',
93+
'47ec74f0aa6adb3952e6460909029a4acb0c3039',
94+
'473b6512c697854e3f3badae1eb7b87742954da5',
95+
'8440f566b91c9eb4f01addcb850061e3fbe3afc7',
96+
'92abc9947f811f94f17a5ee5a4b73ee2b210900a',
97+
'cff488f4f4378ca6c7568a585a665f2a3b87b89c',
98+
99+
],
100+
fix: [
101+
'535475b3c36a37e3319ed067a24fb671790dcda3',
102+
],
103+
doc: [
104+
'338004474f078a00608af1d0ebf8a7f9534bad28',
105+
'6c4c73a9e85ff8eb5e7663dcce11f4d1f824032b',
106+
],
107+
};
108+
109+
const retro_prefixes = {};
110+
for ( const prefix in retro_prefixes_0 ) {
111+
for ( const commit_hash of retro_prefixes_0[prefix] ) {
112+
console.log('PREFIX', commit_hash, prefix);
113+
retro_prefixes[commit_hash] = prefix;
114+
}
115+
}
116+
77117
const data = {};
78118
const ensure_scope = name => {
79119
if ( data[name] ) return;
@@ -82,17 +122,22 @@ const ensure_scope = name => {
82122
};
83123

84124
for ( const commit of commits ) {
125+
if ( retro_prefixes.hasOwnProperty(commit.hash) ) {
126+
commit.message = retro_prefixes[commit.hash] + ': ' +
127+
commit.message;
128+
}
85129
const meta = parse_conventional_commit(commit.message);
86130
if ( ! meta ) continue;
87131
let scope = meta.scope ?? 'puter';
88132
while ( scope in scope_aliases ) {
89133
scope = scope_aliases[scope];
90134
}
91-
ensure_scope(scope);
92135
if ( ! scopes[scope] ) {
93136
console.log(commit);
94137
throw new Error(`missing scope: ${scope}`);
95138
}
139+
if ( scopes[scope].ignore ) continue;
140+
ensure_scope(scope);
96141

97142
if ( types.hasOwnProperty(meta.type) ) {
98143
data[scope][meta.type].push({ meta, commit });
@@ -108,7 +153,7 @@ for ( const scope_name in data ) {
108153
const type = types[type_name];
109154
const items = scope[type_name];
110155
if ( items.length == 0 ) continue;
111-
s += `#### ${type.label}\n\n`;
156+
s += `\n#### ${type.label}\n\n`;
112157
for ( const { meta, commit } of items ) {
113158
const shorthash = commit.hash.slice(0,7)
114159
s += `- ${meta.summary} ([${shorthash}](${REPO_URL}/commit/${commit.hash}))\n`;

0 commit comments

Comments
 (0)