diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,20 +1,26 @@
 # Revision history for ghc-stack-profiler
 
+## 0.4.0.0 -- 2026-07-14
+
+Major version number changed to match `ghc-stack-profiler-speedscope`.
+
+- Fixed issue with stack message chunking.
+
 ## 0.3.0.0 -- 2026-06-23
 
-* Support GHC 10.1 [#29](https://github.com/well-typed/ghc-stack-profiler/pull/29)
-  * Adds supports for optional source locations in stack annotations
-* Add eventlog-socket tests to ghc-stack-profiler [#25](https://github.com/well-typed/ghc-stack-profiler/pull/25)
+- Support GHC 10.1 [#29](https://github.com/well-typed/ghc-stack-profiler/pull/29)
+  - Adds supports for optional source locations in stack annotations
+- Add eventlog-socket tests to ghc-stack-profiler [#25](https://github.com/well-typed/ghc-stack-profiler/pull/25)
 
 ## 0.2.0.0 -- 2026-04-10
 
-* Backport stack decoding segmentation fault fix from GHC HEAD [#20](https://github.com/well-typed/ghc-stack-profiler/pull/20)
-* Add support for eventlog-socket lifecycle hooks [#19](https://github.com/well-typed/ghc-stack-profiler/pull/19)
-* Never crash on decoding errors [#12](https://github.com/well-typed/ghc-stack-profiler/pull/12)
-* Use aync for proper thread management [#10](https://github.com/well-typed/ghc-stack-profiler/pull/10)
-* Implement support for eventlog-socket and custom commands [#7](https://github.com/well-typed/ghc-stack-profiler/pull/7)
+- Backport stack decoding segmentation fault fix from GHC HEAD [#20](https://github.com/well-typed/ghc-stack-profiler/pull/20)
+- Add support for eventlog-socket lifecycle hooks [#19](https://github.com/well-typed/ghc-stack-profiler/pull/19)
+- Never crash on decoding errors [#12](https://github.com/well-typed/ghc-stack-profiler/pull/12)
+- Use aync for proper thread management [#10](https://github.com/well-typed/ghc-stack-profiler/pull/10)
+- Implement support for eventlog-socket and custom commands [#7](https://github.com/well-typed/ghc-stack-profiler/pull/7)
 
 ## 0.1.0.0 -- 2025-12-09
 
-* Adds API for sampling the RTS callstack and writing the results to the eventlog.
-* First version. Released on an unsuspecting world.
+- Adds API for sampling the RTS callstack and writing the results to the eventlog.
+- First version. Released on an unsuspecting world.
diff --git a/ghc-stack-profiler.cabal b/ghc-stack-profiler.cabal
--- a/ghc-stack-profiler.cabal
+++ b/ghc-stack-profiler.cabal
@@ -1,6 +1,6 @@
 cabal-version: 3.8
 name: ghc-stack-profiler
-version: 0.3.0.0
+version: 0.4.0.0
 license: BSD-3-Clause
 author: Hannes Siebenhandl, Wen Kokke, Matthew Pickering
 maintainer: hannes@well-typed.com
@@ -17,8 +17,8 @@
   import GHC.Stack.Profiler
 
   main :: IO ()
-  main = 
-    'withRootStackProfiler' True $ \ manager -> 
+  main =
+    'withRootStackProfiler' True $ \ manager ->
       'withStackProfilerForMyThread' manager ('SampleIntervalMs' 10) $ do
         ...
   @
@@ -121,7 +121,7 @@
     containers >=0.6.8 && <0.9,
     ghc-heap >=9.10.1 && <10.2,
     ghc-internal >=9.1001 && <10.200,
-    ghc-stack-profiler-core ==0.3.0.0,
+    ghc-stack-profiler-core >=0.3 && <0.5,
     stm ^>=2.5.3.0 || ^>=2.5.0.0,
     text >=2 && <2.2,
 
diff --git a/src/GHC/Internal/ClosureTypes/Compat.hs b/src/GHC/Internal/ClosureTypes/Compat.hs
--- a/src/GHC/Internal/ClosureTypes/Compat.hs
+++ b/src/GHC/Internal/ClosureTypes/Compat.hs
@@ -1,12 +1,10 @@
-{-# LANGUAGE CPP  #-}
+{-# LANGUAGE CPP #-}
+
 module GHC.Internal.ClosureTypes.Compat (
-  ClosureType(..),
-#if !MIN_VERSION_ghc_internal(9,1400,0)
-  pattern ANN_FRAME,
-#endif
+  ClosureType (ANN_FRAME, ..),
 ) where
 
-import GHC.Internal.ClosureTypes
+import GHC.Internal.ClosureTypes (ClosureType (..))
 
 #if !MIN_VERSION_ghc_internal(9,1400,0)
 -- Unmatchable, as ANN_FRAME is a stack frame type introduced in GHC 9.14
diff --git a/src/GHC/Stack/Annotation/Experimental/Compat.hs b/src/GHC/Stack/Annotation/Experimental/Compat.hs
--- a/src/GHC/Stack/Annotation/Experimental/Compat.hs
+++ b/src/GHC/Stack/Annotation/Experimental/Compat.hs
@@ -14,28 +14,28 @@
 #endif
 import GHC.Stack.Types (SrcLoc)
 
-
 #if !MIN_VERSION_ghc_internal(9,1400,0)
 data SomeStackAnnotation where
   SomeStackAnnotation :: forall a. (Typeable a) => a -> SomeStackAnnotation
 #endif
 
-
 showStackAnnotationLocation :: SomeStackAnnotation -> Maybe SrcLoc
-showStackAnnotationLocation =
 #if MIN_VERSION_ghc_internal(9,1402,0)
+showStackAnnotationLocation =
   stackAnnotationSourceLocation
 #else
+showStackAnnotationLocation =
   \ _ann -> Nothing
 #endif
 
-
 showStackAnnotationDescription :: SomeStackAnnotation -> String
-showStackAnnotationDescription =
 #if MIN_VERSION_ghc_internal(9,1402,0)
+showStackAnnotationDescription =
   displayStackAnnotationShort
 #elif MIN_VERSION_ghc_internal(9,1400,0)
+showStackAnnotationDescription =
   displayStackAnnotation
 #else
+showStackAnnotationDescription =
   \ _ann -> "showStackAnnotationLocation: Impossible, no value should be created with ghc-internal < 9.1400"
 #endif
