Skip to content

Commit 62c40a9

Browse files
author
Andrew Welch
committed
Merge branch 'release/1.2.21' into v1
2 parents ce100b2 + bd5a721 commit 62c40a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+8997
-674
lines changed

.gitattributes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Do not export those files in the Composer archive (lighter dependency)
2+
/.craftplugin export-ignore
3+
/.gitattributes export-ignore
4+
/.github/ export-ignore
5+
/.gitignore export-ignore
6+
/.scrutinizer.yml export-ignore
7+
/codeception.yml export-ignore
8+
/composer.lock export-ignore
9+
/buildchain/ export-ignore
10+
/docs/ export-ignore
11+
/src/web/assets/public/
12+
/src/web/assets/src/
13+
/tests/ export-ignore
14+
15+
# Auto detect text files and perform LF normalization
16+
* text=auto

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @khalwat

CHANGELOG.md

Lines changed: 106 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,211 +1,309 @@
11
# Transcoder Changelog
22

3+
## 1.2.21 - 2022.01.12
4+
5+
### Added
6+
7+
* Add `.gitattributes` & `CODEOWNERS`
8+
* Add linting to build
9+
* Add compression of assets
10+
* Add bundle visualizer
11+
312
## 1.2.20 - 2022.01.04
13+
414
### Changed
15+
516
* Switch to Node 16 via `16-alpine` Docker tag by default
617
* Update to Tailwind CSS `^3.0.0`
718
* Changed buildchain to Vite from webpack 5
819

920
### Fixed
21+
1022
* Use `${CURDIR}` instead of `pwd` to be cross-platform compatible with Windows WSL2
1123

1224
## 1.2.19 - 2021.05.16
25+
1326
### Changed
27+
1428
* Refactor to better directory structure
1529
* Use Textlint for the documentation
1630

1731
## 1.2.18 - 2021.05.14
32+
1833
### Changed
34+
1935
* Updated to work with `craft-vite-plugin` version `^1.0.4`
2036

2137
## 1.2.17 - 2021.05.09
38+
2239
### Changed
40+
2341
* Switched buildchain to Vite & `craft-vite-plugin`
2442
* Switched documentation system to VitePress
2543

2644
## 1.2.16 - 2021.04.06
45+
2746
### Added
47+
2848
* Added `make update` to update NPM packages
2949
* Added `make update-clean` to completely remove `node_modules/`, then update NPM packages
3050

3151
### Changed
52+
3253
* More consistent `makefile` build commands
3354
* Use Tailwind CSS `^2.1.0` with JIT
3455
* Move settings from the `composer.json` “extra” to the plugin main class
3556
* Move the manifest service registration to the constructor
3657
* Remove deprecated ManifestController
3758

3859
## 1.2.15 - 2021.03.03
60+
3961
### Changed
62+
4063
* Dockerized the buildchain, using `craft-plugin-manifest` for the webpack HMR bridge
4164

4265
## 1.2.14 - 2021.01.03
66+
4367
### Changed
68+
4469
* Changed how we detect whether the transcoding processing is running, so it will work with Alpine Linux
4570

4671
## 1.2.13 - 2020.12.21 [CRITICAL]
72+
4773
### Security
48-
* Added a `$enableDownloadFileEndpoint` settings/config option (set to `false` by default) to control whether the download files action is publicly accessible
74+
75+
* Added a `$enableDownloadFileEndpoint` settings/config option (set to `false` by default) to control whether the
76+
download files action is publicly accessible
4977
* The download files action now strips any relative paths from the incoming request
50-
* The download files action now restricts downloads to Craft's [allowedFileExtensions](https://craftcms.com/docs/3.x/config/config-settings.html#allowedfileextensions)
78+
* The download files action now restricts downloads to
79+
Craft's [allowedFileExtensions](https://craftcms.com/docs/3.x/config/config-settings.html#allowedfileextensions)
5180

5281
### Changed
82+
5383
* Moved the CSS/JS buildchain over to webpack 5
5484

5585
## 1.2.12 - 2020.04.06
86+
5687
### Added
88+
5789
* Added `seekInSecs` option to audio encoding options
5890

5991
### Changed
92+
6093
* Updated to latest npm dependencies via `npm audit fix` for both the primary app and the docs
6194

