Skip to content

Commit

Permalink
Merge pull request #57 from badgateway/esm2
Browse files Browse the repository at this point in the history
ESM conversion
  • Loading branch information
evert authored Jan 28, 2024
2 parents 78bd9ef + 72f7415 commit 1414079
Show file tree
Hide file tree
Showing 13 changed files with 102 additions and 1,004 deletions.
10 changes: 1 addition & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
SOURCE_FILES:=$(shell find src/ -type f -name '*.ts')

.PHONY: build
build: browser/structured-header.min.js
build: dist/build

.PHONY: clean
clean:
rm -r browser/
rm -r dist/

.PHONY: test
Expand All @@ -28,17 +27,10 @@ fix:
watch:
node_modules/.bin/tsc --watch

.PHONY: browserbuild
browserbuild: dist/build
mkdir -p browser
node_modules/.bin/webpack --mode production

dist/build: $(SOURCE_FILES)
node_modules/.bin/tsc
@# A fake file to keep track of the last build time
touch dist/build

browser/structured-header.min.js: browserbuild

test/httpwg-tests/list.json:
git clone https://github.com/httpwg/structured-header-tests test/httpwg-tests
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ ChangeLog
work, but the new API is a bit more natural and doesn\'t require wrapping
everything in arrays and Maps.
* Now requires Node 18.
* Converted to ESM.
* No longer providing a Webpack build. Most frontend applications already do
their own bundling. Please let us know if you need this, so we can do
something with modern tools.


1.0.1 (2023-08-03)
Expand Down
Loading

0 comments on commit 1414079

Please sign in to comment.