Renovate Bot
e0551bd32e
Update dependency date-fns to v2.28.0
2021-12-28 16:35:23 +00:00
Renovate Bot
86d5d4b868
Update dependency express to v4.17.2
2021-12-17 05:58:56 +00:00
Sam Lord
b014df7b21
Published new versions
...
- @tryghost/adapter-manager@0.2.26
- @tryghost/errors@1.2.0
- @tryghost/image-transform@1.0.26
- @tryghost/limit-service@1.0.8
- @tryghost/minifier@0.1.9
- @tryghost/mw-error-handler@0.1.1
- @tryghost/package-json@1.0.14
- @tryghost/release-utils@0.7.9
- @tryghost/session-service@0.1.36
2021-12-14 14:24:31 +00:00
Sam Lord
6a5ea251a5
Fix usage of member function for errors
...
no issue
2021-12-14 14:07:07 +00:00
Sam Lord
cda07b2009
Replace stack member with a util function
...
no issue
Will allow the use of `prepareStackForUser` everywhere that the latest @tryghost/errors is used
2021-12-14 12:03:32 +00:00
Sam Lord
8455101b27
Published new versions
...
- @tryghost/mw-error-handler@0.1.0
2021-12-07 18:43:00 +00:00
Sam Lord
4ef7c974a3
Add @tryghost/mw-error-handler
...
refs: https://github.com/TryGhost/Toolbox/issues/137
Package includes same logic as was in the Ghost codebase but needs Sentry injected
2021-12-07 18:40:46 +00:00
Sam Lord
bdcd205791
Published new versions
...
- @tryghost/adapter-manager@0.2.25
- @tryghost/errors@1.1.1
- @tryghost/image-transform@1.0.25
- @tryghost/limit-service@1.0.7
- @tryghost/minifier@0.1.8
- @tryghost/package-json@1.0.13
- @tryghost/release-utils@0.7.8
- @tryghost/session-service@0.1.35
2021-12-06 16:53:49 +00:00
Sam Lord
976a232dc0
Add ConflictError (HTTP 409) to @tryghost/errors
...
no issue
2021-12-06 16:51:20 +00:00
Sam Lord
90e6e8b37d
Published new versions
...
- @tryghost/bootstrap-socket@0.2.15
- @tryghost/job-manager@0.8.17
2021-12-06 11:28:22 +00:00
Sam Lord
565790083e
job-manager should support logging to parent process
...
refs: https://github.com/TryGhost/Toolbox/issues/146
2021-12-06 11:27:44 +00:00
Sam Lord
c4009fd4cf
Published new versions
...
- @tryghost/bootstrap-socket@0.2.14
- @tryghost/job-manager@0.8.16
2021-12-02 13:45:25 +00:00
Sam Lord
a98ae3734f
@tryghost/job-manager: Switch to @tryghost/logging from injected argument
...
refs: https://github.com/TryGhost/Toolbox/issues/146
2021-12-02 13:40:02 +00:00
Sam Lord
cd9e295ec8
@tryghost/bootstrap-socket: Switch to @tryghost/logging from injected arg
...
refs: https://github.com/TryGhost/Toolbox/issues/146
2021-12-02 12:35:36 +00:00
Sam Lord
e1cc803ca3
Published new versions
...
- @tryghost/adapter-manager@0.2.24
- @tryghost/errors@1.1.0
- @tryghost/image-transform@1.0.24
- @tryghost/limit-service@1.0.6
- @tryghost/minifier@0.1.7
- @tryghost/package-json@1.0.12
- @tryghost/release-utils@0.7.7
- @tryghost/session-service@0.1.34
2021-12-01 17:29:28 +00:00
Sam Lord
d8ee09d0fa
@tryghost/errors Add stack related functions
...
refs: https://github.com/TryGhost/Toolbox/issues/147
Correctly prepares the stack when wrapping another error, and adds a new method on errors to create an error which can be shown to the user (i.e. remove the stack trace in production)
2021-12-01 17:28:42 +00:00
Sam Lord
e66cba66f1
Published new versions
...
- @tryghost/adapter-manager@0.2.23
- @tryghost/errors@1.0.4
- @tryghost/image-transform@1.0.23
- @tryghost/limit-service@1.0.5
- @tryghost/minifier@0.1.6
- @tryghost/package-json@1.0.11
- @tryghost/release-utils@0.7.6
- @tryghost/session-service@0.1.33
2021-11-30 17:12:21 +00:00
Sam Lord
d240eb7d4c
Legacy error support in @tryghost/errors
...
no issue
2021-11-30 17:11:47 +00:00
Sam Lord
8ae35ccfa1
Published new versions
...
- @tryghost/adapter-manager@0.2.22
- @tryghost/errors@1.0.3
- @tryghost/image-transform@1.0.22
- @tryghost/limit-service@1.0.4
- @tryghost/minifier@0.1.5
- @tryghost/package-json@1.0.10
- @tryghost/release-utils@0.7.5
- @tryghost/session-service@0.1.32
2021-11-30 16:37:15 +00:00
Sam Lord
c5acbeae31
Add missing dependency from @tryghost/errors
2021-11-30 16:36:49 +00:00
Sam Lord
6576313a3b
Published new versions
...
- @tryghost/adapter-manager@0.2.21
- @tryghost/errors@1.0.2
- @tryghost/image-transform@1.0.21
- @tryghost/limit-service@1.0.3
- @tryghost/minifier@0.1.4
- @tryghost/package-json@1.0.9
- @tryghost/release-utils@0.7.4
- @tryghost/session-service@0.1.31
2021-11-30 14:41:30 +00:00
Sam Lord
932ba4e969
@tryghost/errors: Added NoContentError
...
refs: https://github.com/TryGhost/Toolbox/issues/147
Used in Ghost as a GhostError construction
2021-11-30 14:23:06 +00:00
Sam Lord
ac6cbf3d58
Published new versions
...
- @tryghost/adapter-manager@0.2.20
- @tryghost/errors@1.0.1
- @tryghost/image-transform@1.0.20
- @tryghost/job-manager@0.8.15
- @tryghost/limit-service@1.0.2
- @tryghost/minifier@0.1.3
- @tryghost/package-json@1.0.8
- @tryghost/release-utils@0.7.3
- @tryghost/session-service@0.1.30
2021-11-30 13:59:24 +00:00
Sam Lord
4414857e4d
Fix @tryghost/error utils
...
refs: https://github.com/TryGhost/Toolbox/issues/147
2021-11-30 13:58:33 +00:00
Renovate Bot
6f97bc9063
Update dependency date-fns to v2.27.0
2021-11-30 11:32:47 +00:00
Sam Lord
ffde968c47
Published new versions
...
- @tryghost/adapter-manager@0.2.19
- @tryghost/errors@1.0.0
- @tryghost/image-transform@1.0.19
- @tryghost/job-manager@0.8.14
- @tryghost/limit-service@1.0.1
- @tryghost/minifier@0.1.2
- @tryghost/package-json@1.0.7
- @tryghost/release-utils@0.7.2
- @tryghost/session-service@0.1.29
2021-11-30 11:31:51 +00:00
Sam Lord
ee7b1e4dc6
Combine @tryghost/ignition-errors with @tryghost/errors
...
refs: https://github.com/TryGhost/Toolbox/issues/147
2021-11-30 11:31:10 +00:00
Hannah Wolfe
a5559d44b6
Published new versions
...
- @tryghost/job-manager@0.8.13
- @tryghost/minifier@0.1.1
2021-11-19 12:52:05 +00:00
Hannah Wolfe
0ffeee6712
🐛 Ensured directory exists before attempting write
...
- Currently, nothing happens if the file doesn't exist, the error is swallowed
- This module should ensure the directory exists at the point of write, else Ghost has to do too much
- TODO: improve the testing and error handling here as well
2021-11-19 12:50:54 +00:00
Renovate Bot
78559033cd
Update dependency date-fns to v2.26.0
2021-11-19 08:48:53 +00:00
Sam Lord
57d3097c2a
Published new versions
...
- @tryghost/mw-update-user-last-seen@0.1.1
2021-11-17 10:39:36 +00:00
Sam Lord
b6074c08f6
Empty change for version bump
...
no issue
2021-11-17 10:38:50 +00:00
Sam Lord
d931c9cf38
Published new versions
...
- @tryghost/mw-update-user-last-seen@0.1.0
2021-11-16 15:54:46 +00:00
Sam Lord
a92c61ab49
Add @tryghost/mw-update-user-last-seen
...
no issue
2021-11-16 15:48:52 +00:00
Naz
a5f304d9a7
Published new versions
...
- @tryghost/constants@1.0.0
2021-11-05 18:15:59 +04:00
Naz
1b15cd0f45
Added files url prefix
...
refs https://github.com/TryGhost/Toolbox/issues/114
- This new URL prefix is needed for generic files stored in Ghost
2021-11-05 18:14:36 +04:00
Daniel Lockyer
d03f9b4e90
Published new versions
...
- @tryghost/image-transform@1.0.18
- @tryghost/job-manager@0.8.12
2021-11-05 12:03:16 +00:00
Daniel Lockyer
eef85bba90
Disabled Sharp's internal cache to improve memory usage
...
refs https://sharp.pixelplumbing.com/api-utility#cache
- Sharp has a 50MB cache by default, used within libvips, to increase
the performance of transforming images
- this isn't relevant to us because we should never be optimizing the
same image as we check if the optimized image already exists
- I presume there is also some extra overhead of using the cache because
the memory doesn't seem to grow by 50MB
- the memory usage comparison in Ghost is pretty drastic - uploading 10
images in serial w/ jemalloc:
- with cache (default) = peak of 480MB, settles down to 330MB
- disabling cache = peak of 270MB, settles down to 161MB
- this commit disables the cache
- also adds stubbing for the function in tests
2021-11-05 11:59:39 +00:00
Renovate Bot
5872147193
Update dependency @sinonjs/fake-timers to v8.1.0
2021-11-03 14:32:11 +00:00
Hannah Wolfe
e7f02da203
Published new versions
...
- @tryghost/minifier@0.1.0
2021-11-03 14:30:54 +00:00
Hannah Wolfe
5132b89aee
Updated yarn test c8 command
...
- Since I started this package, our default command has changed to include cobertura reports for codecov
2021-11-03 14:27:39 +00:00
Hannah Wolfe
2a5d7f225c
Reworked minifier to have 100% coverage
...
- As a library, minifier should be subject to 100% coverage
- minor change to the code combining globbing and file reading into a single function for error handling any case where the files can't be found or read
- we could do more fine grained errors here, but that seems unnecessary given that the usecase is internal, not for user files at the moment
- added error case tests to capture all the uncovered lines
2021-11-03 14:25:02 +00:00
Hannah Wolfe
19383f27f7
Switched uglify for terser + bugfixes
...
- Uglify was really slow and clunky, so replaced with terser which is fast and simple
- Ensured test cleanup works properly so we can be sure about the state of files during tests
- Changed the output from being the absolute path to just the "dest" value, as that is much more useful as absolute paths include local machine path names
- Fixed async/await issue that got the whole thing working 100%
2021-11-03 14:19:17 +00:00
Hannah Wolfe
03b1e9c3bd
Minifier initial version
...
- wired up a basic minification package
- accepts config for css or js files and can concat and minify them into a single file for each type
- this will be used for generating merged css and js files for various cards, controlled by theme config
2021-11-03 14:16:49 +00:00
Naz
27cc7a06cb
Published new versions
...
- @tryghost/limit-service@1.0.0
2021-10-26 15:52:50 +04:00
Naz
0b8d0feb87
Updated JSDocs for limit-service module
...
no issue
2021-10-26 15:51:15 +04:00
Naz
a61bf71a16
Added missing "should" imports
...
no issue
2021-10-26 15:50:43 +04:00
Naz
f6fbfe712a
Added custom formatter to uploads limit
...
refs https://linear.app/tryghost/issue/CORE-121/create-a-video-storage-adapter
- Provides readable bytes -> megabytes conversion for filesize limit
2021-10-26 15:49:59 +04:00
Naz
4172f993d4
Added custom formatter functionality to MaxLimit
...
refs https://linear.app/tryghost/issue/CORE-121/create-a-video-storage-adapter
- Some variables (like file size) would be hard to comprehend with the default formatting. Instead allowed MaxLimit to be configured with a custom formatter
2021-10-26 15:49:26 +04:00
Naz
945e7ab520
Added "uploads" limit type
...
refs https://linear.app/tryghost/issue/CORE-121/create-a-video-storage-adapter
- The limit is here to accomodate file size checks
- An example configuration is in the README
2021-10-26 15:46:36 +04:00