Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4 #415

Merged
merged 311 commits into from
Nov 10, 2023
Merged

v4 #415

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
e9c70a9
chore: update npm release message
schoero Jan 14, 2023
65a9c42
chore: update dependencies
schoero Jan 23, 2023
b27136b
style: fix linting issues
schoero Jan 23, 2023
e7af67c
feat(utils): add SCOR utility functions
schoero Mar 6, 2023
0d1ae79
test(utils): improve utils tests
schoero Mar 6, 2023
dd79d7b
chore: update dependencies
schoero Mar 6, 2023
9585fe5
test: add test for `isSCORReferenceValid()`
schoero Mar 6, 2023
33bad82
Merge branch 'master' into v4
schoero Apr 16, 2023
f4cfc0d
style: enforce eslint rules
schoero Apr 16, 2023
f4ebf05
test: update to new snapshot version
schoero Apr 16, 2023
373fbf6
style: enforce eslint rules
schoero Apr 16, 2023
17911f2
build: refactor build scripts
schoero Apr 16, 2023
7c7dcc9
chore: update dependencies
schoero Apr 30, 2023
69b3d3a
chore: enforce eslint config
schoero Apr 30, 2023
cdf9715
chore: update dependencies
schoero Jun 18, 2023
8b40335
style: eslint fixes
schoero Jun 18, 2023
3d4b56b
test: refactor tests
schoero Aug 23, 2023
87084fc
chore: add `unwritten` to autogenerate docs
schoero Aug 28, 2023
7fae289
chore: update dependencies
schoero Sep 10, 2023
192afe2
chore: remove moduleResolution
schoero Sep 10, 2023
271d73e
test: update to vitest syntax
schoero Sep 10, 2023
3af967c
chore: update JSDoc syntax
schoero Sep 10, 2023
543cebf
chore: update `unwritten` config
schoero Sep 10, 2023
9184788
refactor: improve barrel exports
schoero Sep 10, 2023
904d60e
style: update comment style
schoero Sep 10, 2023
9cbaeba
chore: fix linting errors
schoero Sep 10, 2023
4e410f0
chore: remove browser from exclude
schoero Sep 10, 2023
4f6d384
Merge branch 'master' into v4
schoero Sep 10, 2023
e912e16
Merge branch 'external-class' of https://github.com/danielpanero/Swis…
schoero Sep 10, 2023
c9bc32b
chore: add `vitest`
schoero Sep 10, 2023
3df3c7f
refactor: rename files
schoero Sep 10, 2023
504509b
fix: position of acceptance point
schoero Sep 10, 2023
89b9acb
refactor!: add default `x` and `y` position
schoero Sep 10, 2023
bce3e8a
chore: update launch config
schoero Sep 10, 2023
5dc70e6
test: add qr-bill test
schoero Sep 10, 2023
6cdb46e
refactor: allow qr bill to be placed freely
schoero Sep 11, 2023
f141e83
chore: update dependencies
schoero Sep 11, 2023
233e9fa
chore: add launch config for visual tests
schoero Sep 11, 2023
0ac16fc
chore: use `non-relative` paths for auto imports
schoero Sep 11, 2023
2ec9f56
refactor: create independent `Table` class
schoero Sep 13, 2023
8559104
refactor: clean up files
schoero Sep 13, 2023
3560665
chore: code cleanup
schoero Sep 13, 2023
500e727
fix: height of av1 and av2 field
schoero Sep 17, 2023
7f0ce53
chore: deprecate `node16`
schoero Sep 18, 2023
1ea96d5
chore: update dependencies
schoero Sep 18, 2023
f4beea0
chore: update exports
schoero Sep 18, 2023
4e526a5
chore: remove browser and node bundles
schoero Sep 18, 2023
40a2bd7
chore: update settings
schoero Sep 18, 2023
b5ba92c
refactor: simplify library
schoero Sep 18, 2023
b3140d9
refactor: improve data validation
schoero Sep 20, 2023
cf1dd8a
test: add cleaner tests
schoero Sep 20, 2023
5691856
test: clean data
schoero Sep 20, 2023
77c91f6
chore: update dependencies
schoero Sep 20, 2023
8807f6d
fix: overlapping rects
schoero Sep 20, 2023
c2bbb00
test: update snapshots
schoero Sep 20, 2023
c263328
chore: update docs
schoero Sep 20, 2023
0628934
chore: remove old dependencies
schoero Sep 20, 2023
6c57e00
test: fix invalid import path
schoero Sep 20, 2023
aa3b566
chore: update ts-config
schoero Sep 20, 2023
5eabe5c
build: update configs
schoero Sep 20, 2023
b5ced00
chore: add table export
schoero Sep 20, 2023
5bebec6
build: use vite for build
schoero Sep 20, 2023
e962fe2
chore: reintegrate missing dependency
schoero Sep 20, 2023
30b339b
refactor: use `moduleResolution` option `Bundler`
schoero Sep 20, 2023
906406d
build: add `rootDir`
schoero Sep 20, 2023
9752f18
chore: update node
schoero Sep 20, 2023
9f41344
build: fix bundling
schoero Sep 23, 2023
63ab1b7
chore: improve imports
schoero Sep 23, 2023
d7c4d1c
fix: scissors not rendering
schoero Sep 26, 2023
6fc1f02
test: use binary pdf data for snapshots
schoero Sep 26, 2023
14aef8a
style: code cleanup
schoero Sep 26, 2023
16d11ef
refactor: remove pdf2json and use binary pdf data instead
schoero Sep 26, 2023
5a14147
fix: swiss cross not visible
schoero Sep 26, 2023
e9caa29
chore: update dependencies
schoero Sep 27, 2023
ea143f0
chore: fix comment for regex
schoero Sep 27, 2023
071dedc
chore: add release scripts
schoero Sep 29, 2023
e80ed11
chore: update dependencies
schoero Sep 30, 2023
d07b30a
chore: fix release scripts
schoero Sep 30, 2023
832bc09
docs: add examples
schoero Sep 30, 2023
392a656
refactor: disable node protocol for examples
schoero Sep 30, 2023
d9334b4
docs: add examples
schoero Sep 30, 2023
0284f28
docs: fix examples
schoero Sep 30, 2023
2114a55
docs: add StackBlitz badge
schoero Sep 30, 2023
e2ea591
feat: add pre-built bundle
schoero Oct 1, 2023
7090e06
chore: nest `.js`, `.mjs`, `.cjs` and `.d.ts` files
schoero Oct 1, 2023
ea8d620
build: exclude declaration files for tests
schoero Oct 1, 2023
3786cd1
chore: manually clear `lib` directory
schoero Oct 1, 2023
a925539
refactor: simplify tsconfig aliases
schoero Oct 1, 2023
c44278c
docs: add start scripts
schoero Oct 1, 2023
38177b8
refactor: add `package.json`
schoero Oct 1, 2023
1fb785b
refactor: bundle pre-built bundle as `umd`
schoero Oct 1, 2023
fb8d8d1
refactor: serve output directory
schoero Oct 1, 2023
4fae32e
refactor: create output dir
schoero Oct 1, 2023
2bf316d
fix: cleanup script
schoero Oct 1, 2023
64137bb
refactor: directly export SVG and PDF classes
schoero Oct 1, 2023
ee61629
fix: output path
schoero Oct 1, 2023
8913802
refactor: use latest alpha
schoero Oct 1, 2023
3a137ce
fix: bundle file name
schoero Oct 1, 2023
29db3aa
fix: script import
schoero Oct 1, 2023
2b9846e
docs: update pre-build bundle link
schoero Oct 1, 2023
d626f0c
refactor: add svg example
schoero Oct 1, 2023
f519c2b
refactor: don't use iframe for better visibility
schoero Oct 1, 2023
99dba68
refactor: move files to output
schoero Oct 1, 2023
debe0e5
refactor: don't use output directory
schoero Oct 1, 2023
a92ebd5
fix: don't serve output
schoero Oct 1, 2023
f65a719
refactor: don't copy IP to clipboard
schoero Oct 1, 2023
c1632a3
fix: `SVG` export
schoero Oct 1, 2023
ce763db
refactor: use latest versions
schoero Oct 1, 2023
1e7cb65
docs: document pre-built bundle
schoero Oct 1, 2023
d560ae8
fix: bundle file extension
schoero Oct 1, 2023
4cc28dc
chore: add dependency versions
schoero Oct 1, 2023
a08dbc7
docs: use stackblitz badge
schoero Oct 1, 2023
229d082
test: remove import test
schoero Oct 1, 2023
60ea763
docs: update documentation
schoero Oct 1, 2023
c7c4d94
docs: begin migration
schoero Oct 3, 2023
b0c9f90
docs: update for v4
schoero Oct 3, 2023
fe67b6c
docs: fix invalid paths
schoero Oct 3, 2023
d44db92
Adjust for pull request
Oct 3, 2023
b4b11ed
Adds the possibility to select a custom font for the qr-bill. Is used…
Oct 3, 2023
7bfb865
style: eslint fixes
schoero Oct 3, 2023
0db6211
style: eslint fixes
schoero Oct 3, 2023
ba543cb
docs: update documentation
schoero Oct 3, 2023
107aad1
chore: update scripts
schoero Oct 7, 2023
1b54291
chore: use bundled npm
schoero Oct 7, 2023
aeb539a
chore: change optional deps to optional peer deps
schoero Oct 7, 2023
66eed7a
chore: update dependencies
schoero Oct 7, 2023
28944c3
chore: fix type import
schoero Oct 7, 2023
5e2e8c6
refactor: reorganize class members
schoero Oct 7, 2023
fcbd7d9
docs: update documentation
schoero Oct 20, 2023
3025dd3
chore: add `Frutiger`
schoero Oct 20, 2023
a81d67a
docs: update badges
schoero Oct 20, 2023
8205209
chore: update dependencies
schoero Oct 20, 2023
dabbeee
style: eslint fixes
schoero Oct 20, 2023
3dcab21
chore: update spellcheck dictionaries
schoero Oct 20, 2023
4e92100
chore: use more valid invalid currency
schoero Oct 20, 2023
1149f7e
chore: update to vitest v1.0.0 beta
schoero Oct 20, 2023
cc0144f
chore: force vitest beta
schoero Oct 20, 2023
1f41ef7
Revert "chore: update to vitest v1.0.0 beta"
schoero Oct 21, 2023
0126ea0
refactor: revert to latest vitest
schoero Oct 21, 2023
7a66e1b
chore: update dependencies
schoero Oct 21, 2023
d3415a1
refactor: use pdf page buffer for snapshots
schoero Oct 23, 2023
13040eb
ci: ignore docs directory
schoero Oct 24, 2023
05971e2
ci: test on latest node version
schoero Oct 24, 2023
1b9c025
chore: update dependencies
schoero Oct 24, 2023
86283cb
ci: allow parallel execution
schoero Oct 24, 2023
ac0e685
ci: prevent double workflow runs
schoero Oct 24, 2023
8f7f183
style: fix formatting
schoero Oct 24, 2023
eb3f6ae
feat: create `SwissQRCode` class
schoero Oct 28, 2023
d3f49c3
refactor: re-export all exports
schoero Oct 28, 2023
1362941
feat: add more options to svg
schoero Oct 28, 2023
3d17439
chore: update dependencies
schoero Oct 28, 2023
6e765a0
refactor: re-export all exports
schoero Oct 28, 2023
1dc7908
docs: add docs for bundle
schoero Oct 28, 2023
0bc6527
docs: update docs
schoero Oct 28, 2023
8c2c736
refactor: improve export order
schoero Oct 28, 2023
88b798a
docs: regenerate docs with latest `unwritten`
schoero Oct 28, 2023
1559bd9
fix: global variable name
schoero Oct 29, 2023
fc33307
docs: update how-to guide
schoero Oct 29, 2023
eb855c5
docs: add stackblitz example
schoero Oct 29, 2023
08cae38
fix: add missing import
schoero Oct 29, 2023
b945c70
docs: fix code fences
schoero Oct 29, 2023
09df3c2
fix: missing imports
schoero Oct 29, 2023
664a9f6
fix: missing data object
schoero Oct 29, 2023
bfbb054
fix: logo position
schoero Oct 29, 2023
390e574
docs: restore previous position after logo
schoero Oct 29, 2023
d9ad580
docs: fix stackblitz links
schoero Oct 29, 2023
4921b56
docs: fix starting file
schoero Oct 29, 2023
6b46973
docs: improve wording
schoero Oct 29, 2023
0de4717
docs: link packages
schoero Oct 29, 2023
3cf28b9
docs: improve wording
schoero Oct 29, 2023
991919f
docs: fix file name
schoero Oct 29, 2023
0d15e3d
docs: improve documentation
schoero Oct 29, 2023
f5ddf4b
chore: delete old examples
schoero Oct 29, 2023
bbec102
docs: update migration guide
schoero Oct 29, 2023
54e7b14
docs: rename migration guide
schoero Oct 29, 2023
bb92b6a
docs: update readme for `v4`
schoero Oct 29, 2023
1a3e3cd
docs: use sample addresses
schoero Oct 29, 2023
48022c1
docs: use relative paths for assets
schoero Oct 29, 2023
aa1e45e
fix: add missing building number
schoero Oct 29, 2023
deb428d
refactor: remove duplicate table export
schoero Oct 29, 2023
185ef2e
chore: update `unwritten`
schoero Oct 29, 2023
d37873f
docs: regenerate docs
schoero Oct 29, 2023
2802263
docs: regenerate docs
schoero Oct 29, 2023
7c8b37c
chore(release): `v4.0.0-beta.1`
schoero Oct 29, 2023
8251870
refactor: rename table properties
schoero Oct 30, 2023
871e06a
chore: update `unwritten`
schoero Oct 30, 2023
1353a70
docs: regenerate docs
schoero Oct 30, 2023
89cccae
chore(release): v4.0.0-beta.2
schoero Oct 30, 2023
e6257d7
style: fix eslint issues
schoero Oct 30, 2023
bc60910
docs: add white space
schoero Oct 30, 2023
713a5e7
docs: use png image
schoero Oct 30, 2023
8a2920d
style: code cleanup
schoero Oct 30, 2023
2fb71a5
chore: update dependencies
schoero Nov 1, 2023
a435905
fix: handle attachTo when no page exists
schoero Nov 1, 2023
ed2aa31
refactor: rename `font` option to `fontName`
schoero Nov 1, 2023
04a27f6
ci: run typecheck in ci
schoero Nov 1, 2023
6f16e18
build: execute checks before build
schoero Nov 1, 2023
b189c66
chore: add funding
schoero Nov 1, 2023
beab6ac
chore: change link to latest beta
schoero Nov 1, 2023
02d40d4
build: require Node.js >= 18.0.0
schoero Nov 1, 2023
2f92946
docs: add changelog for v4.0.0
schoero Nov 1, 2023
a2b9100
docs: document renaming of properties
schoero Nov 1, 2023
3a22d34
docs: improve documentation
schoero Nov 1, 2023
bf35941
docs: add api overview
schoero Nov 1, 2023
3298346
docs: update links
schoero Nov 1, 2023
61f5e0a
docs: add white space
schoero Nov 1, 2023
7777ab9
docs: rename manual to guide
schoero Nov 1, 2023
9c17aef
docs: update links
schoero Nov 1, 2023
9f6b66a
docs: update links
schoero Nov 1, 2023
1047a08
docs: update links to main branch
schoero Nov 1, 2023
b2d7113
docs: rename `master` to `main`
schoero Nov 1, 2023
d7b79b6
refactor: rename parameter names to be identical to PDFKit parameter …
schoero Nov 1, 2023
43b9fa9
refactor: add positioning parameters
schoero Nov 1, 2023
74316c2
refactor: add positioning parameters
schoero Nov 1, 2023
9dd0f09
docs: update documentation
schoero Nov 1, 2023
b29b15a
docs: add white space
schoero Nov 1, 2023
6aad329
chore: update dependencies
schoero Nov 6, 2023
6880648
docs: use line break section separator for extra white space
schoero Nov 6, 2023
d40fe3c
docs: update links
schoero Nov 6, 2023
684f0bf
docs: update `unwritten`
schoero Nov 7, 2023
22a64a3
docs: update `unwritten`
schoero Nov 7, 2023
d5fa91e
docs: improve migration guide
schoero Nov 7, 2023
9770f3c
docs: fix link label
schoero Nov 7, 2023
533167c
refactor: svg methods
schoero Nov 9, 2023
7bf4f7c
chore: add example
schoero Nov 9, 2023
60ed027
chore: update dependencies
schoero Nov 9, 2023
bfdce8d
docs: update documentation
schoero Nov 9, 2023
8e02f41
docs: improve documentation
schoero Nov 9, 2023
b865b59
refactor: clean up examples
schoero Nov 9, 2023
e607a15
docs: fix typo
schoero Nov 9, 2023
2452fe4
fix: blob stream import
schoero Nov 10, 2023
1159861
docs: fix stackblitz link
schoero Nov 10, 2023
ce3f7d7
docs: improve description
schoero Nov 10, 2023
3d951c9
refactor: use type import
schoero Nov 10, 2023
240b533
fix: use named import
schoero Nov 10, 2023
b618fb9
docs: fix imports
schoero Nov 10, 2023
6aff2d8
docs: add chrome warning
schoero Nov 10, 2023
d16e36b
fix: path for example
schoero Nov 10, 2023
9268c2a
docs: fix title
schoero Nov 10, 2023
c57c022
docs: improve readme
schoero Nov 10, 2023
f01fade
docs: add link to style guide
schoero Nov 10, 2023
ea6e9c2
docs: code cleanup
schoero Nov 10, 2023
9553175
docs: code cleanup
schoero Nov 10, 2023
cbe7b1f
docs: adapt quick start to v4
schoero Nov 10, 2023
f1f717f
docs: update changelog
schoero Nov 10, 2023
0837995
chore: update dependencies
schoero Nov 10, 2023
be5feb8
docs: fix links
schoero Nov 10, 2023
a9beeb5
docs: update pdfkit link
schoero Nov 10, 2023
fbb3663
docs: update links
schoero Nov 10, 2023
e474a1e
refactor: change repository name to lowercase
schoero Nov 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"import": [
"@schoero/cspell-config",
"@cspell/dict-fr-fr/cspell-ext.json",
"@cspell/dict-it-it/cspell-ext.json"
],
"overrides": [
{
"filename": "**/translations.ts",
"language": "en, de, fr, it",
"caseSensitive": false
}
],
"words": [
"brfs",
"debitor",
"fontkit",
"Frutiger",
"Grosse",
"iban",
"italian",
"linebreak",
"linebreaker",
"pdfdocument",
"pdfkit",
"postgenerate",
"qrcodegen",
"qriban",
"QRIBAN",
"QRIID",
"QRR",
"SCOR",
"swiss",
"swissqrbill",
"swissqrcode",
"twint",
"Twint",
"TWINT",
"undash"
],
"ignorePaths": [
"node_modules/**",
"lib/**",
"tests/output/**",
"src/shared/qr-code-generator.ts"
]
}
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
lib
src/shared/qr-code-generator.ts
!/.vscode
!/.github
44 changes: 42 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
{
"extends": "@schoero"
}
"extends": "@schoero",
"overrides": [
{
"files": ["*.ts"],
"rules": {
"@typescript-eslint/no-unnecessary-condition": "off"
}
},
{
"files": ["examples/**/*.js", "examples/**/*.ts"],
"rules": {
"no-undef": "off"
}
},
{
"files": ["vite.config.ts", "vite.config.bundle.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": ["tsconfig.vite.json"],
"sourceType": "module"
}
},
{
"files": ["examples/**/*.js", "examples/**/*.ts"],
"rules": {
"unicorn/prefer-node-protocol": "off"
}
},
{
"env": {
"browser": true,
"es6": true,
"node": false
},
"files": ["src/browser/**/*.ts"],
"parserOptions": {
"createDefaultProgram": true
}
}
]
}
70 changes: 57 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,62 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
- pull_request
- push

jobs:
build:
lint:
if:
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name !=
github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Run a one-line script
run: |
npm ci
npm test
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 20

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint:ci

- name: Typecheck
run: npm run typecheck

- name: Spellcheck
run: npm run spellcheck:ci

test:
if:
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name !=
github.event.pull_request.base.repo.full_name
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

strategy:
fail-fast: true
matrix:
node:
- 18
- 20
- 21
os:
- ubuntu-latest
- windows-latest
- macos-latest
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ node_modules
tests/output
examples/output
lib
.DS_Store
local
.DS_Store
.env
3 changes: 3 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@schoero/markdownlint-config"
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
message="chore(release): v%s"
9 changes: 9 additions & 0 deletions .unwritten.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "../unwritten/schemas/renderer/config.json",
"extends": "@schoero/unwritten-config",
"renderConfig": {
"markdown": {
"sectionSeparator": "<br/>"
}
}
}
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"DavidAnson.vscode-markdownlint"
]
}
41 changes: 41 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"configurations": [
{
"args": ["run", "${relativeFileDirname}/${fileBasenameNoExtension}"],
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"name": "debug current test file",
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"request": "launch",
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"smartStep": true,
"type": "node"
},
{
"args": ["run", "${relativeFileDirname}/${fileBasenameNoExtension}"],
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"env": {
"VISUAL": "true"
},
"name": "visually debug current test file",
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"request": "launch",
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"smartStep": true,
"type": "node"
},
{
"args": ["run", "${relativeFileDirname}/${fileBasenameNoExtension}"],
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"name": "debug current test file with node internals",
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"request": "launch",
"skipFiles": [],
"smartStep": true,
"type": "node"
}
],
"version": "0.2.0"
}
64 changes: 60 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,65 @@
{

// ESLint
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[json]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[json5]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[jsonc]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"eslint.validate": ["javascript", "typescript", "json", "jsonc", "json5", "yaml"],
"editor.formatOnSave": false,

// Prettier
"prettier.enable": false,

// File nesting
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"*.ts": "${basename}.${extname},${basename}.test.${extname},${basename}.test.snap,${basename}.test-d.${extname}",
"*.js": "${basename}.${extname},${basename}.mjs,${basename}.cjs,${basename}.d.ts"
},

