Bartek Iwańczuk
211b3ff244
fix(publish): print a warning when .jsx or .tsx is imported ( #22631 )
...
This commit adds a warning when .jsx or .tsx is encountered during
publishing.
This is a stop-gap solution before we fix it proper.
2024-02-29 12:54:57 +01:00
Bartek Iwańczuk
c9b2139b1e
Revert "fix(publish): error if there are uncommitted changes ( #22613 )" ( #22625 )
...
This reverts commit c2c4e745a5
.
2024-02-28 21:35:02 +00:00
Ryan Dahl
f54acb53ed
fix(publish): make the already published message look like a warning ( #22620 )
2024-02-28 21:30:20 +01:00
Bartek Iwańczuk
c2c4e745a5
fix(publish): error if there are uncommitted changes ( #22613 )
...
Closes https://github.com/denoland/deno/issues/22330
2024-02-28 10:21:12 +01:00
Divy Srivastava
9b5d2f8c1b
feat(publish): provenance attestation ( #22573 )
...
Supply chain security for JSR.
```
$ deno publish --provenance
Successfully published @divy/test_provenance@0.0.3
Provenance transparency log available at https://search.sigstore.dev/?logIndex=73657418
```
0. Package has been published.
1. Fetches the version manifest and verifies it's matching with uploaded
files and exports.
2. Builds the attestation SLSA payload using Github actions env.
3. Creates an ephemeral key pair for signing the github token
(aud=sigstore) and DSSE pre authentication tag.
4. Requests a X.509 signing certificate from Fulcio using the challenge
and ephemeral public key PEM.
5. Prepares a DSSE envelop for Rekor to witness. Posts an intoto entry
to Rekor and gets back the transparency log index.
6. Builds the provenance bundle and posts it to JSR.
2024-02-28 07:58:02 +05:30
David Sherret
e9fe71acb5
fix(unstable): sloppy imports should resolve .d.ts files during types resolution ( #22602 )
2024-02-27 18:30:21 +00:00
Luca Casonato
8d5c231349
feat(publish): support sloppy imports and bare node built-ins ( #22588 )
2024-02-27 15:13:16 +00:00
Bartek Iwańczuk
f1a691274e
feat(publish): discover jsr.json and jsr.jsonc files ( #22587 )
...
Closes https://github.com/denoland/deno/issues/22491
2024-02-27 08:27:21 +00:00
Marvin Hagemeister
cddefecfff
feat: infer dependencies from package.json ( #22563 )
...
<!--
Before submitting a PR, please read
https://docs.deno.com/runtime/manual/references/contributing
1. Give the PR a descriptive title.
Examples of good title:
- fix(std/http): Fix race condition in server
- docs(console): Update docstrings
- feat(doc): Handle nested reexports
Examples of bad title:
- fix #7123
- update docs
- fix bugs
2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't
run
all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench'
label.
-->
This PR enhances the `deno publish` command to infer dependencies from
`package.json` if present.
2024-02-23 15:56:49 +01:00
Divy Srivastava
f49abcc1ac
feat(publish): respect .gitignore during deno publish
( #22514 )
...
Files from `.gitignore`, global git config, `.git/info/exclude` and
`deno.json`'s `exclude` are ignored.
2024-02-23 07:56:34 +05:30
David Sherret
9166d8a4e9
feat(publish): type check on publish ( #22506 )
...
Supersedes #22501 and also fixes that issue.
2024-02-21 08:35:25 -05:00
David Sherret
f90889e5ee
perf(jsr): fast check cache and lazy fast check graph ( #22485 )
2024-02-20 21:29:57 +00:00
Luca Casonato
54a3eb585d
fix(publish): print files that will be published ( #22495 )
2024-02-20 13:30:34 +01:00
Luca Casonato
ef43d51497
fix(publish): ignore .DS_Store while publishing ( #22478 )
2024-02-19 10:48:35 -05:00
David Sherret
66424032a2
feat(unstable/lint): no-slow-types for JSR packages ( #22430 )
...
1. Renames zap/fast-check to instead be a `no-slow-types` lint rule.
1. This lint rule is automatically run when doing `deno lint` for
packages (deno.json files with a name, version, and exports field)
1. This lint rules still occurs on publish. It can be skipped by running
with `--no-slow-types`
2024-02-19 15:28:41 +00:00
David Sherret
828d9b8485
refactor: remove module graph setup from ModuleLoader ( #22442 )
...
`ModuleLoader` was doing too much duplicate work.
2024-02-16 22:10:06 +00:00
Nayeem Rahman
012a9d8aeb
chore: rename DENO_REGISTRY_URL to JSR_URL ( #22414 )
2024-02-14 18:30:44 +00:00
Leo Kettmeir
981a19f067
feat(unstable): define config in publish url ( #22406 )
2024-02-14 12:53:15 +01:00
David Sherret
e5e2c45998
fix: upgrade to deno_ast 0.33 ( #22341 )
...
* Uses diagnostics from deno_ast
* Real fix for https://github.com/denoland/deno/pull/22310
* Moves `deno lint --json` code here
* Upgrades swc
Closes #22117
Closes #22109
Closes #21927
Closes #20993
2024-02-09 01:40:26 +00:00
David Sherret
83d72e5c1c
refactor: extract out runtime::colors
to deno_terminal::colors
( #22324 )
2024-02-07 11:25:14 -05:00
David Sherret
c6def993e0
fix(publish): lazily parse sources ( #22301 )
...
Closes #22290
2024-02-06 15:57:10 -05:00
Bartek Iwańczuk
aba91490d6
fix(publish): use lighter crate for opening browser ( #22224 )
...
Alternative to https://github.com/denoland/deno/pull/22223 which
switches `webbrowser` crate to `open` (https://crates.io/crates/open )
which is lighterweight.
2024-02-01 16:25:56 +01:00
Leo Kettmeir
e58b1900a7
fix(publish): add node specifiers ( #22213 )
2024-02-01 05:18:44 +01:00
David Sherret
4b7c6049ef
refactor: load bytes in deno_graph ( #22212 )
...
Upgrades deno_graph to 0.64 where deno_graph is now responsible for
turning bytes into a string. This is in preparation for Wasm modules.
2024-02-01 03:15:22 +00:00
Bartek Iwańczuk
830d096b66
fix(publish): rename --no-fast-check to --no-zap ( #22214 )
...
Also prints an information about the flag when there are `zap` errors.
2024-02-01 02:16:52 +00:00
Bartek Iwańczuk
163491f237
chore(publish): try to automatically open the web browser ( #22208 )
2024-01-31 22:38:57 +01:00
Bartek Iwańczuk
560390c93c
chore(publish): add --no-fast-check flag ( #22203 )
2024-01-31 16:10:31 +01:00
Luca Casonato
316093fec4
feat(publish): error on invalid external imports ( #22088 )
2024-01-24 21:59:18 +00:00
Luca Casonato
52ad1ef154
feat(publish): give diagnostic on invalid package files ( #22082 )
2024-01-24 21:24:52 +00:00
Luca Casonato
176118a046
feat(publish): exclude and include ( #22055 )
2024-01-24 20:30:08 +00:00
Luca Casonato
745333f073
chore: improve unanalyzable dynamic import diagnostic ( #22051 )
2024-01-24 14:49:33 +01:00
Luca Casonato
137f1a0c68
feat(cli): improved diagnostics printing ( #22049 )
...
This initially uses the new diagnostic printer in `deno lint`,
`deno doc` and `deno publish`. In the limit we should also update
`deno check` to use this printer.
2024-01-23 16:37:43 +01:00
Luca Casonato
052fd78690
refactor: use parsed source cache when unfurling import map ( #22001 )
2024-01-23 12:40:23 +01:00
Bartek Iwańczuk
e49973d96d
chore: update deno_ast and deno_graph ( #22033 )
...
This upgrade unblocks support for ES decorator proposal.
Co-authored-by: crowlkats <crowlkats@toaxl.com>
2024-01-23 11:25:44 +01:00
David Sherret
35c1652f56
fix(lsp): regression - formatting was broken on windows ( #21972 )
...
~~Waiting on: https://github.com/denoland/deno_config/pull/31~~
Closes #21971
Closes https://github.com/denoland/vscode_deno/issues/1029
2024-01-18 15:57:30 -05:00
David Sherret
4e72ca313a
refactor: use globbing from deno_config ( #21925 )
2024-01-15 19:15:39 -05:00
Bartek Iwańczuk
72ecfe0419
fix(publish): support deno.jsonc file ( #21948 )
2024-01-15 15:07:57 +00:00
Bartek Iwańczuk
f45ceb2320
chore(publish): add --dry-run flag ( #21895 )
2024-01-11 21:17:03 +00:00
David Sherret
70ac06138c
feat(unstable): fast subset type checking of JSR dependencies ( #21873 )
2024-01-10 22:40:30 +00:00
David Sherret
0efb17b2cb
fix(unstable/tar): skip node_modules, .git, and config "exclude" ( #21816 )
2024-01-08 18:51:49 -05:00
Bartek Iwańczuk
43d2ecd4f0
fix(registry): wait for already pending publish ( #21663 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-01-08 15:25:18 +00:00
David Sherret
7e72f3af61
chore: update copyright to 2024 ( #21753 )
2024-01-01 19:58:21 +00:00
Bartek Iwańczuk
c2414db1f6
refactor: simplify hyper, http, h2 deps ( #21715 )
...
Main change is that:
- "hyper" has been renamed to "hyper_v014" to signal that it's legacy
- "hyper1" has been renamed to "hyper" and should be the default
2023-12-27 11:59:57 -05:00
Bartek Iwańczuk
8fbac67395
refactor: change cli/ to use hyper 1.1 ( #21705 )
2023-12-26 14:32:21 +01:00
Bartek Iwańczuk
4c2c053afe
fix: urls for publishing ( #21613 )
2023-12-17 10:50:11 +00:00
Bartek Iwańczuk
fd6044dfec
fix: prompts when publishing ( #21596 )
2023-12-15 13:52:51 +00:00
Bartek Iwańczuk
62e3f5060e
refactor: check if scope and package exist before publish ( #21575 )
...
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2023-12-15 10:27:10 +00:00
Bartek Iwańczuk
19d52b9a55
refactor: split registry into multiple modules ( #21572 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-12-14 12:05:59 +01:00
David Sherret
4b6fc64646
chore(unstable/publish): ordered publish of packages in workspace ( #21550 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-12-14 10:55:56 +01:00
Bartek Iwańczuk
bbf8f69cb9
test: integration tests for tarring/unfurling ( #21544 )
2023-12-13 11:00:45 +01:00
Bartek Iwańczuk
0ceae7a490
refactor: suggest entrypoint on missing 'exports' ( #21549 )
2023-12-12 19:18:02 +01:00
Bartek Iwańczuk
ece78cfb8a
refactor: nicer warning display ( #21547 )
2023-12-12 23:45:45 +09:00
Bartek Iwańczuk
06c5f99a01
refactor: better handling for registry urls ( #21545 )
2023-12-12 23:45:20 +09:00
Luca Casonato
9eb25e3cff
fix: error code used for duplicate version publish ( #21457 )
2023-12-04 15:19:01 +01:00
Luca Casonato
7d5ddc462c
fix: don't error if a version already published ( #21455 )
2023-12-04 12:40:58 +01:00
Luca Casonato
9444bab186
fix: correct the batch upload length ( #21401 )
2023-11-30 23:07:26 +01:00
Luca Casonato
ffa09541d7
fix: batch upload authentication ( #21397 )
2023-11-30 19:54:54 +01:00
Luca Casonato
7e56a0466f
fix: use correct import map in tar & upload ( #21380 )
2023-11-29 13:59:30 +00:00
Luca Casonato
f6cc80cddc
fix: extraneous slash in tar & upload ( #21349 )
2023-11-27 18:09:33 +01:00
Bartek Iwańczuk
585cf2de89
feat(unstable): tar up directory with deno.json ( #21228 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-11-23 23:38:07 +00:00