Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 03 Jan 07:45
· 8 commits to main since this release

⚠ BREAKING CHANGES

  • The package on NuGet.org has changed to LinqToOneNote.
  • removed support for netstandard2.0
  • renamed:
    • namespace Odotocodot.OneNote.Linq to LinqToOneNote.
    • OneNoteApplication -> OneNote
    • Traverse -> Descendants
    • GetPages -> GetAllPages
    • Notebook.Nickname -> Notebook.DisplayName to better illustrate what it represents.
    • GetUnfiledNotesSection -> GetDefaultNotesLocation to better illustrate what the method does.
    • OpenInOneNote -> Open
    • Page.Section -> Page.Parent
    • OneNoteNotebook -> Notebook
    • OneNoteSectionGroup -> SectionGroup
    • OneNoteSection -> Section
    • OneNotePage -> Page
    • IOneNoteItem.ID to IOneNoteItem.Id
  • removed RelativePathSeparator
  • removed IOneNoteItem.Notebook and IOneNoteItem.RelativePath
  • CreatePage, CreateSection, CreateSectionGroup and CreateNotebook now return their respective instance. Replaced the open parameter of type bool to become type OpenMode. CreatePage will now throw if the section parameter is null.
  • combined IsNotebookNameValid, IsSectionGroupNameValid,IsSectionNameValid into IsValidName<T>. Moved InvalidNotebookChars, InvalidSectionGroupChars and InvalidSectionChars to their respecting class using INameInvalidCharacters
  • removed UnfiledNotes as they are actually the default notes section (cbd745d)
  • removed OneNote from class names (48bf76b)
  • removed obsolete code (c15c26a)
  • renamed Notebook.Nickname to Notebook.DisplayName (57d2c0c)
  • renamed project to LinqToOneNote (d06a997)
  • updated invalid name checking with IsValidName<T> (82556b1)
  • updated partial hierarchy methods (7b55256)

Features

  • added GetRelativePath extension method (1678c14)
  • added Open overload that takes an string id (2337774)
  • added TryGetNotebook extension method (90f6c20)
  • added UpdateDescendants method to OneNote.Partial (2439fff)
  • added extension method to delete or close OneNote items (26a0bee)
  • added extension methods for renaming, deleting, closing notebooks, and creating items (4591d6e)
  • added LINQ extensions for ancestor and sibling retrieval methods (Ancestors, AfterSelf and BeforeSelf) (467403c)
  • added option for custom separator to GetRelativePath (6248a9d)
  • added option to create a notebook in a user specified directory (c6f46bb)
  • added option to open items in a new window (7f0d47e)
  • added retry when getting trying to get COM object (625a9d6)
  • added support for OpenSections and UnfiledNotes (1fe03a2)
  • added support for closing notebooks (OneNote.CloseNotebook) (110ada9)
  • added support for deleting items (OneNote.DeleteItem) (5a97e1e)
  • added support for partial hierarchy parsing (8b5f32f)
  • added support for renaming items (OneNote.RenameItem) (6160d88)
  • improved support for relative path on a partial hierarchy (e15f185)
  • improved com object handling, now their are options: manual, init, and wrap (eb50cff)
  • created OneNoteItemEqualityComparer for id comparison (5224638)
  • Create item methods now return an instance of the class (fffc389)
  • updated to .NET 9 (3692e6e)

Bug Fixes

  • fixed Page.Created format (5188864)