From 9774e80c7d9d9d9db4fc05795701ec20961ad46d Mon Sep 17 00:00:00 2001 From: Mounia <74436107+moonayyur@users.noreply.github.com> Date: Tue, 21 May 2024 10:38:50 +0200 Subject: [PATCH 1/2] feat: export map of tag ids to names (#53) --- src/index.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index aa6fc45..115eec9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,6 @@ +import { tagsById as exif } from './tags/exif'; +import { tagsById as gps } from './tags/gps'; +import { tagsById as standard } from './tags/standard'; import TIFFDecoder from './tiffDecoder'; import TiffIfd from './tiffIfd'; import { BufferType, DecodeOptions } from './types'; @@ -17,4 +20,17 @@ function pageCount(data: BufferType): number { return decoder.pageCount; } -export { decodeTIFF as decode, isMultiPage, pageCount, DecodeOptions, TiffIfd }; +const tagNames = { + exif, + gps, + standard, +}; + +export { + decodeTIFF as decode, + isMultiPage, + pageCount, + DecodeOptions, + TiffIfd, + tagNames, +}; From 82923981d3561a4dd9e7902b139059e7a832d469 Mon Sep 17 00:00:00 2001 From: cheminfo-bot <10880445+cheminfo-bot@users.noreply.github.com> Date: Tue, 21 May 2024 10:40:32 +0200 Subject: [PATCH 2/2] chore(main): release 6.1.0 (#54) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 007abe2..f660a4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [6.1.0](https://github.com/image-js/tiff/compare/v6.0.0...v6.1.0) (2024-05-21) + + +### Features + +* export map of tag ids to names ([#53](https://github.com/image-js/tiff/issues/53)) ([9774e80](https://github.com/image-js/tiff/commit/9774e80c7d9d9d9db4fc05795701ec20961ad46d)) + ## [6.0.0](https://github.com/image-js/tiff/compare/v5.0.3...v6.0.0) (2024-04-08) diff --git a/package.json b/package.json index a84b236..d88c8b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tiff", - "version": "6.0.0", + "version": "6.1.0", "description": "TIFF image decoder written entirely in JavaScript", "main": "lib/index.js", "module": "lib-esm/index.js",