langgraph-checkpoint-postgres 1.0.8__tar.gz → 1.0.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langgraph-checkpoint-postgres
3
- Version: 1.0.8
3
+ Version: 1.0.9
4
4
  Summary: Library with a Postgres implementation of LangGraph checkpoint saver.
5
5
  Home-page: https://www.github.com/langchain-ai/langgraph
6
6
  License: MIT
@@ -229,7 +229,8 @@ class BasePostgresSaver(BaseCheckpointSaver[str]):
229
229
 
230
230
  def _dump_metadata(self, metadata: CheckpointMetadata) -> str:
231
231
  serialized_metadata = self.jsonplus_serde.dumps(metadata)
232
- return serialized_metadata.decode()
232
+ # NOTE: we're using JSON serializer (not msgpack), so we need to remove null characters before writing
233
+ return serialized_metadata.decode().replace("\\u0000", "")
233
234
 
234
235
  def get_next_version(self, current: Optional[str], channel: ChannelProtocol) -> str:
235
236
  if current is None:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "langgraph-checkpoint-postgres"
3
- version = "1.0.8"
3
+ version = "1.0.9"
4
4
  description = "Library with a Postgres implementation of LangGraph checkpoint saver."
5
5
  authors = []
6
6
  license = "MIT"