Skip to content

Releases: DeutscheModelUnitedNations/badgeGenerator

1.2.7

06 Mar 21:50
b5164e7

Choose a tag to compare

What's Changed

  • Improve CORS and CSRF security handling for API sessions by @Strehk in #8

Full Changelog: 1.2.6...1.2.7

1.2.6

04 Mar 11:58
e4a2bef

Choose a tag to compare

What's Changed

  • feat: add flag-only PDF generation mode by @Strehk in #7

Full Changelog: 1.2.5...1.2.6

1.2.5

22 Feb 17:43
37e8694

Choose a tag to compare

What's Changed

  • fix: preserve original string values when parsing CSV files by @Strehk in #6

Full Changelog: 1.2.4...1.2.5

1.2.4

22 Feb 15:42
e9e69d2

Choose a tag to compare

What's Changed

  • fix: coerce numeric id values to strings in Zod schema by @Strehk in #5

Full Changelog: 1.2.3...1.2.4

1.2.2

11 Feb 23:46
7a0a1f6

Choose a tag to compare

What's Changed

  • feat: add CSV template generator and country name language selection by @Strehk in #3

Full Changelog: 1.2.1...1.2.2

1.2.1

11 Feb 22:56
0135937

Choose a tag to compare

What's Changed

  • feat: add PDF template support for placards by @Strehk in #2

Full Changelog: 1.1.6...1.2.1

v1.2.0 - Custom Font Support

19 Jan 12:55
c4b9cff

Choose a tag to compare

What's New

Custom Font Support for Special Characters

This release replaces the built-in Helvetica font with the Inter font, enabling proper rendering of Unicode characters in generated PDFs.

Previously: Special characters like Turkish (ş, İ, ğ) and German umlauts (ü, ö, ä, ß) were sanitized to their ASCII equivalents (e.g., "Türkiye" → "Turkiye").

Now: All characters render correctly without sanitization.

Changes

  • Added @pdf-lib/fontkit for custom font embedding
  • Added Inter fonts (Regular + Bold) with full Unicode coverage
  • Updated all PDF generators (placards, vertical badges, horizontal badges)
  • Removed the "Text enthält unzulässige Zeichen" warning

Supported Characters

  • Turkish: ş, İ, ı, ğ, ü, ö, ç
  • German: ü, ö, ä, ß
  • French: é, è, ê, ç, à
  • And many more Latin-extended characters

v1.1.6

19 Jan 12:30
1ecdf0f

Choose a tag to compare

What's Changed

  • fix: Return JSON response for cross-origin session create requests - Cross-origin fetch requests now receive a JSON response with token and url fields instead of a redirect, allowing clients to handle navigation

API Response

JSON requests to /api/session/create now return:

{
  "token": "uuid-here",
  "url": "https://badges.dmun.de/?t=uuid-here"
}

Full Changelog: 1.1.5...1.1.6

v1.1.5

19 Jan 12:26
f24b7ff

Choose a tag to compare

What's Changed

  • feat: Accept JSON in session create endpoint - The /api/session/create endpoint now accepts both application/json and multipart/form-data requests

Full Changelog: 1.1.4...1.1.5

1.1.4

19 Jan 12:12
0f630a5

Choose a tag to compare

What's New

Features

  • Trim border option for badges: Added a user-configurable gray trim border for horizontal and vertical badges. The border is drawn at the exact edge with a thin line, so when cutting along it, the resulting badge is the same size as without the border. The setting appears as a tab selector and persists to localStorage.

Notes

  • The trim border option only appears for badge types (not placards)