From 91a03a42ffb64a790db9c61529917b2d17c76286 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Tue, 12 Nov 2024 21:56:27 +0000 Subject: [PATCH 1/2] Version bump --- box.json | 4 ++-- changelog.md | 17 +++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/box.json b/box.json index a63dd1c..214667a 100644 --- a/box.json +++ b/box.json @@ -1,7 +1,7 @@ { "name":"Sentry", "author":"Ortus Solutions ", - "version":"2.1.0", + "version":"2.1.1", "slug":"sentry", "type":"modules", "homepage":"https://github.com/coldbox-modules/sentry", @@ -32,7 +32,7 @@ "*.md" ], "scripts":{ - "build:module":"task run taskFile=build/Build.cfc :projectName=`package show slug` :version=`package show version`", + "build:module":"task run taskFile=build/Build.cfc :projectName=`package show slug` :version=`package show version`", "build:docs":"task run taskFile=build/Build.cfc target=docs :projectName=`package show slug` :version=`package show version`", "install:dependencies":"install --force && cd test-harness && install --force", "release":"recipe build/release.boxr", diff --git a/changelog.md b/changelog.md index f1ed9ee..1a95ab6 100644 --- a/changelog.md +++ b/changelog.md @@ -9,25 +9,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.1.0] - 2024-11-12 + ### Added -* Added support for passing through [`traceparent` headers](https://www.w3.org/TR/trace-context/#traceparent-header) and, optionally, traceparent data provided by [the `cbotel` module](https://forgebox.io/view/cbotel) -* Added `onSentryEventCapture` interception in Coldbox context to allow contributions to tags and user info +- Added support for passing through [`traceparent` headers](https://www.w3.org/TR/trace-context/#traceparent-header) and, optionally, traceparent data provided by [the `cbotel` module](https://forgebox.io/view/cbotel) +- Added `onSentryEventCapture` interception in Coldbox context to allow contributions to tags and user info ## [2.0.0] - 2024-06-10 ### Changed -* Update the event structure to the new format Sentry has adopted for their official SDKs -* Don't send cookie and form scope data by default +- Update the event structure to the new format Sentry has adopted for their official SDKs +- Don't send cookie and form scope data by default ### Added -* Add support for the new `/api/{project_id}/envelope` endpoint Sentry has adopted for sending events +- Add support for the new `/api/{project_id}/envelope` endpoint Sentry has adopted for sending events ## [1.0.0] - 2019-05-10 ### Added -* Create first module version +- Create first module version + +[Unreleased]: https://github.com/coldbox-modules/sentry/compare/v2.1.0...HEAD +[2.1.0]: https://github.com/coldbox-modules/sentry/compare/57864cae5969ad38eee194db5a6b2798e91967b3...v2.1.0 From 7a71d90b19c66e96c64be5f31dcfdd2dd5834efb Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Wed, 13 Nov 2024 15:36:59 -0500 Subject: [PATCH 2/2] Make sure Coldbox is a true null for Lucee's empty string behavior --- models/SentryService.cfc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/SentryService.cfc b/models/SentryService.cfc index ec65f9d..d170929 100644 --- a/models/SentryService.cfc +++ b/models/SentryService.cfc @@ -61,12 +61,15 @@ component accessors=true singleton { * Constructor */ function init( struct settings = {} ){ + // make sure coldbox is a true null for Lucee + variables.coldbox = javacast( "null", 0 ); setSettings( arguments.settings ); // If we have settings passed to the init, this is likely not // in WireBox context so just configure now if ( arguments.settings.count() ) { configure(); } + setModuleConfig( { version : "2.0.0" } ); return this;