Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
2903753
Bump acorn from 7.1.0 to 7.1.1 (#866)
dependabot[bot] Mar 14, 2020
c1e1d68
Bump minimist from 1.2.0 to 1.2.2 (#867)
dependabot[bot] Mar 14, 2020
466b5fd
update dictionary for node-forge. addresses #791
igorklopov Mar 14, 2020
fa2aff6
dictionary for compressjs. fixes #827
igorklopov Mar 14, 2020
54c0cca
bump dependencies
igorklopov Mar 29, 2020
16bb963
4.4.5
igorklopov Mar 29, 2020
03f8dba
pin fs-extra temporarily. fixes https://github.com/zeit/pkg/issues/883
igorklopov Apr 5, 2020
fb1aba4
reset yarn.lock, bump kind-of to 6.0.3
igorklopov Apr 5, 2020
4856b09
4.4.6
igorklopov Apr 5, 2020
b069daa
fix tests runner and test-50-fs-runtime-layer-2
igorklopov Apr 11, 2020
c446a5c
consider file path as Buffer and as URL. fixes #886
igorklopov Apr 11, 2020
591be02
make isRootPath support directory path as buffer
igorklopov Apr 12, 2020
8540b3e
fix URL file paths for win32
igorklopov Apr 12, 2020
1634ca3
uppercaseDriveLetter is not needed in posix normalizePath
igorklopov Apr 12, 2020
14544ca
4.4.7
igorklopov Apr 12, 2020
f085794
feat: support for classPrivateProperties (#891)
FGRibreau Apr 26, 2020
5cfe31a
bump pkg-fetch. adds node 14
igorklopov Apr 26, 2020
78a7365
add testing node 14. remove testing node 8
igorklopov Apr 26, 2020
64c4042
4.4.8
igorklopov Apr 26, 2020
66b7326
Added support for user-defined pkg config for 3rd party dependencies …
pkt-zer0 May 10, 2020
2ad4548
move dictionary-related work to readDictionary
igorklopov May 10, 2020
463e58d
bump node versions in CI
igorklopov May 10, 2020
6f65427
decouple node14 from node12 in test-50-fs-runtime-layer-2
igorklopov Jun 28, 2020
9e70a79
bump pkg-fetch
igorklopov Jun 28, 2020
6e0578e
4.4.9
igorklopov Jun 28, 2020
f1eaf05
Branding change (#939)
Jacob-Marshall Jul 11, 2020
7fbf6f1
Update badges in README (#949)
styfle Aug 3, 2020
d3ba3d0
update tests test for node 14 CI (#977)
igorklopov Sep 20, 2020
52b4933
Bump lodash from 4.17.15 to 4.17.19 (#945)
dependabot[bot] Sep 20, 2020
d6f1d7c
Added environment var section on Readme (#684)
robertsLando Mar 2, 2021
c7deaea
Add missing stat.isSocket (#720)
zvin Mar 2, 2021
d33b1c5
Fix configuration for node-notifier (#1021)
Mar 2, 2021
a56886b
Add support for Node native addons (#837)
geekuillaume Mar 2, 2021
7a9257a
docs: MAKE_JOB_COUNT and PKG_IGNORE_TAG env var (#1053)
robertsLando Mar 2, 2021
c929f4a
Bugfix for fs.readdir(), fs.readdirSync() (#992)
la9527 Mar 12, 2021
9024c09
Replace deprecated `assert.equal` and `assert.deepEqual`. (#1063)
erossignon Mar 13, 2021
55cda5f
Update ZEIT to Vercel in package.json. (#1064)
leerob Mar 13, 2021
3b947c8
Add cross-platform support for dot-node files. (#1066)
david-mohr Mar 19, 2021
a9df2bc
4.5.0
leerob Mar 22, 2021
7423b28
Added documentation about NODE_OPTIONS (#996)
SnakeDrak Mar 23, 2021
a20111e
bootstrap: adjust for internalModuleReadJSON of newer Node.js
alexk111 Jan 9, 2021
9598890
bootstrap: support both old and new internalModuleReadJSON
xanonid Mar 5, 2021
31e8bf7
chore: add ci, stale workflows and dependabot (#1074)
robertsLando Mar 24, 2021
ddf5217
Set up and run Prettier over entire codebase. (#1076)
hipstersmoothie Mar 25, 2021
663f3f0
Drop dependabot.yml in favor of repo settings. (#1092)
robertsLando Mar 25, 2021
1c219c8
Remove incorrect \\?\ prefix on windows and fs.promises fixes (#1095)
robertsLando Mar 25, 2021
e463acc
Upgrade ESLint + move to `eslint-config-airbnb-base`. (#1088)
hipstersmoothie Mar 25, 2021
9bb4f70
promisified exec and execFile should return a promise with ChildProce…
onip Mar 26, 2021
165fcd5
chore: make pkg-fetch dep static (temporarily). (#1100)
robertsLando Mar 26, 2021
f08d083
Add pkg.outputPath as a configuration option. (#574)
Symbitic Mar 26, 2021
c332fbb
4.5.1
leerob Mar 26, 2021
cceb78a
Update release script. (#1102)
leerob Mar 26, 2021
11b93bf
Update all dependencies to latest. (#1062)
erossignon Mar 26, 2021
c9ad6ff
Add Windows builds on CI. (#1105)
erossignon Mar 28, 2021
d9dc558
Add section about bytecode flag to README.md (#1106)
whexberg Mar 29, 2021
2c1fa89
typo fix in readme (#1108)
BlackYuzia Mar 30, 2021
79cca54
feat(parser): handle template literal without expressions (#981)
DevSide Mar 30, 2021
eb8921a
Add support for symlink and pnpm. (#1060)
erossignon Mar 31, 2021
bbb20b2
Update License Zeit -> Vercel. (#1113)
leerob Mar 31, 2021
d3b9585
Extend ESLint to test files. (#1107)
erossignon Mar 31, 2021
b7426da
Remove coverage badge from README. (#1114)
leerob Mar 31, 2021
6deb812
TypeScript Rewrite (#1099)
hipstersmoothie Apr 1, 2021
3507e2c
Skip pnpm tests when nodeversion is < 12 (#1122)
erossignon Apr 7, 2021
94cdb69
test: add unit test for #775 (#1118)
erossignon Apr 7, 2021
8756fc1
Support mkdir at mountpoints (#1120)
phated Apr 8, 2021
14fb420
Bump to vercel/pkg-fetch@v3.0.1
jesec Apr 8, 2021
5a97ee2
Cleanup dependencies
jesec Apr 8, 2021
bba8148
Don't mix objects of different types
jesec Apr 8, 2021
247d1d5
Fix "pkg-fetch" types
jesec Apr 10, 2021
6ecd52a
Drop references to Node < 8
jesec Apr 10, 2021
63f4ce0
test: add "node14" to fetch-all
jesec Apr 10, 2021
779adf8
Fix isPublic check for licenses array (#1140)
Hypfer Apr 22, 2021
211da6e
Bump to vercel/pkg-fetch@v3.0.2
jesec Apr 22, 2021
08b26a4
Bump to vercel/pkg-fetch@v3.0.3 (#1142)
jesec Apr 22, 2021
ee8808a
5.0.0
leerob Apr 22, 2021
1f05232
test: bump expected major to 5 (#1145)
jesec Apr 23, 2021
82a43db
improve doc to explain how to pass multiple baked options (#1132) (#1…
erossignon Apr 23, 2021
a3f9110
Use "linuxstatic" to generate bytecode for different arch on Linux (#…
jesec Apr 23, 2021
3941c7d
fix .node loading issue on windows (#1335) (#1143)
erossignon Apr 24, 2021
382f643
Support RegExp mountpoints (#1121)
phated Apr 24, 2021
36c28f9
Bump to vercel/pkg-fetch@v3.0.4
jesec Apr 27, 2021
6adde0f
CI: add Node 16 to matrix
jesec Apr 27, 2021
655ee18
test: test with Node 16
jesec Apr 27, 2021
3027f3f
5.1.0
leerob Apr 27, 2021
ea7d72b
feature: allow to compress files in virtual file system (#1115)
erossignon May 1, 2021
551d07d
test-50-fs-runtime-layer-2: remove unnecessary assertion on hint
jesec May 7, 2021
be5c2ae
feature: allow macOS code signing by including payload in str table
jesec May 5, 2021
0b55f9a
Ad-hoc sign the fabricator binary temporarily to generate bytecode on…
jesec May 5, 2021
b8ef570
Add support for fs.realpath.native (#1173)
Infern1 May 10, 2021
8d2799d
Bump hosted-git-info from 2.8.8 to 2.8.9 (#1177)
dependabot[bot] May 12, 2021
c2b7d6c
Add a warning about the macOS mandatory code signing requirement (#1176)
jesec May 12, 2021
ea23196
fs.createReadStream and --compress (#1158)
erossignon May 13, 2021
6fac6dc
Bump to vercel/pkg-fetch@v3.1.0
jesec May 19, 2021
4488ab7
5.2.0
leerob May 20, 2021
82ce625
prelude: create tmpFolder only when needed for decompression
jesec May 23, 2021
1f3e235
Bump to vercel/pkg-fetch@v3.1.1
jesec May 24, 2021
2c720b1
5.2.1
leerob May 24, 2021
760b9c4
Bump browserslist from 4.16.3 to 4.16.6
dependabot[bot] May 25, 2021
9c6973d
README: remove dead dependency badges
jesec May 27, 2021
010cf84
README: use "HEAD" instead of "master" for links, see nodejs/node@26e…
jesec May 27, 2021
491941b
README: update the target list
jesec May 27, 2021
709d711
README: link to vercel/pkg-fetch in the "Build" section
jesec May 27, 2021
bd5f361
README: add notes about building for different archs
jesec May 27, 2021
447b2db
README: add notes about "macos-arm64"
jesec May 27, 2021
e8a2c63
README: add notes about "linuxstatic" and native bindings
jesec May 27, 2021
52ddf23
Squashed revert "allow to compress files in virtual file system (#1115)"
jesec May 31, 2021
a22fd80
bootstrap: remove support for Node < 8
jesec Jun 2, 2021
208e241
bootstrap: use "const"/"let" instead of "var", require at top
erossignon Jun 2, 2021
d696260
test-50-fs-runtime-layer-3: use "Buffer.from" instead of "new Buffer"
erossignon May 31, 2021
bcec96c
test: add tests for #1191 and #1192
erossignon Jun 2, 2021
80103dd
producer: improve readability and remove backed up native addon at th…
mojoaxel May 4, 2021
96eceed
injectSnapshot: always use "C:\snapshot" on win (#1212)
erossignon Jun 7, 2021
38a9a8c
eslint: use airbnb-base rules for TypeScript as well
jesec Jun 4, 2021
ff56872
Fixes "@typescript-eslint/naming-convention"
jesec Jun 4, 2021
30b25ab
Fixes "no-nested-ternary"
jesec Jun 4, 2021
5c82b6d
Remove unused "appveyor.yml"
jesec Jun 5, 2021
2070696
tsconfig: bump target to "es2017" as Node 8 is the minimum
jesec Jun 5, 2021
cd5ce74
Revert^2 "allow to compress files in virtual file system (#1115)" (#…
erossignon Jun 8, 2021
932a319
5.3.0
leerob Jun 24, 2021
5813016
Bump to vercel/pkg-fetch@v3.2.1
jesec Jun 7, 2021
03c5e98
Bump to vercel/pkg-fetch@v3.2.2
jesec Jul 3, 2021
8cd96a1
Allow to fallback to "ldid" for macOS ad-hoc signing
jesec Jul 12, 2021
d65eb64
README: mention "ldid" utility on Linux for macOS signing
jesec Jul 12, 2021
09c3f21
5.3.1
leerob Jul 21, 2021
2c57b62
Bump to vercel/pkg-fetch@v3.2.3 (#1308)
jesec Sep 11, 2021
59125d1
5.3.2
leerob Sep 11, 2021
165617a
bootstrap: better support of `.node` files (#1321)
robertsLando Sep 30, 2021
df02066
CI: master -> main
jesec Oct 1, 2021
48ddda0
5.3.3
leerob Oct 1, 2021
bf8c62c
bootstrap: skip regex when dlopen path isn't inside snapshot (#1327)
robertsLando Oct 4, 2021
ff2092c
fix: catch babel parse errors (#1324)
robertsLando Oct 6, 2021
e9ad326
bootstrap: fix module parsing for all os (#1331)
robertsLando Oct 9, 2021
85ccec3
feat: allow to skip dictionaries patches with `--no-dict` option (#1330)
robertsLando Oct 10, 2021
4ed2ee4
feat: add `no-native-build` option to skip native addons build
robertsLando Oct 12, 2021
7f0b492
fix: improve `unlikelyJavascript` check
robertsLando Oct 13, 2021
08fa5ab
5.3.4
leerob Oct 26, 2021
13db95c
5.4.0
leerob Oct 26, 2021
628d077
Bump to vercel/pkg-fetch@v3.2.4
jesec Oct 26, 2021
db58f7d
5.4.1
leerob Oct 30, 2021
6c8224b
Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Oct 30, 2021
62f6da9
dependencies: bump (minor)
jesec Nov 5, 2021
72e877f
.github: add issue templates
jesec Nov 10, 2021
b63df87
ldid: explicitly mark signature as adhoc
asdfugil Nov 11, 2021
1bf9be8
Add support for import with `node:` (#1405)
mallardduck Nov 24, 2021
58b3e2c
5.4.2
leerob Nov 29, 2021
d26e457
5.5.0
leerob Nov 29, 2021
66e7e57
Bump to vercel/pkg-fetch@v3.2.5
jesec Nov 29, 2021
f081c63
5.5.1
leerob Nov 29, 2021
7ac539b
Bump to vercel/pkg-fetch@v3.2.6 (#1478)
jesec Jan 13, 2022
2ef4cd9
5.5.2
leerob Jan 13, 2022
813163a
README: fix markdown code block styling (#1483)
jonaugustine Jan 17, 2022
b599720
bootstrap: always copy module folders to temporary folder (#1492)
trippier1 Jan 30, 2022
5010411
fix: bootstrap: fs readdir and readdirSync (#1130/#1299) (#1495)
kldzj Feb 1, 2022
b61c60f
bootstrap: extract native addons not in node_modules to the temporary…
paul-marechal Feb 1, 2022
37cc27e
Bump node-fetch from 2.6.6 to 2.6.7 (#1497)
dependabot[bot] Feb 2, 2022
72bc8b3
fix: allow copyFile and copyFileSync from snapshot (#1484)
robertsLando Feb 3, 2022
64774c5
fix #1505 and add test (#1511)
kldzj Feb 12, 2022
a67c926
build(deps): bump simple-get from 3.1.0 to 3.1.1 (#1512)
dependabot[bot] Feb 22, 2022
53b23fb
feat: add simple type export (#1557)
louisgv Mar 17, 2022
edfcc7b
chore: replace deprecated String.prototype.substr() (#1560)
CommanderRoot Mar 21, 2022
46b3aa5
fix: `bytecode` option is a boolean (#1554)
paul-marechal Apr 1, 2022
63eaeab
fix: do not overwrite temp .node files (#1547)
paul-marechal Apr 1, 2022
fde330c
Bump to vercel/pkg-fetch@v3.3.0 (#1578)
jesec Apr 3, 2022
acfe83a
build(deps): bump minimist from 1.2.5 to 1.2.6 (#1579)
dependabot[bot] Apr 5, 2022
8cd98af
5.6.0
leerob Apr 5, 2022
193b778
test: test pnpm packages only on node >= 14.19 (#1613)
kldzj May 5, 2022
eb03b56
dependencies: bump (minor)
jesec May 5, 2022
c18c3c6
follow, walker: fix types of follow, reduce confusion
jesec May 5, 2022
fb3de6b
follow, walker: replace core module routines with "is-core-module"
jesec May 5, 2022
0227bab
dependencies: drop unused "progress" and "tslib"
jesec May 5, 2022
137a9e0
dependencies: replace the multistream typing override with "@types/mu…
jesec May 5, 2022
f0c4e8c
fix(bootstrap): prevent overriding existing node addon file (#1611)
renkei May 9, 2022
207b653
Bump to vercel/pkg-fetch@v3.4.1 (#1616)
jesec May 14, 2022
7e4fef9
5.7.0
leerob May 18, 2022
e7e67aa
test: rearrange and fix order
jesec Jun 1, 2022
7c72f3a
test: fs-runtime-layer: remove "birthtime" check
jesec Jun 1, 2022
3f1c883
dependencies: bump (minor)
jesec Jun 1, 2022
6c98d49
detector: use Babel AST and default plugins
jesec Jun 1, 2022
5a0eaa6
fabricator: "wierd" -> "weird" in comment (#1661)
eltociear Jun 21, 2022
6c930c9
Bump to vercel/pkg-fetch@v3.4.2
jesec Jul 11, 2022
f81a08c
5.8.0
leerob Jul 13, 2022
dd9de59
producer: properly call "prebuild-install" if N-API is used
jesec Jul 19, 2022
56135b5
chore: clean up obsolete eslint disable comments (#1760)
ignatiusmb Sep 19, 2022
6efa7cf
chore: add prettier check in linting step (#1764)
ignatiusmb Sep 20, 2022
332c7d9
chore: separate individual test scripts (#1759)
ignatiusmb Sep 20, 2022
b8deba4
chore: use `@types/babel__generator` package (#1755)
ignatiusmb Sep 20, 2022
39e9985
chore: remove unused entry (#1766)
ignatiusmb Sep 21, 2022
614c02a
chore: upgrade actions runners (#1767)
ignatiusmb Sep 21, 2022
be1123c
style: fix typo in test-99-#1192/main.js (#1790)
eltociear Oct 31, 2022
e3ac490
chore: bump prebuild-install@7.1.1 (#1788)
PraveenAnaparthi Nov 8, 2022
f19285d
fix: add force flag to codesign to avoid already signed error (#1756)
brianunlam Mar 6, 2023
5dc987b
5.8.1
leerob Mar 8, 2023
edfdadb
feat: add option to skip signature on macos (#1878)
Mikescops Mar 17, 2023
e388983
feat: support node19 (#1862)
phated Mar 18, 2023
8eef5ea
chore: make corruption test pass on macos (#1890)
Mar 20, 2023
4fe0b4d
chore: remove eol nodejs in tests (#1889)
Mar 21, 2023
265c00e
test: update tesseract.js test for v4 (#1864)
some1chan Mar 22, 2023
c353cc9
chore: remove unused dependencies (#1769)
ignatiusmb Mar 28, 2023
7255f64
test: ignore pnpm test for node14 (#1919)
emmansun Apr 28, 2023
76010f6
chore: bump pkg-fetch to 3.5.2 (#1914)
dav-is May 2, 2023
e51efbe
fix: Add missing functions from restored fs.Stats (#1923)
phated May 6, 2023
73a03d1
fix: missing entrypoint when launched from self-created child process…
Luzzifus Jun 21, 2023
ace66be
build(deps): bump word-wrap from 1.2.3 to 1.2.4 (#1965)
dependabot[bot] Jul 19, 2023
bb04269
build(deps): bump semver from 6.3.0 to 6.3.1 (#1958)
dependabot[bot] Jul 19, 2023
9066cee
Deprecate `pkg`.
leerob Jan 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
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/lib-es5
lib-es5
node_modules
dist
74 changes: 74 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"extends": ["airbnb-base", "prettier"],
"rules": {
"no-bitwise": "off",
"no-continue": "off",
"no-await-in-loop": "off",
"no-constant-condition": "off",
"no-param-reassign": "off",
"consistent-return": "off",
"no-restricted-syntax": "off",
"import/prefer-default-export": "off",
"camelcase": "off"
},
"overrides": [
{
"files": ["*.ts"],
"extends": [
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"consistent-return": "off",
"import/prefer-default-export": "off",
"no-await-in-loop": "off",
"no-bitwise": "off",
"no-constant-condition": "off",
"no-continue": "off",
"no-param-reassign": "off",
"no-restricted-syntax": "off"
}
},
{
"files": ["prelude/**/*"],
"rules": {
"strict": "off"
}
},
{
"files": ["test/**/*"],
"rules": {
"array-callback-return": "off",
"func-names": "off",
"global-require": "off",
"guard-for-in": "off",
"import/extensions": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off",
"import/newline-after-import": "off",
"import/no-unresolved": "off",
"import/no-useless-path-segments": "off",
"import/order": "off",
"no-console": "off",
"no-lonely-if": "off",
"no-multi-assign": "off",
"no-undef": "off",
"no-else-return": "off",
"no-use-before-define": "off",
"object-shorthand": "off",
"one-var": "off",
"prefer-arrow-callback": "off",
"prefer-destructuring": "off",
"prefer-object-spread": "off",
"prefer-template": "off",
"strict": ["error", "global"]
}
}
]
}
70 changes: 70 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: 🐞 Bug Report
description: Create a bug report for pkg
labels: 'template: bug'
body:
- type: markdown
attributes:
value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.
- type: markdown
attributes:
value: If you leave out sections there is a high likelihood it will be moved to the GitHub Discussions "Question" section.
- type: markdown
attributes:
value: 'Please first search the repository for similar issues and discussions.'
- type: input
attributes:
label: What version of pkg are you using?
description: '`pkg --version` - For example: 5.4.1'
validations:
required: true
- type: input
attributes:
label: What version of Node.js are you using?
description: '`node --version` - For example: 16.0.0'
validations:
required: true
- type: input
attributes:
label: What operating system are you using?
description: 'For example: macOS, Windows, Ubuntu 20.04'
validations:
required: true
- type: input
attributes:
label: What CPU architecture are you using?
description: 'For example: x86_64, arm64, armv7, Intel 12900K, Apple M1'
validations:
required: true
- type: input
attributes:
label: What Node versions, OSs and CPU architectures are you building for?
description: 'For example: default, node18, node18-linux-x64, node16-win-arm64'
validations:
required: true
- type: textarea
attributes:
label: Describe the Bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: To Reproduce
description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below.
validations:
required: true
- type: markdown
attributes:
value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear.
- type: markdown
attributes:
value: Contributors should be able to follow the steps provided in order to reproduce the bug.
- type: markdown
attributes:
value: These steps are used to add integration tests to ensure the same issue does not happen again. Thanks in advance!
76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/02_regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: ⏮️ Regression report
description: Report a bug not seen in an earlier version of pkg
labels: 'template: regression'
body:
- type: markdown
attributes:
value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.
- type: markdown
attributes:
value: If you leave out sections there is a high likelihood it will be moved to the GitHub Discussions "Question" section.
- type: markdown
attributes:
value: 'Please first search the repository for similar issues and discussions.'
- type: input
attributes:
label: What version of pkg are you using?
description: '`pkg --version` - For example: 5.4.1'
validations:
required: true
- type: input
attributes:
label: Which version(s) of pkg work for you?
description: '`pkg --version` - For example: < 5.4.1, 5.3.0, 4.5.0'
validations:
required: true
- type: input
attributes:
label: What version of Node.js are you using?
description: '`node --version` - For example: 16.0.0'
validations:
required: true
- type: input
attributes:
label: What operating system are you using?
description: 'For example: macOS, Windows, Ubuntu 20.04'
validations:
required: true
- type: input
attributes:
label: What CPU architecture are you using?
description: 'For example: x86_64, arm64, armv7, Intel 12900K, Apple M1'
validations:
required: true
- type: input
attributes:
label: What Node versions, OSs and CPU architectures are you building for?
description: 'For example: default, node18, node18-linux-x64, node16-win-arm64'
validations:
required: true
- type: textarea
attributes:
label: Describe the Bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: To Reproduce
description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below.
validations:
required: true
- type: markdown
attributes:
value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear.
- type: markdown
attributes:
value: Contributors should be able to follow the steps provided in order to reproduce the bug.
- type: markdown
attributes:
value: These steps are used to add integration tests to ensure the same issue does not happen again. Thanks in advance!
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contact_links:
- name: 💡 Feature Request
url: https://github.com/vercel/pkg/discussions/new
about: Share ideas for new features
- name: ❓ Question
url: https://github.com/vercel/pkg/discussions/new
about: General questions
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
test:
strategy:
fail-fast: false # prevent test to stop if one fails
matrix:
node-version: [14.x, 16.x, 18.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: ~/.pkg-cache/
key: ${{ matrix.os }}-${{ matrix.node-version }}

- run: yarn install
- if: matrix['node-version'] == '18.x' && matrix['os'] == 'ubuntu-latest'
run: yarn lint
- run: yarn build
- run: yarn test
20 changes: 20 additions & 0 deletions .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Close stale issues'
on:
schedule:
- cron: '0 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label'
close-issue-message: 'This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.'
stale-pr-message: 'This pull-request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this pull-request entirely you can add the no-stale label'
close-pr-message: 'This pull-request is now closed due to inactivity, you can of course reopen or reference this pull-request if you see fit.'
days-before-stale: 90
days-before-close: 5
exempt-issue-labels: 'no-stale,enhancement'
exempt-pr-labels: 'no-stale'
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ examples/express/express-example

# Example dependencies
examples/express/node_modules

# Editors
.vscode/
yarn-error.log
tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib-es5/
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Zeit, Inc.
Copyright (c) 2021 Vercel, Inc.

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