// Hide JSDoc comments
"foldOnOpen.targets": ["AllBlockComments"],

// ES module import
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.importModuleSpecifierEnding": "minimal",
"typescript.preferences.useAliasesForRenames": true,
"typescript.preferences.autoImportFileExcludePatterns": [
"@types/node/test.d.ts"
],

// Markdown
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
"editor.formatOnSave": true,
"editor.wordWrapColumn": 119
},

// VSCode
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.markdownlint": true,
"source.organizeImports": false
},
"foldOnOpen.targets": ["AllBlockComments"],
"javascript.preferences.importModuleSpecifierEnding": "js",
"typescript.preferences.importModuleSpecifierEnding": "js",
}

"editor.rulers": [
119
],

"search.exclude": {
"lib": true
}
}
33 changes: 32 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@

# Change Log

# [v4.0.0](https://github.com/schoero/swissqrbill/compare/v3.2.2...v4.0.0) - 10.11.2023

With version 4, SwissQRBill has been completely reworked. The main goal was to make the API more flexible and reduce the complexity of the library. As a consequence, the API has changed quite significantly. However, migration should be fairly easy.

Please read the [migration guide](docs/migration-v3-to-v4.md) for more information and have a look at the updated [documentation](docs).

* New features
* SwissQRBill can now be attached to any PDFDocument instance from PDFKit.
* New SwissQRCode class to create the standalone Swiss QR Code to attach to an existing PDFKit document.
* New Table class to create a table to attach to an existing PDFKit document.
* It is now possible to change the font of the QR Bill. The allowed fonts are `"Arial"` | `"Frutiger"` | `"Helvetica"` | `"Liberation Sans"`
* Additional options for SVG renderings.