6295
## 1.2.11 - 2020.03.11
96+
6397
### Added
98+
6499
* Transcoder now requires Craft CMS 3.1.0 or later
65100
* Both aliases and environment variables are now supported where previously only aliases were
66101

67102
### Fixed
103+
68104
* Only swap in a thumbnail for videos if a thumbnail is successfully returned
69105

70106
## 1.2.10 - 2020.02.25
107+
71108
### Added
109+
72110
* Added `-vn` flag for audio transcoding to remove video tracks on transcoded audio
73111

74112
## 1.2.9 - 2020.01.27
113+
75114
### Fixed
115+
76116
* Fixed an issue if `ffprobe` isn't installed
77117
* Handle the case of empty or malformed status data from `ffprobe` better
78118

79119
## 1.2.8 - 2019.11.12
120+
80121
### Changed
122+
81123
* Fixed more issues with the `synchronous` option
82124

83125
## 1.2.7 - 2019.11.12
126+
84127
### Changed
128+
85129
* Fixed issues with the `synchronous` and `stripMetadata` options
86130

87131
## 1.2.6 - 2019.11.11
132+
88133
### Added
134+
89135
* Added trimming to audio transcoding
90136

91137
### Changed
138+
92139
* Updated to latest npm dependencies via `npm audit fix`
93140
* Changed `.first()``.one()` in the docs
94141

95142
## 1.2.5 - 2019.05.23
143+
96144
### Changed
145+
97146
* Updated build system
98147

99148
## 1.2.4 - 2019.04.22
149+
100150
### Changed
151+
101152
* Updated Twig namespacing to be compliant with deprecated class aliases in 2.7.x
102153

103154
## 1.2.3 - 2019.03.20
155+
104156
### Changed
157+
105158
* Allow setting threads in config
106-
* Added a "generate" (bool) parameter to `getVideoUrl()`, just like `getVideoThumbnailUrl()`, to optionally skip encoding
107-
* Added return value false to `getVideoThumbnailUrl()` when `ffmpeg` is executed which prevents a URL is always returned, also in case of `ffmpeg` fails to run/create the thumbnail
108-
* Added new config parameter "createSubfolder" (boolean) to create the same subfolders that are defined in the upload target paths of the asset.
159+
* Added a "generate" (bool) parameter to `getVideoUrl()`, just like `getVideoThumbnailUrl()`, to optionally skip
160+
encoding
161+
* Added return value false to `getVideoThumbnailUrl()` when `ffmpeg` is executed which prevents a URL is always
162+
returned, also in case of `ffmpeg` fails to run/create the thumbnail
163+
* Added new config parameter "createSubfolder" (boolean) to create the same subfolders that are defined in the upload
164+
target paths of the asset.
109165
* Added config option to prevent cache clearing
110166
* Fixed an issue where `getFileInfo()` would throw an error if `null` was returned
111167
* Fixed an error where certain types of video streams would cause the encoder to throw an exception
112168

113169
## 1.2.2 - 2018.10.05
170+
114171
### Changed
172+
115173
* Updated build process
116174

117175
## 1.2.1 - 2018.08.23
176+
118177
### Changed
178+
119179
* Fixed namespacing issues
120180

121181
## 1.2.0 - 2018.08.22
182+
122183
### Added
184+
123185
* Added the ability to encode to animated `.gif` files
124186
* Added multiple output paths and URLs for different media types
125187

126188
### Changed
189+
127190
* Moved to a modern webpack build config for the Control Panel
128191
* Added install confetti
129192

130193
## 1.1.3 - 2018.03.02
194+
131195
### Changed
196+
132197
* Fixed deprecation errors from Craft CMS 3 RC13
133198

134199
## 1.1.2 - 2018.02.06
200+
135201
### Changed
202+
136203
* Switched video thumbnail generation to use `EVENT_GET_THUMB_PATH`
137204
* Transcoder now requires Craft CMS 3 RC 9 or later
138205

139206
## 1.1.1 - 2018.02.03
207+
140208
### Changed
209+
141210
* Only generate a thumbnail when we're actually asked to do so via `$generate1`
142211

