Daniel Lockyer
4b1db9d998
Unpinned dependencies
...
- libraries should have dependencies unpinned so we can rely on
lockfiles and reduce duplicates
- this commit unpins a handful of dependencies
2022-03-24 10:31:31 +00:00
Daniel Lockyer
52365c6f99
Published new versions
...
- @tryghost/mw-error-handler@0.1.6
2022-03-24 10:10:26 +00:00
Daniel Lockyer
10e97cad23
Handled unknown errors when preparing user message
...
- in the event we get an unknown error bubble up, we don't handle the
templating on the error name
- `@tryghost/tpl` throws an error because we pass an undefined string:
`Cannot read properties of undefined (reading 'replace')`
- this commit adds handling to fallback to a different user message in
that event so we don't cause a 500 error
2022-03-24 10:06:55 +00:00
Sam Lord
866c746455
Published new versions
...
- @tryghost/database-info@0.2.5
- @tryghost/mw-error-handler@0.1.5
2022-03-21 09:38:38 +00:00
Sam Lord
d65ba072f9
Split prepareError from prepareStack
...
no issue
Change to error handling caused all theme errors to be reported in Sentry, this fix (and a respective fix in Ghost) allows the error to be prepared for sentry before replacing the stack
2022-03-21 09:38:05 +00:00
Renovate Bot
33948553e3
Update dependency knex to v1.0.4
2022-03-14 00:34:06 +00:00
Sam Lord
432ebed27c
Published new versions
...
- @tryghost/job-manager@0.8.21
- @tryghost/mw-error-handler@0.1.4
2022-03-11 10:48:00 +00:00
Sam Lord
51588c6a24
Ensure Sentry is triggered before replacing the stack trace
...
refs: https://github.com/TryGhost/Team/issues/1369
If we prepare the error for users to view before using Sentry, then the error passed to Sentry will have the stack trace removed for production environments.
@tryghost/errors@1.2.5 also made it so that the error is not mutated, but cloned and a new one is returned.
2022-03-11 10:47:26 +00:00
Renovate Bot
10e29837e5
Update dependency @sinonjs/fake-timers to v9.1.1
2022-03-07 01:24:01 +00:00
Daniel Lockyer
3675dbd3d7
Published new versions
...
- @tryghost/database-info@0.2.4
2022-03-02 14:31:00 +01:00
Daniel Lockyer
4acf78a08e
Added basic tests for @tryghost/database-info
...
- these check a few of the imports and static functions
2022-03-02 14:29:16 +01:00
Daniel Lockyer
f77983061e
Refactored exports into a class
...
- following internal feedback, a class with static methods makes more
sense
2022-03-02 14:27:35 +01:00
Daniel Lockyer
ce5da19189
Published new versions
...
- @tryghost/database-info@0.2.3
2022-03-02 12:13:38 +01:00
Daniel Lockyer
032e9db2f1
Updated call signature of database-info lib
...
refs https://github.com/TryGhost/Toolbox/issues/174
- ok, iteration 3 on how this library should work
- 95% of my use cases just need to pass an knex instance and return if
it's mysql/sqlite
- i don't want to have to initialize the class in this library to get
that
- this commit reworks the public interface to return a function with
some simple `is*` functions for those uses cases, or to return the
class otherwise
2022-03-02 12:11:18 +01:00
Daniel Lockyer
3e9c584589
Published new versions
...
- @tryghost/database-info@0.2.2
2022-03-01 16:07:02 +01:00
Daniel Lockyer
d8d77ed0ba
Added connection
method to database info lib
...
- this allows you to pass in a different DB instance than the one that
the library is initialized with
2022-03-01 16:05:27 +01:00
Daniel Lockyer
bb04fc49da
Published new versions
...
- @tryghost/database-info@0.2.1
2022-03-01 09:05:02 +01:00
Daniel Lockyer
52eb3181ee
Fixed undefined variable references
...
- this was missed during the previous refactoring
2022-03-01 09:04:05 +01:00
Daniel Lockyer
3324ffc788
Published new versions
...
- @tryghost/adapter-manager@0.2.28
- @tryghost/bootstrap-socket@0.2.17
- @tryghost/config-url-helpers@0.1.5
- @tryghost/constants@1.0.2
- @tryghost/database-info@0.2.0
- @tryghost/image-transform@1.0.28
- @tryghost/job-manager@0.8.20
- @tryghost/limit-service@1.0.10
- @tryghost/minifier@0.1.11
- @tryghost/moleculer-service-from-class@0.2.23
- @tryghost/mw-error-handler@0.1.3
- @tryghost/mw-session-from-token@0.1.28
- @tryghost/mw-update-user-last-seen@0.1.3
- @tryghost/package-json@1.0.16
- @tryghost/pretty-cli@1.2.24
- @tryghost/promise@0.1.15
- @tryghost/release-utils@0.7.12
- @tryghost/security@0.2.15
- @tryghost/session-service@0.1.38
- @tryghost/settings-path-manager@0.1.4
- @tryghost/vhost-middleware@1.0.22
- @tryghost/zip@1.1.20
2022-03-01 08:40:52 +01:00
Daniel Lockyer
fbc2fc7f65
Altered function usage of @tryghost/database-info
...
refs https://github.com/TryGhost/Toolbox/issues/174
- this exposes `isMySQL` and `isSQLite` functions which can be used
within Ghost to figure out which DB we are using
- also cleans up public properties of the class
2022-03-01 08:37:06 +01:00
Daniel Lockyer
3259994e4f
Added --all
flag to c8 commands
...
refs https://github.com/TryGhost/Toolbox/issues/203
- without `--all`, c8 will ignore files that aren't covered in tests, so
they won't pull the test coverage down
- this means we have artificially high coverage scores
- this commit adds `--all` where previously missing
2022-02-21 12:50:26 +01:00
Renovate Bot
b7af869669
Update dependency express to v4.17.3
2022-02-17 03:48:16 +00:00
Daniel Lockyer
5bdc756dec
Moved @tryghost/errors
to Framework monorepo
...
refs https://github.com/TryGhost/Toolbox/issues/212
- we've moved `@tryghost/errors` to the Framework monorepo so this
commit deletes the remaining files in Utils
2022-02-16 09:14:03 +01:00
Renovate Bot
14f37b4932
Update dependency sharp to ^0.30.0
2022-02-16 07:16:50 +01:00
Renovate Bot
3da7577a3a
Update dependency folder-hash to v4.0.2
2022-02-16 00:22:11 +00:00
Daniel Lockyer
cfb1ded0d0
Published new versions
...
- @tryghost/job-manager@0.8.19
- @tryghost/release-utils@0.7.11
- @tryghost/update-check-service@0.3.1
- @tryghost/vhost-middleware@1.0.21
2022-02-04 14:27:23 +01:00
Daniel Lockyer
81458ab4be
Updated default changelog content if no emojis exist
...
no issue
- taken from internal feedback
2022-02-04 14:25:44 +01:00
Renovate Bot
30527371fc
Update dependency @sinonjs/fake-timers to v9.1.0
2022-02-03 12:13:52 +00:00
Renovate Bot
6885cdbc90
Update dependency @sinonjs/fake-timers to v9
2022-01-28 14:08:17 +00:00
Daniel Lockyer
636d884322
Moved @tryghost/update-check-service
from Core monorepo
...
no issue
- this packages belongs in here and means we can archive the Core repo
once complete
2022-01-20 15:25:00 +00:00
Renovate Bot
d9ebfa3a37
Update Test & linting packages
2022-01-20 15:18:35 +00:00
Renovate Bot
765ac29f2b
Update dependency emoji-regex to v10
2022-01-20 14:48:11 +00:00
Renovate Bot
3df67f8353
Update dependency supertest to v6.2.2
2022-01-18 23:06:28 +00:00
Daniel Lockyer
19d2411f2b
Published new versions
...
- @tryghost/adapter-manager@0.2.27
- @tryghost/bootstrap-socket@0.2.16
- @tryghost/config-url-helpers@0.1.4
- @tryghost/constants@1.0.1
- @tryghost/database-info@0.1.0
- @tryghost/errors@1.2.1
- @tryghost/image-transform@1.0.27
- @tryghost/job-manager@0.8.18
- @tryghost/limit-service@1.0.9
- @tryghost/minifier@0.1.10
- @tryghost/moleculer-service-from-class@0.2.22
- @tryghost/mw-error-handler@0.1.2
- @tryghost/mw-session-from-token@0.1.27
- @tryghost/mw-update-user-last-seen@0.1.2
- @tryghost/package-json@1.0.15
- @tryghost/pretty-cli@1.2.23
- @tryghost/promise@0.1.14
- @tryghost/release-utils@0.7.10
- @tryghost/security@0.2.14
- @tryghost/session-service@0.1.37
- @tryghost/settings-path-manager@0.1.3
- @tryghost/vhost-middleware@1.0.20
- @tryghost/zip@1.1.19
2022-01-18 09:08:09 +00:00
Daniel Lockyer
70ecba06ca
Added @trghost/database-info
package
...
refs https://github.com/TryGhost/Toolbox/issues/175
- this library is a small utility around `knex` that returns info on the
database used - particularly, the version used
- this will initially be used within Ghost but it can be extended to
other databases and projects if needed
2022-01-18 09:06:44 +00:00
Renovate Bot
0f7a0b2964
Update dependency supertest to v6.2.1
2022-01-11 23:51:03 +00:00
Vikas Potluri
ea6d9d42bc
Fixed unhandledRejectionError when fs.stat fails ( #155 )
2022-01-11 12:52:59 +00:00
Renovate Bot
e75bf5e847
Update dependency supertest to v6.2.0
2022-01-11 00:32:14 +00:00
John O'Nolan
fd9bbf906e
2022
2022-01-06 10:17:41 +00:00
John O'Nolan
279ce66e71
2022
2022-01-06 09:52:35 +00:00
Renovate Bot
4c288fa50e
Update dependency c8 to v7.11.0
2021-12-30 16:28:02 +00:00
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
4d4847144f
Published new versions
...
- @tryghost/update-check-service@0.3.0
2021-12-07 10:49:05 +00:00
Sam Lord
d407fd1325
@tryghost/update-check-service: Don't allow logging to be passed in to constructor
...
refs: https://github.com/TryGhost/Toolbox/issues/146
2021-12-07 10:48:01 +00:00