Skip to content

Latest commit

 

History

History
441 lines (301 loc) · 14.3 KB

File metadata and controls

441 lines (301 loc) · 14.3 KB

applesauce-core

5.2.0

Patch Changes

  • be2c857: Add isEventPointerSame and isAddressPointerSame methods

5.1.0

Minor Changes

  • 7f53801: Update mapEventsToStore to support strings (so onlyEvents does not always need to be used)
  • 7f53801: Update mapEventsToTimeline to ignore strings (so onlyEvents does not always need to be used)

5.0.3

Patch Changes

  • ec01ebb: Fix normalizeToProfilePointer method throwing error on bad bech32 string
  • ec01ebb: Fix normalizeToSecretKey throwing on bad bech32 string

5.0.1

Patch Changes

  • 39975fd: Fix ensureHttpURL converting http: URLs into https:
  • 39975fd: Fix ensureWebSocketURL converting ws: URLs to wss:

5.0.0

Major Changes

  • e6a85d5: Remove addCoordinateTag tag operation, use addAddressTag instead
  • e824b26: Remove unused EventStore.deleted and EventStore.updated methods
  • e824b26: Rename getCoordinateFromAddressPointer to getReplaceableAddressFromPointer
  • ba7dfed: Remove IEventStoreSubscriptions interface
  • e6a85d5: Removed removeCoordinateTag tag operation, use removeAddressTag instead
  • c5ad95c: Verify event signatures by default
  • e824b26: Rename parseCoordinate to parseReplaceableAddress
  • e824b26: Update EventStore to take options in constructor
  • ba7dfed: Remove events and replaceableSet methods on event stores
  • 41499f9: Replace experimental eventLoader, replaceableLoader, and addressableLoader with a single eventLoader method
  • e6a85d5: Move event factory to core
  • ba7dfed: Remove IEventStoreModels interface

Minor Changes

  • 82bc46f: Add helper methods for NIP-66 relay discovery
  • fc21438: Add support for NIP-35 torrents
  • eb68078: Bump nostr-tools to 2.19
  • c147899: Support AddressPointers in EventStore.event and EventStore.getEvent
  • 4f749e1: Add encryptSecretKey and decryptSecretKey methods
  • e824b26: Add DeleteManager and SyncDeleteManager classes to correctly handle delete events

Patch Changes

  • acc6e6c: Fix URL helpers throwing on invalid URLs

4.4.2

Patch Changes

  • ccd87cc: Fix performance issue with verifying zap request events

4.4.1

Patch Changes

  • 46910ef: Fix getAddressPointerForEvent throwing for replaceable events

4.4.0

Minor Changes

  • eb8b7df: Add ShareEvent type and isValidShare method
  • 20a4d57: Add support for NIP-91, AND filters

Patch Changes

  • 75ef7d5: Convert event claims to counter to avoid memory leaks
  • fb285c1: Fix getZapPayment and isValidZap throwing when zap includes invalid LN invoice

4.3.0

Patch Changes

  • b287edf: Fix getSharedEventPointer returning event pointers with an empty string relay hint

4.2.0

Minor Changes

  • 363804d: Add createFilterMap helper for creating filter maps from outbox maps
  • 4f978f6: Add filterOptimalRelays RxJS operator

4.1.0

Minor Changes

  • 2f2d3e3: Add removeByFilters to EventStore and AsyncEventStore
  • b066fe3: Add includeFallbackRelays to relay selection operators
  • 2f2d3e3: Add removeByFilters to EventMemory
  • b066fe3: Add setFallbackRelays and removeBlacklistedRelays methods to relay selection helpers

4.0.0

Major Changes

  • fba497a: Rename EventSet to EventMemory
  • fba497a: Add support for custom databases to EventStore
  • 688f126: Add AsyncEventStore and async interfaces for event store and event database
  • 49e6c44: Rename all isLocked methods to isUnlocked for type casting
  • 1a7a4e1: Change EventStore.getByFilters to return NostrEvent[] instead of Set<NostrEvent>