* Breaking changes
* The entrypoints have changed. Please read the [importing documentation](docs/importing.md) for more information.
* SwissQRBill no longer extends PDFKit.
* The table method has been extracted into it's own class.
* Events have been removed from SwissQRBill.
* Properties and options have been renamed.
* Now requires Node.js >= 18.0.0

* Fixes
* Some slight rendering improvements.

* Other improvements
* Better examples. The examples are now automatically hosted on StackBlitz. Everyone can now easily try out the library in the browser without having to install anything.
* Automated documentation. SwissQRBill now uses [unwritten](https://github.com/schoero/unwritten) to automatically generate the documentation. This makes it easier to keep the documentation up to date.
* Automated testing for even more stability.

Thanks to [@danielpanero](https://github.com/danielpanero) and [@skch-17](https://github.com/skch-17) for their contributions.

# [v3.2.3](https://github.com/schoero/swissqrbill/compare/v3.2.2...v3.2.3) - 16.04.2023

* Updated dependencies.
Expand Down Expand Up @@ -174,5 +205,5 @@
# [v1.0.5](https://github.com/schoero/swissqrbill/compare/v1.0.4...v1.0.5) - 03.03.2020

* Fixed french characters.
* Removes new lines in userdata.
* Removes new lines in user data.
* Fixed some layout issues.
2 changes: 2 additions & 0 deletions FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github:
- schoero
Loading