Trilium.psd1
@{ ModuleVersion = '0.13.0' Guid = '5d0452a3-0c40-4681-b12c-070eccc905dc' CompanyName = 'Patrick Morris ' Copyright = '2024-25 Patrick Morris' Author = 'Patrick Morris' AliasesToExport = '*' RootModule = 'Trilium.psm1' Description = 'Powershell wrapper for the Trilium Notes API' FileList = @('Trilium.psm1', 'Trilium.psd1', 'lib\Markdig.dll', 'lib\Markdig.xml', 'THIRD-PARTY-NOTICES.txt') PowerShellVersion = '7.5' CompatiblePSEditions = @('Core') RequiredAssemblies = @('.\lib\Markdig.dll') PrivateData = @{ PSData = @{ Tags = 'Windows', 'TriliumNext', 'PowerShell', 'PSEdition_Core', 'Trilium' ProjectURI = 'https://github.com/ptmorris1/TriliumNext-Powershell-Module' LicenseURI = 'https://github.com/ptmorris1/TriliumNext-Powershell-Module/blob/main/LICENSE' ReleaseNotes = @' # 📅 Changelog All notable changes to the **TriliumNext-Powershell-Module** will be documented in this file. --- ## [0.13.0] - 2025-07-04 ### Fixed * Fixed module casing to ensure compatibility with Linux filesystems. ### Changed * Updating and improving help documentation. --- ## [0.12.0] - 2025-06-15 ### Added * Added `Remove-TriliumAttachment` function to delete attachments by attachmentId, supporting pipeline input. * Added tab-completion for common label names to `New-TriliumAttribute` when -Type is 'label'. * Added parameters `-IsExpanded`, `-NotePosition`, and `-Prefix` to `New-TriliumNote` for expanded UI control and note placement. * Added `image` note type to `New-TriliumNote`. * Added public function `Format-TriliumHtml` to beautify HTML content with improved header spacing and code block formatting. ### Changed * Updated comment-based help for `New-TriliumAttribute`. * Updated `New-TriliumNoteFile` to use `New-TriliumNote` and `New-TriliumAttribute` functions instead of direct API calls. * Improved `New-TriliumNote` with better HTML formatting and consolidated mime type mapping. * Added `MimeTypeMap.json` file to module's data directory for centralized MIME type mappings across functions. ### Fixed * `New-TriliumAttachment` now attaches with working links added to note content. --- ## [0.11.0] - 2025-06-13 ### Added * Added function `Get-TriliumNoteAttachment` - Retrieves attachments for a specific note. (Undocumented API) * Added `New-TriliumNoteFile` - The File note type can be used to attach various external files such as images, videos or PDF documents. ### Changed * Changed ETAPI authentication header to use 'Bearer' in `Connect-TriliumAuth`. ### Fixed * Fixed code block rendering when using `-Markdown` with `New-TriliumNote`. ### Removed * Removed function `Get-TriliumAttachmentID`, replaced with `Get-TriliumNoteAttachment`. --- ## [0.10.0] - 2025-06-11 ### Added * Added markdig library (v0.41.2) for Markdown to HTML conversion. * Added parameter `-Markdown` to `New-TriliumNote` to convert markdown content to HTML for rendering in text notes. * Added function `Get-TriliumAttachmentID` - Parses all attachment IDs from a note's contents (no direct API equivalent). * Added parameter `-Math` (used with `-Markdown`) to convert math markdown for rendering. * Added function `Create-TriliumAttribute`. * Added type `file` to `New-TriliumNote` for file type notes. --- ## [0.8.0] - 2025-05-27 ### Changed * Updated `Set-TriliumNoteDetails` to improve `-NoteType` parameter handling and type/mime mapping for special note types. * Updated `New-TriliumNote` to include `-NoteType` parameter and unified type/mime mapping logic. --- ## [0.7.0] - 2025-05-25 ### Added * Added function `Get-TriliumInbox` - GET /inbox/{date} * Added function `Get-TriliumDayNote` - GET /calendar/days/{date} * Added function `Get-TriliumWeekNote` - GET /calendar/weeks/{date} (Note: This appears to be broken due to a bug in TriliumNext) * Added function `Get-TriliumMonthNote` - GET /calendar/months/{month} * Added function `Get-TriliumYearNote` - GET /calendar/years/{year} * Added function `Set-TriliumNoteDetails` - PATCH /notes/{noteId} * Added function `Set-TriliumBranch` - PATCH /branches/{branchId} --- ## [0.6.0] - 2025-05-24 ### Added * Added function `Get-TriliumAttachment` - GET /attachments/{attachmentId} * Added function `Get-TriliumAttachmentContent` - GET /attachments/{attachmentId}/content --- ## [0.5.0] - ### Added * Added Markdown option to `Export-TriliumNote`. Default is HTML. * Added and improved some documentation. * Split out functions into their own .ps1 file. ### Changed * Updated and improved some documentation. ### Fixed * Fixed `Export-TriliumNote`. --- ## [0.4.0] - ### Changed * Improved `Connect-TriliumAuth` to use PSCredential object. See documentation for new usage. --- ## [0.3.0] - ### Added * Added check for `/` at the end of base URL. * Added `-SkipCertCheck` switch to ALL functions. ### Changed * Updated `Connect-TriliumAuth` to use `-SkipCertCheck` switch. --- ## [0.2.0] - ### Changed * Fixed parameter sets in `Find-TriliumNote`. `orderBy` and `Limit` must be used together. * Updated/added some documentation. --- ## [0.1.0] - ### Added * Initial release of TriliumNext-Powershell-Module. A command for almost every documented TriliumNext API. --- > 📌 This changelog follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) principles. '@ } } } |