Minor Changes

  • f8fd5ec: Bump nostr-tools to 2.17
  • 7ac7b0c: Add includeMailboxes operator for adding outbox or inbox relays to contacts
  • 7cd3ae6: Add hasNameValueTag helper method
  • e2f0ecc: Add OutboxModel for subscribing to contacts with outbox relays
  • d802905: Add helpers for NIP-78 app data events
  • 7ac7b0c: Add selectOptimalRelays operator for selecting contacts relays (outbox)

Patch Changes

  • 846b877: Fix mergeRelaySets only working with arrays

3.1.0

Minor Changes

  • 3ede999: Bump nostr-tools to 2.15
  • e6d5613: Add a few more wrapped and legacy direct message helpers

Patch Changes

  • d8915de: Fix decodeGroupPointer not normalizing the relay URL

3.0.1

Patch Changes

  • 7e72533: Return "" when event missing "d" tag

3.0.0

Minor Changes

  • 81f6bcb: Add presistEventsToCache helper method for simple way of writing events to a cache
  • 751e42d: Add helpers for NIP-84 highlights
  • 49b9c30: Add NIP-53 stream helper methods
  • a470c69: Add experimental eventLoader, replaceableLoader, and addressableLoader methods to event store
  • a19cda1: Add helpers for NIP-88 poll events
  • f137e71: Add NIP-52 calendar event helpers

Patch Changes

  • 42be033: Fix error from adding addressable event without an identifier (d tag) to event store

2.3.0

Minor Changes

  • dfd4218: Add getSealGiftWrap, getRumorSeals, and getRumorGiftWraps to allow getting parent gift wraps and seals events
  • dfd4218: Add reset method to EventSet
  • dfd4218: Update gift wrap methods to handle rumors wrapped inside multiple gift wraps
  • dfd4218: Add getSealRumor method to handling parsing rumors on seals
  • dfd4218: Add unlockSeal method to manually unlock seals

2.2.0

Minor Changes

  • 5183c3a: Make getEncryptedContentEncryptionMethods throw more describe error when event kind does not support encryption
  • 5183c3a: Add LegacyMessagesGroups model
  • b03e947: Add fallback method to persistEncryptedContent
  • 5183c3a: Add WrappedMessagesGroups model
  • 5183c3a: Add isRumor helper method for gift wraps

2.1.1

Patch Changes

  • 39dce6c: Add m4a file extension to AUDIO_EXT

2.1.0

Minor Changes

  • c58facb: Fix EventSet.getReplaceable using wrong replaceable address
  • b1841ee: Add isEventInList helper

Patch Changes

  • d8ed6ec: Fix typo in name getArticlePublishd -> getArticlePublished

2.0.0

Major Changes

  • 1d28426: Rename "Queries" to "Models"
  • 1d28426: Rename inserts, updates, and removes streams on EventStore to insert# applesauce-core, update# applesauce-core, and `remove# applesauce-core
  • 1d28426: Update EventStore.event and EventStore.replaceable to return syncronous observables that return undefined if an event is not found
  • 856d6f9: Update EventStore.update to return boolean if event was updated
  • 471d3c7: Remove HiddenContentEvent type
  • 1d28426: Rename SingleEventQuery to EventModel
  • 324b960: Remove getPointerFromTag method
  • 856d6f9: Return null from EventStore.add when event is ignored by verifyEvent
  • 0e4e076: Rename setEventContentEncryptionMethod to setEncryptedContentEncryptionMethod
  • 1d28426: Rename listenLatestUpdates to watchEventUpdates

