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

Port to TypeScript #424

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
6b53951
initial commit
bigmistqke Oct 23, 2024
c1f6318
succesful build with vite with several @ts-expect-errors
bigmistqke Nov 19, 2024
b271320
fix circular dependencies
bigmistqke Nov 19, 2024
ec66bdc
refactor directories
bigmistqke Nov 19, 2024
7760e8d
narrow type of sample_description_entry by checking their instanceof
bigmistqke Nov 20, 2024
c3f27a8
refactor vars into const/lets
bigmistqke Nov 20, 2024
1334132
check in iinfBox on instanceof infeBox instead of relying on type-pro…
bigmistqke Nov 20, 2024
7f3afa7
refactor []-types into Array and any into unknown
bigmistqke Nov 20, 2024
d5a4b36
make all box-properties required
bigmistqke Nov 20, 2024
2d21451
use instanceof to narrow SampleEntry
bigmistqke Nov 20, 2024
329fd00
infer SampleEntryKinds from sampleentries barrel file
bigmistqke Nov 20, 2024
2fec21b
port tref to typescript (NEEDS REVIEW)
bigmistqke Nov 20, 2024
bfff1da
add verbatimModuleSyntax tsconfig
bigmistqke Nov 20, 2024
3b21466
remove trefBox from defaults
bigmistqke Nov 20, 2024
56c9248
remove additional registries
bigmistqke Nov 20, 2024
6e32973
refactor directories
bigmistqke Nov 20, 2024
95559f0
update package.json's exports
bigmistqke Nov 20, 2024
9872005
add MP4BoxBuffer-class
bigmistqke Nov 20, 2024
bc4f341
replace vite for tsup
bigmistqke Nov 21, 2024
1772b9e
export types from entries
bigmistqke Nov 24, 2024
86c4229
move parseOneDescriptor-method from MPEG4DescriptorParser to Descriptor
bigmistqke Dec 2, 2024
f1664a0
use instanceof to narrow to stppSampleEntry in ISOFile.addTrack
bigmistqke Dec 2, 2024
7002d01
(fix) typo in type of hdlrBox
bigmistqke Dec 2, 2024
dceafd9
move base-classes SampleEntry to sampleentries/base.ts
bigmistqke Dec 2, 2024
96ecf36
narrow IsoFileOptions.type to valid SampleEntry-type
bigmistqke Dec 2, 2024
87b894e
remove codes from Box-classes (NEEDS REVIEW)
bigmistqke Dec 2, 2024
fddfb1c
inline type- and uuid-property
bigmistqke Dec 2, 2024
60a8968
infer IsoFileOptions.type from SampleEntryKind
bigmistqke Dec 2, 2024
c069fc9
move SampleEntry from box to sampleentries/base
bigmistqke Dec 2, 2024
c6a6db4
iinfBox.parse: refactor instanceof to check for type
bigmistqke Dec 2, 2024
07c8c0b
fix circular dependency
bigmistqke Dec 2, 2024
7a7200f
remove redundant constructors
bigmistqke Dec 2, 2024
872c4e2
remove redundant constructors in boxes/uuid
bigmistqke Dec 2, 2024
1b9ba8d
remove useDefineForClassFields: false from tsconfig
bigmistqke Dec 2, 2024
94f0005
remove grunt and karma from dependencies
bigmistqke Dec 2, 2024
aa12137
add tsup.config.ts
bigmistqke Dec 2, 2024
422f9d7
type unknowns
bigmistqke Dec 3, 2024
4e66ff1
typesafe readStruct/writeStruct/readType/writeType
bigmistqke Dec 3, 2024
01a094a
add boxTypes: Array<boxTypeBox> to types
bigmistqke Dec 3, 2024
7798e73
fix signatures
bigmistqke Dec 3, 2024
f456827
update exports
bigmistqke Dec 3, 2024
51d3d85
refactor ISOFile.getInfo and update Movie- and Track-type
bigmistqke Dec 3, 2024
7805c14
refactor ISOFile.updateSampleLists and update Sample-type
bigmistqke Dec 3, 2024
19187b5
dev: port filereader example to vite
bigmistqke Dec 3, 2024
c110171
set tsconfig.useDefineForClassFields to false
bigmistqke Dec 3, 2024
a04d39b
make boxes in BoxBase optional
bigmistqke Dec 3, 2024
926da32
fix: all box-classes extend from Box instead of BoxBase
bigmistqke Dec 3, 2024
f2c7348
fix: special case import of 'url Box'
bigmistqke Dec 3, 2024
890c46f
fix: hdlrBox should extend FullBox
bigmistqke Dec 3, 2024
0b5c86a
make TSegmentUser and TSampleUser generic
bigmistqke Dec 3, 2024
cdfcb06
move type-field to top of class
bigmistqke Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 20 additions & 20 deletions .github/workflows/grunt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: NodeJS with Grunt

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

jobs:
build:
Expand All @@ -13,24 +13,24 @@ jobs:
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install
grunt

- name: Build
run: |
npm install
grunt

- name: Deploy to GitHub pages
uses: JamesIves/[email protected]
if: ${{ github.ref == 'refs/heads/master' && startsWith(matrix.node-version, '12') }}
with:
branch: gh-pages
folder: .
clean: false
- name: Deploy to GitHub pages
uses: JamesIves/[email protected]
if: ${{ github.ref == 'refs/heads/master' && startsWith(matrix.node-version, '12') }}
with:
branch: gh-pages
folder: .
clean: false
2 changes: 1 addition & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
release:
name: Create Release
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*.hevc
*.bpg
*.xml
node_modules/*
node_modules
dev/node_modules
dist/
test/lib_*/
test/coverage/
Expand Down
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"trailingComma": "all",
"tabWidth": 2,
"printWidth": 100,
"semi": true,
"singleQuote": true,
"useTabs": false,
"arrowParens": "avoid",
"bracketSpacing": true
}
140 changes: 0 additions & 140 deletions Gruntfile.js

This file was deleted.

Loading