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

chore: merge main into v2 #6816

Merged
merged 414 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
414 commits
Select commit Hold shift + click to select a range
2975558
chore(core): remove old useServerMount
wmertens Jun 3, 2024
c1c17af
fix(optimizer): retain paths in split code
wmertens Jun 3, 2024
7f45b48
refactor(qrl): make more robust
wmertens Jun 3, 2024
9e10f08
refactor(qwikloader): importError no-symbol
PatrickJS Jun 3, 2024
9c7429b
refactor(vite): split into pre and post plugins
wmertens Jun 3, 2024
98ab7d2
pnpm api.update
wmertens Jun 13, 2024
dc0ddfd
fix(scripts): simplify emptyDir
wmertens Jun 12, 2024
d27ffe4
fix(image-size): only support fetch-able protocols
wmertens Jun 12, 2024
25f5b71
feat(repl): better error messages
wmertens Jun 12, 2024
b380973
fix: correct onSubmit$ / onSubmitComplete$ type signature (#6542)
JerryWu1234 Jun 14, 2024
97dbcaa
feat(qwikVite): add possibility to define multiple outputs (#6452)
KingSora Jun 14, 2024
fadbc84
docs(insights): location change to qwikdev (#6544)
tzdesign Jun 14, 2024
08d2a70
docs: comment out extra sponsor component (#6555)
thejackshelton Jun 15, 2024
8236c7c
feat(vite-server config): added the option to disable image dev tools…
s-voloshynenko Jun 16, 2024
c53e8a5
docs: fix conflicting ctrl+k shortcut (#6554)
gioboa Jun 16, 2024
4e10900
docs(qwik-nutshell): remove onInput$ reference to React onChange (#6558)
maiieul Jun 17, 2024
8d1c0b0
refactor: remove references to `currentScript` (#6559)
mhevery Jun 17, 2024
8cd0296
chore: add API changes guards (#6562)
shairez Jun 17, 2024
e9b9abf
fix(repl): code display in repl output (#6564)
wmertens Jun 17, 2024
79b2048
docs: fix aws logo color (#6565)
thejackshelton Jun 17, 2024
b35665d
refactor(optimizer): nicer module finding + fix dev (#6556)
wmertens Jun 17, 2024
e10f74d
fix(docs): update valibot snippet (#6569)
zougari47 Jun 18, 2024
2284b1a
feat(core): Add support to shadow DOM for QwikLoader. (#6547)
mhevery Jun 19, 2024
cfa2c34
fix: moved express to dependencies section (#6576)
thecoder93 Jun 19, 2024
490b0d6
fix: moved Fastify packages to dependencies section (#6577)
thecoder93 Jun 19, 2024
40efe54
fix: fix up docs build (#6578)
gioboa Jun 19, 2024
96ae4c6
fix(qrl): correct qrl loading in vite dev mode (#6579)
wmertens Jun 20, 2024
7b6eab6
feat(qrl): wrap resolved funcs for scope (#6575)
wmertens Jun 20, 2024
cfa1f21
fix: SW prefetch (#6582)
gioboa Jun 20, 2024
e2b6895
docs(state): add guidance on signals as props (#6574)
shairez Jun 20, 2024
2ebdec0
refactor(server$): clean up var names (#6572)
shairez Jun 20, 2024
691ca1a
refactor(city): clean up code (#6581)
shairez Jun 20, 2024
59a45ab
revert: #6522 & #6526 (#6583)
gioboa Jun 20, 2024
097abdd
fix(dev): qrl parsing during dev mode (#6584)
wmertens Jun 20, 2024
f034cb7
fix(qrl): help rollup resolve imports from qrl segments (#6586)
wmertens Jun 21, 2024
c490a95
fix(optimizer): make component entries more unique (#6587)
wmertens Jun 21, 2024
63eb3f7
fix(build): put optimizer in pr.new builds (#6589)
wmertens Jun 21, 2024
911ffd0
fix(dev): qrl import and refactor parent building (#6590)
wmertens Jun 22, 2024
1d7f808
fix(ci): make pr npm build work again (#6591)
wmertens Jun 22, 2024
fcb56b0
fix(dev): qrl loading for non-srcDir (#6592)
wmertens Jun 22, 2024
7e742eb
Merge pull request from GHSA-2rwj-7xq8-4gx4
shairez Jun 24, 2024
a2edce0
docs: Document how to access current url from within root.tsx (#6598)
srapport Jun 25, 2024
35aba35
feat: manage assetsDir (#6588)
gioboa Jun 25, 2024
655712c
fix: disable PrefetchGraph in dev mode (#6604)
gioboa Jun 25, 2024
3a9ee62
fix: disable PrefetchServiceWorker in dev mode (#6606)
gioboa Jun 25, 2024
a2661bd
docs: small grammar change (#6609)
codyroberts Jun 26, 2024
0fc3c74
docs: added an example for creating a dynamic Leaflet map (#6599)
gimonaa Jun 27, 2024
3ce3456
fix: fix up csr mode (#6611)
gioboa Jun 27, 2024
52d2799
fix: solve _routes issue with assetsDir (#6612)
gioboa Jun 27, 2024
8603275
docs: fix typo (#6615)
lollyxsrinand Jun 28, 2024
eddcfbf
chore: 1.6.0 (#6616)
gioboa Jun 28, 2024
b41be83
chore: improve needs reproduction message (#6618)
gioboa Jun 29, 2024
4485d32
fix(dev): path to outside-project files (#6624)
wmertens Jun 30, 2024
9236a5f
docs: Small grammatical corrections (#6630)
codyroberts Jul 2, 2024
8a5ef13
docs(starts): fix typo depencies (#6631)
BuptStEve Jul 2, 2024
220536f
refactor: simplify CLI starters (#6632)
thejackshelton Jul 3, 2024
c89767b
docs: Fixed capitalization on "Optimizer" (#6645)
codyroberts Jul 5, 2024
35be2b2
refactor: tiny adjustment for document testing (#6647)
arlyxiao Jul 5, 2024
9cfb612
fix: improve new SW logic (#6641)
gioboa Jul 8, 2024
091bb1f
fix(dev): vite base and qrl segment fixes
wmertens Jul 1, 2024
18c68fd
fix(dev): hot reload
wmertens Jul 3, 2024
1e0007e
feat(dev): export symbolMapper
thejackshelton Jul 4, 2024
c94cef1
fix(dev): qrl segment paths on windows
wmertens Jul 8, 2024
8c54f46
fix(qwik-react): fix dev bundling + v0.5.5
wmertens Jul 8, 2024
574cc3b
fix(dev): find all qwik packages in monorepos
wmertens Jul 8, 2024
b115d82
fix(dev): retain @ in qrl segments
wmertens Jul 8, 2024
9adc593
fix(repl): don't filter out app.js
wmertens Jul 9, 2024
90566f0
fix(qwik-city): fix redirects with search params (#6410)
octet-stream Jul 9, 2024
e05e354
feat(qwikcity/actions): dotnotation field-errors (#6568)
tzdesign Jul 9, 2024
33221e1
chore: 1.7.0
wmertens Jul 9, 2024
0588230
fix(eslint): Fixed lint problem about the `JSXNode` (#6637)
genki Jul 9, 2024
281de97
fix(dev): remove spurious console error in taskStaging. (#6642)
genki Jul 9, 2024
08582e6
docs: added placementpreparation.io to showcase page (#6659)
JohnPremKumar Jul 10, 2024
ba0dc30
feat: use new @auth/qwik package (#6658)
gioboa Jul 10, 2024
05a52c3
docs: update readme footer logo (#6668)
thejackshelton Jul 11, 2024
bcce0c1
fix(dev): incorrect abs path resolutions
wmertens Jul 11, 2024
e3da80d
refactor(optimizer): make is_server a regular bool
wmertens Jul 11, 2024
9d449a4
fix(dev): more robust symbolMapper export
wmertens Jul 11, 2024
86cccea
fix(dev): determine isServer better
wmertens Jul 11, 2024
17c1d3c
chore: couldn't handle that joke anymore 😅 (#6671)
shairez Jul 11, 2024
3c5e5a7
chore: 1.7.1 (#6672)
wmertens Jul 11, 2024
9292a59
fix: replace chunkFileNames logic (#6675)
gioboa Jul 11, 2024
e4eb2c3
fix(dev): avoid warning in dev mode (#6674)
wmertens Jul 12, 2024
49d4c5d
fix(partytown-starter): using type import (#6682)
tzdesign Jul 15, 2024
563ddc5
chore: fix "STATUS-1" labels removal with workflow (#6680)
dmitry-stepanenko Jul 15, 2024
4e67d65
feat: add changesets (#6570)
shairez Jul 16, 2024
30560ea
ci: add missing dependency (#6692)
shairez Jul 16, 2024
e5476a3
chore: add guarding to releases (#6695)
shairez Jul 16, 2024
b5b445b
Version Packages (#6693)
github-actions[bot] Jul 16, 2024
3805951
refactor: modified ci script and repl fix (#6701)
shairez Jul 17, 2024
977b935
chore: add missing publishConfig (#6702)
shairez Jul 17, 2024
79dd5a5
ci: added qwik-labs to changesets ignore (#6703)
shairez Jul 17, 2024
88c8004
chore: added "insights" to changeset ignore
shairez Jul 17, 2024
880f5bc
chore: set qwik-labs to private
shairez Jul 17, 2024
f6020c3
chore: check changesets
shairez Jul 17, 2024
dd70f6b
ci: trying to fix publish
shairez Jul 17, 2024
8125f6b
chore: removed changeset test package
shairez Jul 17, 2024
c69495b
docs(getting-started): remove reference to HMR (#6686)
maiieul Jul 18, 2024
4f40c29
fix(changesets): version monorepo root
wmertens Jul 18, 2024
e3c868c
fix(ci): print cloudflare summary in comments
wmertens Jul 18, 2024
4e1f31e
tests(qwik-city,e2e,nav): Add a test case for #6660
octet-stream Jul 15, 2024
6a7e2f3
fix(qwik-city): remove internal params in qdata
wmertens Jul 18, 2024
0b6752d
fix(build): prod api extraction for qwik-city
wmertens Jul 18, 2024
5595af1
fix(qwikcity dev): do not serve dist/ during dev
wmertens Jul 18, 2024
71c0c24
fix(dev): entry.ts routes
wmertens Jul 18, 2024
517719b
refactor(ci): move cloudflare build to separate job
wmertens Jul 18, 2024
1d79edb
fix(docs): use Link for search results
wmertens Jul 18, 2024
314cc9a
fix(ci): fail requirements on failure/cancellation
wmertens Jul 18, 2024
b0802ca
fix(ci): correct fail/success calculations (#6707)
wmertens Jul 19, 2024
94c0c51
infra: changesets peer deps
shairez Jul 21, 2024
a6f88fd
fix(vite-plugin): fix unresolved import (#6713)
Varixo Jul 21, 2024
32daf72
chore: use own package.json for all packages
wmertens Jul 22, 2024
e7a91a3
chore: move qwik-city source under src
wmertens Jul 23, 2024
e80db7f
perf(ci): more granular tests
wmertens Jul 24, 2024
bc699c9
fix(optimizer): windows paths
wmertens Jul 25, 2024
155d1ba
fix(repl): correct import paths
wmertens Jul 25, 2024
c74da62
chore: added d.ts files to qwik
shairez Jul 25, 2024
40d2e0e
infra: made dev version explicit
shairez Jul 26, 2024
98da80e
ci: validate cli with pnpm
shairez Jul 26, 2024
329dbff
ci: revert pnpm on validate cli
shairez Jul 26, 2024
a1444ab
ci: disable validate cli on windows
shairez Jul 26, 2024
6296a6a
ci: delete root useless CHANGELOG 😊
shairez Jul 26, 2024
97ab0b2
ci: delete .tgz files
shairez Jul 26, 2024
919af42
ci: revert deleting .tgz
shairez Jul 26, 2024
f6aa020
ci: trying to fix changesets version
shairez Jul 26, 2024
444b77f
fix(ci): no tgz in changeset pr (#6728)
wmertens Jul 27, 2024
e5f4cee
docs: Fix quotes in index.mdx (#6726)
nucleartux Jul 27, 2024
81eb57a
ci: removing custom version
shairez Jul 27, 2024
360ae26
test: fix flaky e2e test
shairez Jul 27, 2024
08b53e2
chore: remove qwik-react vite package.json
shairez Jul 27, 2024
b317e47
ci: remove qwik-react/vite references
shairez Jul 27, 2024
2b5e64e
ci: custom changesets version
shairez Jul 27, 2024
46c48a2
ci: added missing changeset version script
shairez Jul 27, 2024
2434aa2
ci: revert custom version script
shairez Jul 27, 2024
7c3049c
fix(optimizer): don't drop _fnSignal string code in libs (#6732)
wmertens Jul 28, 2024
cbf5103
chore: add root CHANGELOG index
shairez Jul 28, 2024
b35c13e
chore: add root CHANGELOG to gitignore
shairez Jul 28, 2024
e905784
ci: testing is_release flag
shairez Jul 28, 2024
d969911
ci: fix lint
shairez Jul 28, 2024
fb1c508
ci: delete mock changeset md
shairez Jul 28, 2024
b386e7b
ci: add mock md
shairez Jul 28, 2024
6dab320
ci: check mock changesets
shairez Jul 28, 2024
f8d10ab
ci: mock file
shairez Jul 28, 2024
aac2f47
ci: check 2
shairez Jul 28, 2024
fb59aa6
fix(qwikVite): multiple outputs logic (#6723)
KingSora Jul 28, 2024
dda0857
ci: mock file
shairez Jul 28, 2024
9b4fed1
ci: check 3
shairez Jul 28, 2024
3680a26
ci: event path
shairez Jul 28, 2024
1fa0605
ci: mock file
shairez Jul 28, 2024
11b538a
ci: check 4
shairez Jul 28, 2024
32a0dd4
ci: mock file
shairez Jul 28, 2024
eedc8aa
ci: check 5
shairez Jul 28, 2024
3365060
ci: mock files
shairez Jul 28, 2024
0ee546b
ci: check 6
shairez Jul 28, 2024
70971ba
ci: mock files
shairez Jul 28, 2024
f753e46
ci: check 7
shairez Jul 28, 2024
8edda77
ci: check 8
shairez Jul 28, 2024
2b85049
ci: mock file
shairez Jul 28, 2024
84406c3
ci: check 8
shairez Jul 28, 2024
4239f09
ci: mock file
shairez Jul 29, 2024
d0e6279
ci: check 9
shairez Jul 29, 2024
f5aabb9
fix(qwik-city): redirect route loads when sane (#6740)
wmertens Jul 29, 2024
a243bb6
ci: made changesets work with dist tag (#6739)
shairez Jul 29, 2024
d627014
ci: remove disttag log
shairez Jul 29, 2024
e2d41bc
Version Packages
github-actions[bot] Jul 29, 2024
5e363c3
fix: correct version numbers for starter apps
shairez Jul 29, 2024
f63c32d
ci: don't tag private packages
shairez Jul 29, 2024
407c171
ci: fix changeset folder
shairez Jul 29, 2024
20c0043
ci: make Wout happy
shairez Jul 29, 2024
9351e68
ci: remove root package from changesets
shairez Jul 29, 2024
56fe836
docs: remove version from root CHANGELOG
shairez Jul 29, 2024
c59469d
ci: make main branch checks run faster
shairez Jul 29, 2024
80c0658
ci: build on ci script changes
shairez Jul 29, 2024
3937471
ci: get dev github sha
shairez Jul 29, 2024
3c11b83
Version Packages
github-actions[bot] Jul 29, 2024
85a3195
ci: validate cli fix
shairez Jul 29, 2024
0baf89c
ci: fixed workflow_dispatch
shairez Jul 29, 2024
e2cc179
ci: fix validate-cli for eslint
shairez Jul 29, 2024
28dda10
added pretty-quick and a pre-commit hook
shairez Jul 30, 2024
62dd297
added docs for changesets
shairez Jul 30, 2024
83d9185
style: fix lint error
shairez Jul 30, 2024
ee8b9c5
removed commitzen requirement from PR titles
shairez Jul 30, 2024
14b27c8
docs(auth): correct @auth/qwik documentation and add migration guide …
cwoolum Jul 31, 2024
99d6db4
feat(docs): add PkgManagers tabs (#6636)
gioboa Aug 1, 2024
e8bd894
fix(rust): replace unstable extract_if with retain
wmertens Mar 13, 2024
c7d8805
chore(rust): lint
wmertens Mar 13, 2024
5250dc5
chore(rust): cargo update + fixups
wmertens Mar 13, 2024
b3925d5
chore(rust): napi v2
wmertens May 9, 2024
d73af62
chore: update rust and nix
wmertens Jul 19, 2024
ae68a60
chore(rust): cargo clippy
wmertens Jul 19, 2024
92ed808
fix(rust): workaround for qwik-napi test build fail
wmertens Jul 19, 2024
5a3d975
chore(rust): upgrade swc
wmertens Jul 19, 2024
3c30ecd
fix(eslint): pin dev versions, prevent issues with eslint
wmertens Jul 21, 2024
f5fc443
chore: dep update all minor packages
wmertens Jul 21, 2024
99296ea
chore: fix plugin types
wmertens Jul 31, 2024
42880cf
chore: update vite and vitest
wmertens Jul 31, 2024
80abcff
feat(vite-plugin): set assets path in build to /assets (#5745)
wmertens Aug 1, 2024
7b2ee07
fix(optimizer): correct side effect cleaner
wmertens Aug 1, 2024
568132c
fix(optimizer): let the bundler handle entries
wmertens Jul 11, 2024
86d6378
refactor(dev): remove foundql from vite-dev-server
wmertens Aug 1, 2024
d589fac
fix(docs): algolia search (#6754)
wmertens Aug 2, 2024
1c2692e
fix(bun qc): 404 for static paths (#6755)
wmertens Aug 2, 2024
16c36da
fix(cli): library starter wrong Qwik version (#6757)
shairez Aug 3, 2024
50d0ca1
perf(docs): move bundled repl to assets
wmertens Jul 31, 2024
42f3940
chore(docs): use prefetch service worker
wmertens Aug 1, 2024
2571e1e
docs: change superDefine to superRefine (#6759)
Martinusius Aug 4, 2024
59c2c43
chore(ci): move docs deploy to separate flow (#6762)
wmertens Aug 5, 2024
b5fbd8f
fix(vite): don't filter out qwik library files (#6760)
wmertens Aug 5, 2024
83ff79d
chore(docs): fix several warnings etc
wmertens Aug 5, 2024
3da8b3c
chore(optimizer): remove unused vendorRoots
wmertens Aug 5, 2024
72c8541
fix(plugin): generate correct keys in q-manifest.json
wmertens Aug 5, 2024
813e325
fix(prefetch-sw): don't emit empty prefetch chunks
wmertens Aug 5, 2024
7afb605
fix(vite): ignore missing qrl segments (#6761)
wmertens Aug 5, 2024
8a78e14
fix(ci deploy-docs): don't skip deploy on merge
wmertens Aug 5, 2024
8091284
fix(deploy-docs): artifact download
wmertens Aug 5, 2024
410e84e
fix(optimizer): hooks refactor stragglers (#6769)
wmertens Aug 5, 2024
8dfbe50
docs: adding visual clue in the docs TOC (#6689)
Kampouse Aug 6, 2024
2e2bf85
docs(contributing): fix Qwik React indicated instead of Qwik Labs (#6…
dario-piotrowicz Aug 7, 2024
2a644cf
Update the PR template
shairez Aug 6, 2024
632e277
chore: linter 🧽
gioboa Aug 7, 2024
5ddf269
Version Packages
github-actions[bot] Aug 8, 2024
4c88089
Update index.mdx : "javascript" to "JavaScript" (#6780)
yurovant Aug 9, 2024
01c9d12
Add sakenowa.com to showcase page (#6779)
akr4 Aug 9, 2024
2175345
fix(starter): update CLI version of storybook (#6781)
Kampouse Aug 10, 2024
b6171cc
Revert "chore(docs): use prefetch service worker" (#6786)
maiieul Aug 13, 2024
4f4b094
add preserve modules to lib starter
thejackshelton Aug 7, 2024
81854e4
changeset
thejackshelton Aug 8, 2024
6f498cb
more descriptive
thejackshelton Aug 8, 2024
22920f2
fix(repl): version detection (#6790)
wmertens Aug 14, 2024
1583bb5
fix(repl): version detection (#6791)
wmertens Aug 14, 2024
2e23912
chore: Merge 'main' into build/v2
wmertens Aug 22, 2024
a14e08b
fixed build
shairez Aug 22, 2024
ea46d47
fix some tests
Varixo Aug 23, 2024
c22ec87
fix unit tests
Varixo Aug 23, 2024
0fdff56
fix e2e tests
Varixo Aug 24, 2024
16043a4
fix more unit tests
Varixo Aug 24, 2024
9133236
fix: qrl-class
wmertens Aug 28, 2024
7c7af32
fix: add missing eslint import plugin
wmertens Aug 28, 2024
cf35a4a
feat: add v1 compatibility functions _jsx*
wmertens Aug 28, 2024
a87acb8
fix some e2e tests
Varixo Aug 28, 2024
8ebf88e
Merge branch 'merge-main' of https://github.com/QwikDev/qwik into mer…
Varixo Aug 28, 2024
fd6f3b3
fix most of e2e tests
Varixo Aug 28, 2024
b295b83
fix auth e2e tests
Varixo Aug 29, 2024
dfe11e0
fix server function e2e test
Varixo Aug 29, 2024
166901a
fix shadow root container
Varixo Aug 29, 2024
5f5161d
fix unit tests
Varixo Aug 29, 2024
3b6ae17
fix lint
Varixo Aug 29, 2024
6534092
add backward compatibility with v1
Varixo Aug 29, 2024
5e64e79
add isDev option to qwikVite
Varixo Aug 29, 2024
97676d1
fix optimizer tests
Varixo Aug 29, 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
  •  
  •  
  •  
378 changes: 378 additions & 0 deletions .changeset/changelog-github-custom.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,378 @@
'use strict';
var __assign =
(this && this.__assign) ||
function () {
__assign =
Object.assign ||
function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __awaiter =
(this && this.__awaiter) ||
function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P
? value
: new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator['throw'](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator =
(this && this.__generator) ||
function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: [],
},
f,
y,
t,
g;
return (
(g = { next: verb(0), throw: verb(1), return: verb(2) }),
typeof Symbol === 'function' &&
(g[Symbol.iterator] = function () {
return this;
}),
g
);
function verb(n) {
return function (v) {
return step([n, v]);
};
}
function step(op) {
if (f) throw new TypeError('Generator is already executing.');
while ((g && ((g = 0), op[0] && (_ = 0)), _))
try {
if (
((f = 1),
y &&
(t =
op[0] & 2
? y['return']
: op[0]
? y['throw'] || ((t = y['return']) && t.call(y), 0)
: y.next) &&
!(t = t.call(y, op[1])).done)
)
return t;
if (((y = 0), t)) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return { value: op[1], done: false };
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (
!((t = _.trys), (t = t.length > 0 && t[t.length - 1])) &&
(op[0] === 6 || op[0] === 2)
) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2]) _.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [6, e];
y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5) throw op[1];
return { value: op[0] ? op[1] : void 0, done: true };
}
};
var __spreadArray =
(this && this.__spreadArray) ||
function (to, from, pack) {
if (pack || arguments.length === 2)
for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, '__esModule', { value: true });
// @ts-ignore
var get_github_info_1 = require('@changesets/get-github-info');
var dotenv_1 = require('dotenv');
(0, dotenv_1.config)();
var changelogFunctions = {
getDependencyReleaseLine: function (changesets, dependenciesUpdated, options) {
return __awaiter(void 0, void 0, void 0, function () {
var changesetLink, _a, updatedDepenenciesList;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
if (!options.repo) {
throw new Error(
'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'
);
}
if (dependenciesUpdated.length === 0) return [2 /*return*/, ''];
_a = '- Updated dependencies ['.concat;
return [
4 /*yield*/,
Promise.all(
changesets.map(function (cs) {
return __awaiter(void 0, void 0, void 0, function () {
var links;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (!cs.commit) return [3 /*break*/, 2];
return [
4 /*yield*/,
(0, get_github_info_1.getInfo)({
repo: options.repo,
commit: cs.commit,
}),
];
case 1:
links = _a.sent().links;
return [2 /*return*/, links.commit];
case 2:
return [2 /*return*/];
}
});
});
})
),
];
case 1:
changesetLink = _a.apply('- Updated dependencies [', [
_b
.sent()
.filter(function (_) {
return _;
})
.join(', '),
']:',
]);
updatedDepenenciesList = dependenciesUpdated.map(function (dependency) {
return ' - '.concat(dependency.name, '@').concat(dependency.newVersion);
});
return [
2 /*return*/,
__spreadArray([changesetLink], updatedDepenenciesList, true).join('\n'),
];
}
});
});
},
getReleaseLine: function (changeset, type, options) {
return __awaiter(void 0, void 0, void 0, function () {
var prFromSummary,
commitFromSummary,
usersFromSummary,
replacedChangelog,
linkifyIssueHints,
_a,
firstLine,
futureLines,
links,
users,
suffix,
emojiFirstline;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
if (!options || !options.repo) {
throw new Error(
'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'
);
}
usersFromSummary = [];
replacedChangelog = changeset.summary
.replace(/^\s*(?:pr|pull|pull\s+request):\s*#?(\d+)/im, function (_, pr) {
var num = Number(pr);
if (!isNaN(num)) prFromSummary = num;
return '';
})
.replace(/^\s*commit:\s*([^\s]+)/im, function (_, commit) {
commitFromSummary = commit;
return '';
})
.replace(/^\s*(?:author|user):\s*@?([^\s]+)/gim, function (_, user) {
usersFromSummary.push(user);
return '';
})
.trim();
linkifyIssueHints = function (line) {
return line.replace(
/(?<=\( ?(?:fix|fixes|see) )(#\d+)(?= ?\))/g,
function (issueHash) {
return '['
.concat(issueHash, '](https://github.com/')
.concat(options.repo, '/issues/')
.concat(issueHash.substring(1), ')');
}
);
};
(_a = replacedChangelog.split('\n').map(function (l) {
return linkifyIssueHints(l.trimEnd());
})),
(firstLine = _a[0]),
(futureLines = _a.slice(1));
return [
4 /*yield*/,
(function () {
return __awaiter(void 0, void 0, void 0, function () {
var links_1, shortCommitId, commitToFetchFrom, links_2;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (!(prFromSummary !== undefined)) return [3 /*break*/, 2];
return [
4 /*yield*/,
(0, get_github_info_1.getInfoFromPullRequest)({
repo: options.repo,
pull: prFromSummary,
}),
];
case 1:
links_1 = _a.sent().links;
if (commitFromSummary) {
shortCommitId = commitFromSummary.slice(0, 7);
links_1 = __assign(__assign({}, links_1), {
commit: '[`'
.concat(shortCommitId, '`](https://github.com/')
.concat(options.repo, '/commit/')
.concat(commitFromSummary, ')'),
});
}
return [2 /*return*/, links_1];
case 2:
commitToFetchFrom = commitFromSummary || changeset.commit;
if (!commitToFetchFrom) return [3 /*break*/, 4];
return [
4 /*yield*/,
(0, get_github_info_1.getInfo)({
repo: options.repo,
commit: commitToFetchFrom,
}),
];
case 3:
links_2 = _a.sent().links;
return [2 /*return*/, links_2];
case 4:
return [
2 /*return*/,
{
commit: null,
pull: null,
user: null,
},
];
}
});
});
})(),
];
case 1:
links = _b.sent();
users = usersFromSummary.length
? usersFromSummary
.map(function (userFromSummary) {
return '[@'
.concat(userFromSummary, '](https://github.com/')
.concat(userFromSummary, ')');
})
.join(', ')
: links.user;
suffix = '';
if (links.pull || links.commit || users) {
suffix = '('
.concat(users ? 'by '.concat(users, ' ') : '', 'in ')
.concat(links.pull || links.commit, ')');
}
emojiFirstline = firstLine
.replace('FEAT:', '✨ ')
.replace('feat:', '✨ ')
.replace('fix:', '🐞🩹')
.replace('FIX:', '🐞🩹')
.replace('DOCS:', '📃')
.replace('docs:', '📃');
return [
2 /*return*/,
'\n\n- '
.concat(emojiFirstline, ' ')
.concat(suffix, '\n')
.concat(
futureLines
.map(function (l) {
return ' '.concat(l);
})
.join('\n')
),
];
}
});
});
},
};
exports.default = changelogFunctions;
Loading
Loading