Minor Changes

  • 225f619: Add groupMessageEvents helper
  • 0e4e076: Add setHiddenTagsEncryptionMethod method for setting or enabling hidden tags on event kind
  • b01d842: Add EncryptedContentModel and GiftWrapRumorModel models
  • e0e455a: Add getReactionEventPointer and getReactionAddressPointer helper methods
  • 3bbf7ad: Add watchEventsUpdates operator for listening to updates on arrays of events
  • e0e455a: Add getSharedEventPointer and getSharedAddressPointer helper
  • 0e4e076: Add HiddenTagsKinds set for manage kinds that can have hidden tags
  • 62488e0: Add NIP-40 getExpirationTimestamp and isExpired helpers
  • 0e4e076: Add HiddenTagsKinds set for manage kinds that can have hidden content
  • 4804784: Add NIP-17 wrapped messages helpers
  • 9b165a0: Add ensureWebSocketURL helper
  • 0b74762: Support NIP-89 handler information in getProfileContent
  • abaa340: Add report event helpers
  • 62488e0: Add NIP-70 isProtectedEvent helper
  • 324b960: Bump nostr-tools to 2.13
  • a1578f2: Add NIP-23 article helpers
  • 0e4e076: Add lockGiftWrap method for clearing gift warp cache
  • 0e4e076: Add setHiddenContentEncryptionMethod to set or enable hidden content on event kinds
  • 3bbf7ad: Add GiftWrapsModel with pubkey and optional locked filter
  • e0e455a: Rename parseSharedEvent to getEmbededSharedEvent
  • e0e455a: Add addRelayHintsToPointer helper
  • 85090f7: Allow getDisplayName to take kind 0 profile event and use NIP-19 npub as fallback
  • b01d842: Add encrypted content cache helpers
  • 4804784: Add legacy NIP-04 messages models
  • 0b74762: Add NIP-89 application handler helpers
  • 4804784: Add NIP-17 wrapped messages models
  • a1919cd: Add mapEventsToTimeline operator
  • d52d39a: Add mapEventsToStore operator
  • 7c221e2: Add getProfilePicture helper method
  • e0e455a: Add getReactionEmoji helper

Patch Changes

  • 0e4e076: Fix getHiddenTags trying to parse non-list event kinds
  • 0213ce5: Fix GroupPointer.relay missing protocol
  • 0e4e076: Fix unlockGiftWrap decrypting the content with owners pubkey
  • 8c789b2: Fix hashtags regexp matching hash in URL if it came after a /
  • d505c5f: Use \b in token RegExp instead of \s
  • 60e7ec8: Fix CommentsModel not returning comments for newer versions of replaceable events

1.2.0

Minor Changes

  • ed6ad27: Add mergeBlossomServers method

Patch Changes

  • 7506bf7: Remove leading and trailing whitespace on display names

1.0.0

Major Changes

  • e4d9453: Convert queries to simple methods instead of key, and run fields

Minor Changes

  • 8aa3aea: Add matchMutes and createMutedWordsRegExp methods
  • cb96f33: Add mergeContacts method
  • 1624ca1: Add getRelaysFromList method
  • 1624ca1: Add FavoriteRelays, FavoriteRelaySets, SearchRelays, and BlockedRelays queries
  • cb96f33: Add mergeBookmarks method
  • e548779: Add type field to comment pointers
  • 1624ca1: Add hidden flag to common list helpers
  • cb96f33: Add QueryStore.contacts and QueryStore.mutes methods
  • cb96f33: Add getContacts, getPublicContacts and getHiddenContacts methods
  • cb96f33: Add mergeMutes method
  • cb96f33: Add mergeEventPointers, mergeAddressPointers, and mergeProfilePointers NIP-19 methods

Patch Changes

  • d8dc5c2: Break IEventStore interface into two parts

0.12.1

Patch Changes

  • a3b9585: Fix EventStore.inserts emitting when old replaceable events where added to the store

0.12.0

Minor Changes

  • 6882991: Add generic interface for EventStore
  • e176601: Update unlockHiddenTags to return tags array
  • 06263df: Rename Database.getForFilters to Database.getEventsForFilters
  • 91621b5: Add gift-wrap helper methods
  • 3780d5e: Add setEventContentEncryptionMethod method
  • 91621b5: Add direct message helper methods
  • 06263df: Add blossomServers method to the QueryStore
  • 91621b5: Add hidden content helper methods
  • 0c6251d: Tag events that are added to an EventStore with EventStoreSymbol symbol
  • f92f10c: Add normalizeToPubkey and normalizeToSecretKey NIP-19 helpers
  • 06263df: Add EventStore.getTimeline method

Patch Changes

  • 5e95ed5: Fix bug with EventStore.getAll not handling single filter

