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

ESM conversion #57

Merged
merged 3 commits into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading