Skip to content

Commit

Permalink
Merge pull request #434 from jsenv/https_local_migrate
Browse files Browse the repository at this point in the history
Https local migrate
  • Loading branch information
dmail authored Aug 14, 2024
2 parents 1fb9e0c + 4376464 commit 5d414e1
Show file tree
Hide file tree
Showing 99 changed files with 5,077 additions and 67 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_eslint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: npx playwright install-deps
- name: Install certificate # needed for @jsenv/service-worker tests
if: runner.os == 'Linux' # https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context
run: node ./scripts/test/certificate_install.mjs
run: npm run https:setup
- name: Fix lightningcss windows
if: runner.os == 'Windows'
run: npm install lightningcss-win32-x64-msvc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_test_workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
run: npx playwright install-deps
- name: Install certificate # needed for @jsenv/service-worker tests
if: runner.os == 'Linux' # https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context
run: node ./scripts/test/certificate_install.mjs
run: npm run https:setup
- name: Fix lightningcss windows
if: runner.os == 'Windows'
run: npm install lightningcss-win32-x64-msvc
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"workspace:test:ci": "CI=1 npm run workspace:test",
"dev": "node --conditions=development ./scripts/dev/dev.mjs",
"playwright:install": "npx playwright install-deps && npx playwright install",
"certificate:install": "node ./scripts/dev/install_certificate_authority.mjs",
"https:setup": "npx @jsenv/https-local setup",
"prepublishOnly": "npm run build"
},
"dependencies": {
Expand Down Expand Up @@ -97,7 +97,7 @@
"@jsenv/core": "./",
"@jsenv/eslint-config-relax": "workspace:*",
"@jsenv/file-size-impact": "workspace:*",
"@jsenv/https-local": "3.0.7",
"@jsenv/https-local": "workspace:*",
"@jsenv/monorepo": "workspace:*",
"@jsenv/performance-impact": "workspace:*",
"@jsenv/plugin-as-js-classic": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Worker } from "node:worker_threads";
import { existsSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { Worker } from "node:worker_threads";

// we use a worker to bypass node cache on dynamic import
const WORKER_COLLECTING_ONE_EXPORT_FILE_URL = new URL(
Expand Down
40 changes: 40 additions & 0 deletions packages/independent/https-local/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 3.0.6

- Fix certutil command on windows

# 3.0.4

- proper fix for firefox nss database

# 3.0.3

- update deps to fix firefox nssb not found on mac

# 3.0.2

- add nssdb store paths on linux
- improve firefox and chrome detection on linux
- update dependencies and devDependencies
- update mac os to 2022 in github workflow

# 3.0.1

- fix firefox is running detection (could return true because of playwright)

# 3.0.0

- requestCertificateForLocalhost renamed requestCertificate
- do not force "localhost" in altNames anymore

# 2.1.0

- installCertificateAuthority properly retrust root cert on macOS

# 2.0.0

- requestCertificateForLocalhost changes
- becomes sync
- serverCertificateAltNames renamed altNames
- serverCertificateValidityDurationInMs renamed validityDurationInMs
- serverCertificateCommonName renamed commonName
- returns { certificate, privateKey } instead of { serverCertificate, serverPrivateKey }
21 changes: 21 additions & 0 deletions packages/independent/https-local/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 jsenv

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 5d414e1

Please sign in to comment.