0.11.0

Minor Changes

  • 39ec450: Support multiple tag operations in modifyEventTags
  • 34e8f80: Add getSha256FromURL helper
  • 125d24f: Add getReplaceableIdentifier helper
  • b4d3ac9: Add processTags helper
  • 04902fd: Move applesauce-list helpers into core
  • 39f5f06: Add parseSharedEvent helper
  • c732ea0: Add getPicturePostAttachments helper
  • 9d59a56: Add verifyEvent method to EventStore
  • 5923047: Add UserStatusQuery and UserStatusesQuery queries
  • 5923047: Add getUserStatusPointer helper
  • 04902fd: Removed modifyEventTags method
  • a05aa94: Add decodeGroupPointer and encodeGroupPointer helpers
  • 9092aa8: Add getDisplayName helper and mark profiles displayName as deprecated
  • 4dbb248: Change return type of eventStore.events, eventStore.replaceableSet, MultipleEventsQuery, and ReplaceableSetQuery from Map to a plain object
  • 6aeb923: Add parseNIP05Address helper
  • 96d318d: Add mergeRelaySets helper
  • 46fac64: Add handle fallback and thumb when parsing imeta tags
  • d22769e: Add getBlossomServersFromList helper method

Patch Changes

  • 1c35f41: Add require support in node v22

0.10.0

Minor Changes

  • 5882997: Add getContentWarning helper
  • 304c912: Add support for keeping old versions of replaceable events
  • 5882997: Add getZapSplits helper
  • f5be45d: Add helpers for hidden tags
  • 494e934: Add media attachment helpers
  • 1a4176e: Remove createDeleteEvent
  • 304c912: Remove stringifyFilter helper method
  • 88841a4: Add RepliesQuery query
  • 83d7c48: Change queryStore.runQuery to createQuery and to accept query arguments as rest arguments instead of returning new method
  • 494e934: Add CommentsQuery query for NIP-22 comments
  • 8a9beea: Add support for delete events
  • 88841a4: Add isEvent method
  • 375d3da: Add replaceableSet method to event store
  • 7671525: Add getPointerForEvent method
  • ad0cb76: Add NIP-22 comment helpers
  • 32a94cd: Add getPackName and getEmojis for NIP-30 emoji packs

Patch Changes

  • 26264fc: Bump nostr-tools package
  • 93acc43: Use Reflect.has instead of Object.hasOwn
  • e99383c: Fix matchFilter method treating indexable tag filters as AND

0.9.0

Minor Changes

  • a14dbd9: Add isValidZap method
  • 493aee0: Bump nostr-tools to 2.10
  • a14dbd9: Add isValidProfile method
  • 892cd33: Remove nrelay encoding
  • 149625d: Add zap helpers and queries

Patch Changes

  • 81015c4: Fix getZapAddressPointer returning EventPointer

0.8.0

Minor Changes

  • 08d2abe: Add shareLatestValue observable operator for caching queries
  • 0dae7f5: Replace zen-observable with rxjs

Patch Changes

  • 08d2abe: Fix hashtag regexp capturing whitespace before

0.7.0

Minor Changes

  • 7673403: Add size to database
  • d11fbe8: export LRU helper class
  • b96717c: Add getValue observable helper

0.6.0

Minor Changes

  • df7756c: Move mute helpers and queries to applesauce-lists
  • 64c99e7: Add "events" query to event store
  • df7756c: Add update method to event store
  • df7756c: Add tag helpers

0.5.0

Minor Changes

  • b39a005: Move NIP-28 channel helpers to applesauce-channel package
  • ebc5da7: Add promise helpers

0.4.0

Minor Changes

  • ec52c90: Add pointer helpers
  • ec52c90: Add tag helpers
  • ec52c90: Add thread queries and helpers

0.3.0

Minor Changes

  • 5cf2091: Add mute list helpers and queries
  • 5cf2091: Add NIP-28 channel helpers and queries

0.2.0

Minor Changes

  • 220c22d: Handle replaceable and removed events in timelines

Patch Changes

  • 220c22d: Fix bug with timeline using same array