143212
## 1.1.0 - 2018.02.02
213+
144214
### Added
215+
145216
* Transcoder now supports the transcoding of remote video & audio files
146217
* Added the ability to generate a thumbnail for videos in the Control Panel Assets index
147218

148219
### Changed
220+
149221
* Cleaned up the exception handling
150222

151223
## 1.0.11 - 2018.02.01
224+
152225
### Added
226+
153227
* Renamed the composer package name to `craft-transcoder`
154228

155229
## 1.0.10 - 2018.01.29
230+
156231
### Added
232+
157233
* Added support for Yii2 aliases for `transcoderPath` & `transcoderUrl` settings in `config.php`
158234

159235
### Changed
236+
160237
* Changed the default `config.php` to use `@webroot` and `@web` Yii2 aliases
161238

162239
## 1.0.9 - 2018.01.25
240+
163241
### Changed
242+
164243
* Handle Asset Volumes that use aliases
165244
* Updated DocBlock comments
166245

167246
## 1.0.8 - 2017.12.06
247+
168248
### Changed
249+
169250
* Updated to require craftcms/cms `^3.0.0-RC1`
170251

171252
## 1.0.7 - 2017.08.05
253+
172254
### Changed
255+
173256
* Craft 3 beta 23 compatibility
174257

175258
## 1.0.6 - 2017.07.15
259+
176260
### Changed
261+
177262
* Craft 3 beta 20 compatibility
178263

179264
## 1.0.5 - 2017.03.24
265+
180266
### Changed
267+
181268
* `hasSettings` -> `hasCpSettings` for Craft 3 beta 8 compatibility
182269
* Added Craft 3 beta 8 compatible settings
183270
* Modified config service calls for Craft 3 beta 8
184271

185272
## 1.0.4 - 2017.03.12
273+
186274
### Added
275+
187276
- Added `craft/cms` as a composer dependency
188277
- Added code inspection typehinting for the plugin & services
189278

190279
### Changed
280+
191281
- Code refactor/cleanup
192282

193283
## 1.0.3 - 2017.03.11
284+
194285
### Added
286+
195287
- Use `php-shellcommand` to allow for proper execution on Windows & Unix servers
196288

197289
### Changed
290+
198291
- Minor code cleanup
199292

200293
## 1.0.2 - 2017.03.07
294+
201295
### Added
296+
202297
- Added a summary option to `getFileInfo()`
203298

204299
### Changed
300+
205301
- Refactored the `config.php` options to be more consistent
206302

207303
## 1.0.1 - 2017.03.06
304+
208305
### Added
306+
209307
- Added `height` and `width` options for resizing the videos
210308
- Added an `aspectRatio` option to control how aspect ratio scaling is done
211309
- Added a `letterboxColor` option
@@ -219,8 +317,11 @@
219317
- Transcoder caches can be cleared via the ClearCaches utility
220318

221319
### Fixed
320+
222321
- Fixed some issues with the lockfile naming
223322

224323
## 1.0.0 - 2017.03.05
324+
225325
### Added
326+
226327
- Initial release

buildchain/.eslintignore

Whitespace-only changes.

buildchain/.eslintrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"root": true,
3+
"parser": "vue-eslint-parser",
4+
"parserOptions": {
5+
"parser": "@typescript-eslint/parser",
6+
"ecmaVersion": 2020,
7+
"sourceType": "module"
8+
},
9+
"rules": {
10+
"no-undef": "off"
11+
},
12+
"env": {
13+
"browser": true,
14+
"amd": true,
15+
"node": true
16+
},
17+
"plugins": [
18+
"@typescript-eslint"
19+
],
20+
"extends": [
21+
"eslint:recommended",
22+
"plugin:@typescript-eslint/recommended",
23+
"plugin:vue/vue3-recommended"
24+
]
25+
}

buildchain/.stylelintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": [
3+
"stylelint-config-recommended",
4+
"stylelint-config-standard-scss",
5+
"stylelint-config-recommended-vue"
6+
],
7+
"rules": {
8+
"at-rule-no-unknown": [ true, {
9+
"ignoreAtRules": [
10+
"apply",
11+
"extends",
12+
"screen",
13+
"responsive",
14+
"tailwind"
15+
]
16+
}],
17+
"block-no-empty": null
18+
}
19+
}

0 commit comments

Comments
 (0)