Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
4aeeea8
Merge pull request #165 from keichi/npm-maintainance
keichi Apr 22, 2021
ed9d509
Bump to v1.8.0
keichi Apr 22, 2021
f14e328
Update lodash to fix a vulnerability
keichi May 10, 2021
c211c1f
Add CI test for node 16
keichi May 10, 2021
e3d385e
Fixed some function signatures
Rzial Jun 3, 2021
b472b40
Removed trailing blank spaces
Rzial Jun 3, 2021
80c1882
Added context variables on parsing process
Rzial Jun 3, 2021
ee6f6a4
Added parsing context to `.readUntil()` and `.formatter()`
Rzial Jun 5, 2021
3f236b6
Merge pull request #168 from Rzial/parsing-context-fix
keichi Jun 6, 2021
6cb81ea
Added unit tests for parsing context variables
Rzial Jun 9, 2021
eaa210f
Merge pull request #166 from Rzial/master
keichi Jun 10, 2021
d826b26
Fix #76
keichi Jun 10, 2021
56f0634
Fixed formatting
Rzial Jun 12, 2021
7c46a82
Added `$index` context variable
Rzial Jun 12, 2021
fafd573
Merge pull request #169 from Rzial/feature/index-context-variable
keichi Jun 19, 2021
d96d004
Bump to v1.9.0
keichi Jun 19, 2021
931fc39
Added missing semicolons on generated code
Rzial Jun 19, 2021
cb98823
Merge pull request #170 from Rzial/bugfix/missing-semicolons
keichi Jun 19, 2021
7563813
Bump to v1.9.1
keichi Jun 22, 2021
20bec01
Removed typo on code generation
Rzial Jul 3, 2021
ea55fab
Merge pull request #171 from Rzial/bugfix/index-wrong-code-gen
keichi Jul 3, 2021
17c2adf
Update binary_parser.ts
Rechdan Jul 4, 2021
733de0c
Merge pull request #172 from Rechdan/patch-1
keichi Jul 5, 2021
203d244
Update dependencies
keichi Jul 5, 2021
3d5dae5
Bump to v1.9.2
keichi Jul 6, 2021
abfb49c
Add benchmark script
keichi Sep 13, 2021
458484a
Update dependencies
keichi Sep 13, 2021
e9d6c96
Disable context variables by default
keichi Sep 18, 2021
4951d40
Use prettier's default formatting style
keichi Sep 18, 2021
aaa1bb2
Merge pull request #175 from keichi/disable-context-var
keichi Sep 18, 2021
45da0af
Use double quotes in README
keichi Sep 21, 2021
d5e0abd
Update binary parsing packages to compare against
keichi Sep 21, 2021
3a4ff03
feat: remove IE11 & node.js 10 support
manzt Sep 22, 2021
4a07bf4
Merge pull request #178 from manzt/remove-ie11
keichi Sep 26, 2021
5c2ec4d
feat: export esm entrypoint
manzt Sep 21, 2021
8b29ad6
chore: combine source
manzt Sep 26, 2021
d48f918
Merge pull request #176 from manzt/manzt/esm
keichi Sep 26, 2021
dfcc7b6
Update dependencies
keichi Sep 26, 2021
0e51d5c
Add package script for running CJS build
keichi Sep 26, 2021
aae1234
Bump version to 2.0.0
keichi Sep 26, 2021
504c392
chore: set shared tsc target
manzt Sep 26, 2021
ddb655f
fix: target ES6
manzt Sep 27, 2021
9da9080
Merge pull request #179 from manzt/manzt/es2018-target
keichi Sep 27, 2021
11667ae
Add hand-written parser as a benchmark target
keichi Sep 21, 2021
1d3b30f
Use let and const instead of var
keichi Sep 26, 2021
062c982
Merge pull request #180 from keichi/hand-written
keichi Sep 27, 2021
edece35
Merge pull request #181 from keichi/const-let
keichi Sep 27, 2021
dd190c7
Update README
keichi Sep 27, 2021
e8c3a5b
Remove unused binary package from benchmark/package.json
keichi Sep 27, 2021
25f6f49
Fix typo
keichi Sep 27, 2021
ea673c4
Bump to 2.0.1
keichi Sep 28, 2021
8ca545d
Rename LICENSE.md to LICENSE
keichi Sep 29, 2021
49514e5
Enable strict type checking
keichi Sep 30, 2021
b9332d9
Improve error messages
keichi Sep 30, 2021
713ce9f
Translate unit tests to TypeScript
keichi Oct 2, 2021
2eaa5fd
Run tests directly using ts-node
keichi Oct 4, 2021
6d49eb6
Translate examples to TypeScript
keichi Oct 4, 2021
1adffdd
Make examples work from any directory
keichi Oct 4, 2021
1af25fc
Adjust build script
keichi Oct 4, 2021
17598cd
Remove nyc
keichi Oct 4, 2021
bcd6495
Merge pull request #186 from keichi/strict-type-checking
keichi Oct 4, 2021
18f4112
Merge pull request #187 from keichi/error-messages
keichi Oct 4, 2021
c755360
Merge pull request #188 from keichi/ts-tests-examples
keichi Oct 4, 2021
f204dc4
Run unit test on headless Chrome using Karma
keichi Oct 4, 2021
2b5a84e
Merge pull request #189 from keichi/karma
keichi Oct 4, 2021
866329d
Run style check with prettier on CI
keichi Oct 12, 2021
37a1cac
Add documentation for sizeOf() in README
keichi Oct 27, 2021
524017b
Merge pull request #192 from keichi/document-sizeof
keichi Oct 27, 2021
d31536b
Fix assert as method definition
mohd-akram Nov 23, 2021
b72ab14
Merge pull request #193 from mohd-akram/fix-assert-method-def
keichi Nov 23, 2021
0a734bf
Bump to v2.0.2
keichi Nov 24, 2021
b08b0ad
Bump karma from 6.3.4 to 6.3.14
dependabot[bot] Feb 11, 2022
d6c3680
Bump follow-redirects from 1.14.4 to 1.14.8
dependabot[bot] Feb 14, 2022
4e0addf
Merge pull request #195 from keichi/dependabot/npm_and_yarn/follow-re…
keichi Feb 15, 2022
1e9fcb5
Merge pull request #194 from keichi/dependabot/npm_and_yarn/karma-6.3.14
keichi Feb 15, 2022
2cbb9f5
Bump log4js from 6.3.0 to 6.4.1
dependabot[bot] Feb 15, 2022
700ccfd
Merge pull request #196 from keichi/dependabot/npm_and_yarn/log4js-6.4.1
keichi Feb 15, 2022
9df466c
Update dependencies
keichi Feb 15, 2022
f682f74
Escape assert strings
vexcat Apr 8, 2022
8a27fdc
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Apr 9, 2022
b464599
Merge pull request #199 from keichi/dependabot/npm_and_yarn/minimist-…
keichi Apr 10, 2022
c4bc2d0
Bump async from 3.2.1 to 3.2.3
dependabot[bot] Apr 13, 2022
9b24a00
Merge pull request #200 from keichi/dependabot/npm_and_yarn/async-3.2.3
keichi Apr 14, 2022
abfe170
Format source code
keichi Apr 14, 2022
e776857
Merge pull request #198 from vexcat/patch-1
keichi Apr 14, 2022
f1b7e24
Fix typo (endianess -> endianness)
keichi May 9, 2022
6b72d10
Merge pull request #202 from keichi/fix-typo
keichi May 9, 2022
ca8af2b
Update dependencies
keichi May 9, 2022
be95cb8
Bump to v2.0.3
keichi May 9, 2022
0b4bc49
Allow long bit field sequences
mohd-akram May 18, 2022
f7115f0
Merge pull request #203 from mohd-akram/long-bitfield
keichi Jun 5, 2022
8eacd3e
Bump to 2.1.0
keichi Jun 5, 2022
f443465
feat: make `name` parameter optional for `wrapped`
wpyoga Sep 2, 2022
1f32358
fix: remove unnecessary null guard
wpyoga Sep 2, 2022
cccbf73
test: specify array type
wpyoga Sep 2, 2022
dc609b4
docs: add license badge
wpyoga Sep 2, 2022
9f68498
docs: update quick start
wpyoga Sep 2, 2022
2c61512
docs: minor updates to example code
wpyoga Sep 2, 2022
689426c
docs: add instructions for contributing code
wpyoga Sep 2, 2022
649b2b3
docs: minor fixes
wpyoga Sep 2, 2022
1606df0
docs: fix wording
wpyoga Sep 2, 2022
4c5d452
test: add test for `wrapped` with empty `name` and without `name` arg…
wpyoga Sep 2, 2022
1a5daad
docs: update readme to reflect the new feature
wpyoga Sep 2, 2022
097d257
Merge pull request #216 from wpyoga/more-doc-updates
keichi Sep 4, 2022
d405fe2
Merge pull request #214 from wpyoga/vscode-error-fix
keichi Sep 5, 2022
b047862
Merge pull request #215 from wpyoga/wrapped-optional-name
keichi Sep 5, 2022
7899a23
Bump to v2.2.0
keichi Sep 5, 2022
db7a302
Add source map lib files
cmdcolin Sep 14, 2022
7303e03
Add all dist folder
cmdcolin Sep 14, 2022
e85a1a8
docs: explain how to call `.useContextVars()`
wpyoga Sep 16, 2022
ff5cdb0
Merge pull request #220 from wpyoga/doc-update-usecontextvars
keichi Sep 20, 2022
07c2161
Merge pull request #218 from cmdcolin/fix_source_map
keichi Sep 20, 2022
4fe97d6
Update dependencies
keichi Sep 20, 2022
e29dabc
Merge pull request #222 from keichi/update-deps
keichi Sep 20, 2022
9157ea2
Bump to v2.2.1
keichi Sep 20, 2022
41d16d2
Fix typos
mohd-akram Oct 4, 2022
e92afef
Merge pull request #224 from mohd-akram/fix-typos
keichi Oct 6, 2022
aaae0e0
Add CodeQL workflow for GitHub code scanning
lgtm-migrator Nov 9, 2022
bef80db
Bump socket.io-parser from 4.0.4 to 4.0.5
dependabot[bot] Nov 9, 2022
d3fea52
Bump qs and body-parser
dependabot[bot] Dec 8, 2022
78a3d2b
Merge pull request #228 from keichi/dependabot/npm_and_yarn/qs-and-bo…
keichi Dec 9, 2022
6c50d23
Bump minimatch from 3.0.4 to 3.1.2
dependabot[bot] Dec 9, 2022
ba72d2d
Merge pull request #226 from keichi/dependabot/npm_and_yarn/socket.io…
keichi Dec 9, 2022
7b8b31e
Merge pull request #229 from keichi/dependabot/npm_and_yarn/minimatch…
keichi Dec 9, 2022
4f4bcf8
Bump engine.io and socket.io
dependabot[bot] Dec 9, 2022
07bcc4e
Merge pull request #227 from keichi/dependabot/npm_and_yarn/engine.io…
keichi Dec 9, 2022
8768bc3
Bump json5 from 2.2.0 to 2.2.3
dependabot[bot] Jan 7, 2023
587c7aa
Merge pull request #230 from keichi/dependabot/npm_and_yarn/json5-2.2.3
keichi Jan 10, 2023
7bae4f6
Bump ua-parser-js from 0.7.31 to 0.7.33
dependabot[bot] Jan 27, 2023
c51a131
Merge pull request #231 from keichi/dependabot/npm_and_yarn/ua-parser…
keichi Jan 27, 2023
c0ee310
Additional checks to determine if next field is a bit field or not
nick-hunter Jun 19, 2023
d8f1a31
Fix formatting issues. Add tests
nick-hunter Jun 20, 2023
45a1b6e
Merge pull request #241 from nick-hunter/bit-to-nest-bugfix
keichi Jul 17, 2023
98fef09
Update dependencies
keichi Jul 17, 2023
f847630
Merge pull request #225 from lgtm-migrator/codeql
keichi Jul 17, 2023
53fe541
Bump node.js version requirement
keichi Jul 17, 2023
9dbbeda
Fix code formatting
keichi Jul 17, 2023
b99ae40
Merge pull request #242 from keichi/update-deps
keichi Jul 17, 2023
398cdcf
Fix: Publish typings (.d.ts) files to NPM registry
ovr Sep 18, 2019
627f6e4
fix(TextEncoding): Binary Parser not work in old browsers
szaboge Dec 16, 2020
dc81af8
fix(TextEncoding): use `fast-text-encoding` instead of `text-encoding`
yuhr Mar 22, 2021
11712f9
Add VSCode workspace settings
yuhr Mar 22, 2021
fc040fa
Drop node 8 support
keichi Mar 23, 2021
1895f6a
add parcel to dev dependencies
abductedPlatypus Apr 8, 2021
4439b84
use strict equal in tests
abductedPlatypus Apr 8, 2021
3e6afda
add wrapper
abductedPlatypus Apr 8, 2021
3714a59
add wrapper test
abductedPlatypus Apr 8, 2021
b4a34b1
add missing strict equal
abductedPlatypus Apr 8, 2021
48ae061
fix missing )'s for hex encoded string
abductedPlatypus Apr 8, 2021
bcfb547
lint code & add missing cleanup
abductedPlatypus Apr 8, 2021
987601d
update package-lock.json
abductedPlatypus Apr 8, 2021
a9d908b
remove parcel from package
abductedPlatypus Apr 18, 2021
4fdaed1
add docs for wrapped
abductedPlatypus Apr 18, 2021
bf089e5
fix package-lock.json
abductedPlatypus Apr 18, 2021
1c50eaa
Update to lockfileVersion 2
keichi Apr 22, 2021
435de98
Update y18n to fix a vulnerability
keichi Apr 22, 2021
b4fceac
Update dev dependencies
keichi Apr 22, 2021
2f68fb4
Bump to v1.8.0
keichi Apr 22, 2021
700d24a
Update lodash to fix a vulnerability
keichi May 10, 2021
af7bea0
Add CI test for node 16
keichi May 10, 2021
fbc2c6c
Fixed some function signatures
Rzial Jun 3, 2021
bd36806
Removed trailing blank spaces
Rzial Jun 3, 2021
8382ab3
Added context variables on parsing process
Rzial Jun 3, 2021
7ba57ae
Added unit tests for parsing context variables
Rzial Jun 9, 2021
d8338a9
Fix #76
keichi Jun 10, 2021
fc3f816
Fixed formatting
Rzial Jun 12, 2021
e0e2e61
Added `$index` context variable
Rzial Jun 12, 2021
f77ecf2
Bump to v1.9.0
keichi Jun 19, 2021
d9ac644
Added missing semicolons on generated code
Rzial Jun 19, 2021
d19af5f
Bump to v1.9.1
keichi Jun 22, 2021
2778734
Removed typo on code generation
Rzial Jul 3, 2021
b9d24a6
Update binary_parser.ts
Rechdan Jul 4, 2021
7590e78
Update dependencies
keichi Jul 5, 2021
d88ee9e
Bump to v1.9.2
keichi Jul 6, 2021
96366f2
Add benchmark script
keichi Sep 13, 2021
c12589d
Update dependencies
keichi Sep 13, 2021
d38bb8e
Disable context variables by default
keichi Sep 18, 2021
17baac8
Use prettier's default formatting style
keichi Sep 18, 2021
b105fc7
Use double quotes in README
keichi Sep 21, 2021
0866236
Update binary parsing packages to compare against
keichi Sep 21, 2021
78c6e35
feat: remove IE11 & node.js 10 support
manzt Sep 22, 2021
8dedff3
feat: export esm entrypoint
manzt Sep 21, 2021
21add19
chore: combine source
manzt Sep 26, 2021
76ac35e
Update dependencies
keichi Sep 26, 2021
6f5fcdc
Add package script for running CJS build
keichi Sep 26, 2021
8345513
Bump version to 2.0.0
keichi Sep 26, 2021
8f77ddf
chore: set shared tsc target
manzt Sep 26, 2021
97b690c
fix: target ES6
manzt Sep 27, 2021
20beac2
Add hand-written parser as a benchmark target
keichi Sep 21, 2021
3507c82
Use let and const instead of var
keichi Sep 26, 2021
f87c314
Update README
keichi Sep 27, 2021
07aa9c9
Remove unused binary package from benchmark/package.json
keichi Sep 27, 2021
ac9755c
Fix typo
keichi Sep 27, 2021
dfb1e91
Bump to 2.0.1
keichi Sep 28, 2021
4473836
Rename LICENSE.md to LICENSE
keichi Sep 29, 2021
4ed5d3d
Enable strict type checking
keichi Sep 30, 2021
29a5353
Improve error messages
keichi Sep 30, 2021
9a1b73a
Translate unit tests to TypeScript
keichi Oct 2, 2021
8729eae
Run tests directly using ts-node
keichi Oct 4, 2021
2bc412b
Translate examples to TypeScript
keichi Oct 4, 2021
b3a6eaa
Make examples work from any directory
keichi Oct 4, 2021
ec9994c
Adjust build script
keichi Oct 4, 2021
d1f4782
Remove nyc
keichi Oct 4, 2021
78b293d
Run unit test on headless Chrome using Karma
keichi Oct 4, 2021
97116ee
Run style check with prettier on CI
keichi Oct 12, 2021
7e837fd
Add documentation for sizeOf() in README
keichi Oct 27, 2021
b4080d7
Fix assert as method definition
mohd-akram Nov 23, 2021
6543684
Bump to v2.0.2
keichi Nov 24, 2021
b52a54c
Bump karma from 6.3.4 to 6.3.14
dependabot[bot] Feb 11, 2022
6065daf
Bump follow-redirects from 1.14.4 to 1.14.8
dependabot[bot] Feb 14, 2022
61446da
Bump log4js from 6.3.0 to 6.4.1
dependabot[bot] Feb 15, 2022
60d7b60
Update dependencies
keichi Feb 15, 2022
ca50ae7
Escape assert strings
vexcat Apr 8, 2022
625d232
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Apr 9, 2022
acdfbc3
Bump async from 3.2.1 to 3.2.3
dependabot[bot] Apr 13, 2022
4656f52
Format source code
keichi Apr 14, 2022
b63ca61
Fix typo (endianess -> endianness)
keichi May 9, 2022
f9672b8
Update dependencies
keichi May 9, 2022
6ab9435
Bump to v2.0.3
keichi May 9, 2022
11e1a49
Allow long bit field sequences
mohd-akram May 18, 2022
2b75d23
Bump to 2.1.0
keichi Jun 5, 2022
b7ffee6
feat: make `name` parameter optional for `wrapped`
wpyoga Sep 2, 2022
a8fca1e
fix: remove unnecessary null guard
wpyoga Sep 2, 2022
adce05f
test: add test for `wrapped` with empty `name` and without `name` arg…
wpyoga Sep 2, 2022
c3743aa
docs: update readme to reflect the new feature
wpyoga Sep 2, 2022
72b1e91
Bump to v2.2.0
keichi Sep 5, 2022
695243e
Add source map lib files
cmdcolin Sep 14, 2022
fe7a312
Add all dist folder
cmdcolin Sep 14, 2022
d87fc4b
docs: explain how to call `.useContextVars()`
wpyoga Sep 16, 2022
04d5f23
Update dependencies
keichi Sep 20, 2022
9f95d6b
Bump to v2.2.1
keichi Sep 20, 2022
2ba775b
Fix typos
mohd-akram Oct 4, 2022
786be0b
Add CodeQL workflow for GitHub code scanning
lgtm-migrator Nov 9, 2022
6cf521b
Bump socket.io-parser from 4.0.4 to 4.0.5
dependabot[bot] Nov 9, 2022
e5bf1e5
Bump qs and body-parser
dependabot[bot] Dec 8, 2022
21d16be
Bump minimatch from 3.0.4 to 3.1.2
dependabot[bot] Dec 9, 2022
c4731e5
Bump engine.io and socket.io
dependabot[bot] Dec 9, 2022
f6ee616
Bump json5 from 2.2.0 to 2.2.3
dependabot[bot] Jan 7, 2023
c527629
Bump ua-parser-js from 0.7.31 to 0.7.33
dependabot[bot] Jan 27, 2023
b4aa970
Additional checks to determine if next field is a bit field or not
nick-hunter Jun 19, 2023
033ef4a
Fix formatting issues. Add tests
nick-hunter Jun 20, 2023
1c6e68b
Update dependencies
keichi Jul 17, 2023
d6bc4f8
Bump node.js version requirement
keichi Jul 17, 2023
ab81ad7
Fix code formatting
keichi Jul 17, 2023
6ea611b
Merge remote-tracking branch 'upstream/master' into encoder
stereokai Aug 26, 2023
1e92ea8
Add smart-buffer to package-lock.json
stereokai Aug 26, 2023
65e8e39
MAke some corrections to get the build to pass
stereokai Aug 26, 2023
9120a20
Fix formatting of encoder text files
stereokai Aug 26, 2023
40de365
Fix bugs &ensure compatibility w/ ContextVariables
stereokai Aug 26, 2023
51d99c4
Fix bug: assign initial context variables properly
stereokai Aug 27, 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
19 changes: 19 additions & 0 deletions .github/workflows/browser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: test-browser

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: npm ci
- run: npm run test:browser
env:
CI: true
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "12 2 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ javascript ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
12 changes: 5 additions & 7 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: build
name: test-nodejs

on:
push:
Expand All @@ -16,15 +13,16 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [16, 18, 20]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run format
- run: npm run build --if-present
- run: npm test
env:
Expand Down
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true
}
2 changes: 1 addition & 1 deletion LICENSE.md → LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013-2019 Keichi Takahashi <[email protected]>
Copyright (c) 2013-2021 Keichi Takahashi <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading