diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,9 @@
 # Changelog for unliftio
 
+## 0.2.8.1
+
+* Support for `stm-2.5.0.0`
+
 ## 0.2.8.0
 
 * Add 'UnliftIO.Memoize'
diff --git a/src/UnliftIO/STM.hs b/src/UnliftIO/STM.hs
--- a/src/UnliftIO/STM.hs
+++ b/src/UnliftIO/STM.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
 -- | Lifted version of "Control.Concurrent.STM"
 --
 -- @since 0.2.1.0
@@ -84,6 +85,10 @@
 import Control.Monad.IO.Unlift
 import System.Mem.Weak (Weak)
 
+#if MIN_VERSION_stm(2, 5, 0)
+import GHC.Natural (Natural)
+#endif
+
 -- | Lifted version of 'STM.atomically'
 --
 -- @since 0.2.1.0
@@ -165,5 +170,9 @@
 -- | Lifted version of 'STM.newTBQueueIO'
 --
 -- @since 0.2.1.0
+#if MIN_VERSION_stm(2, 5, 0)
+newTBQueueIO :: MonadIO m => Natural -> m (TBQueue a)
+#else
 newTBQueueIO :: MonadIO m => Int -> m (TBQueue a)
+#endif
 newTBQueueIO = liftIO . STM.newTBQueueIO
diff --git a/unliftio.cabal b/unliftio.cabal
--- a/unliftio.cabal
+++ b/unliftio.cabal
@@ -4,10 +4,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 943e82967e90e314577381f82ab9a07663e77328d1364a19289e0c5637e3f2d6
+-- hash: b929fccb27c59fc9bc0f46c3f81f101436a852090cd8bc99591e2a71d53e65f1
 
 name:           unliftio
-version:        0.2.8.0
+version:        0.2.8.1
 synopsis:       The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)
 description:    Please see the documentation and README at <https://www.stackage.org/package/unliftio>
 category:       Control
