Skip to content

Commit

Permalink
deprecated "prev" property in commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mackuba committed Oct 9, 2024
1 parent 546fcff commit 34afba2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ All properties except `type` may be nil for some message types that aren't relat
Commit messages additionally have:

- `commit` - CID of the commit
- `prev` - CID of the previous commit in that repo
- `operations` - list of operations (usually one)

Handle and Identity messages additionally have:
Expand Down
1 change: 1 addition & 0 deletions lib/skyfall/firehose/commit_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def commit
end

def prev
STDERR.puts "Warning: `prev` property has been deprecated and will be removed in a future version."
@prev ||= @data_object['prev'] && CID.from_cbor_tag(@data_object['prev'])
end

Expand Down

0 comments on commit 34afba2

Please sign in to comment.