Skip to content

Port JavaScript runtime to TypeScript #25

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

Merged
merged 22 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
28ced92
Port JavaScript runtime to TypeScript
vogelsgesang May 12, 2020
27e0c74
Merge remote-tracking branch 'upstream/master' into typescript
Tschrock Dec 2, 2021
628219f
Fixup jsdoc comments
Tschrock Dec 3, 2021
ecf644a
Update typescript dependencies
Tschrock Dec 3, 2021
3dc2785
Add more types and enable strict type checking
Tschrock Dec 3, 2021
5d15c52
Clean up error classes
Tschrock Dec 3, 2021
6f7bc8f
Change var to const/let and add return types
Tschrock Dec 3, 2021
a3eadc7
Add accessibility modifiers
Tschrock Dec 3, 2021
ae54b14
A few more types
Tschrock Dec 3, 2021
0bc2a11
Update npmignore
Tschrock Dec 3, 2021
b2f5603
Merge branch 'master' into typescript
generalmimon Sep 15, 2024
bdfc434
Accept `Uint8Array` as the only type for byte arrays
generalmimon Sep 29, 2024
c3621b1
Fix some incorrect comments
generalmimon Sep 29, 2024
9cbb4a0
bytesToStr(): change `encoding` parameter type to `string`
generalmimon Sep 29, 2024
8a30b2a
processZlib(): return `Uint8Array` even on Node.js
generalmimon Sep 29, 2024
59e604c
Use `const` and `let` instead of `var` everywhere
generalmimon Sep 29, 2024
313c29f
Update npm dependencies
generalmimon Sep 29, 2024
02a66a4
package.json: include *.d.ts files in the package
generalmimon Sep 29, 2024
66f2af0
Use named (not anonymous) classes for custom error types
generalmimon Oct 2, 2024
127e433
package.json: remove deprecated `prepublish` script
generalmimon Oct 2, 2024
779daa6
GH Actions: run `npm run build` before publishing
generalmimon Oct 2, 2024
239aabe
README: add "Development" section
generalmimon Oct 2, 2024
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
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
node-version: '20'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- name: Check that KaitaiStream.js will be included
run: |
npm publish --tag next --dry-run --json | jq --exit-status '.files | map(.path) | any(. == "KaitaiStream.js")'
- name: Publish to npm
run: npm publish --tag next
env:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/node_modules/

# Generated by Typescript compiler
/KaitaiStream.d.ts
/KaitaiStream.js
Loading