Commit Graph

505 Commits

Author SHA1 Message Date
SWC Bot
bfb2ffee0c chore: Publish crates 2022-12-27 01:02:01 +00:00
SWC Bot
7fcc978748 chore: Publish crates 2022-12-22 01:39:10 +00:00
SWC Bot
e89f7856f7 chore: Publish crates 2022-12-21 09:37:10 +00:00
SWC Bot
61245739ea chore: Publish crates 2022-12-21 03:03:05 +00:00
SWC Bot
3922ef5539 chore: Publish crates 2022-12-20 12:46:10 +00:00
SWC Bot
923e4ff840 chore: Publish crates 2022-12-20 09:37:22 +00:00
SWC Bot
417278f79e chore: Publish crates 2022-12-20 07:47:43 +00:00
SWC Bot
913230d02a chore: Publish crates 2022-12-20 06:11:34 +00:00
SWC Bot
35caad3c4d chore: Publish crates 2022-12-20 04:38:08 +00:00
SWC Bot
10491d15be chore: Publish crates 2022-12-19 08:34:05 +00:00
SWC Bot
a115907fbd chore: Publish crates 2022-12-19 07:56:54 +00:00
SWC Bot
bbeb7c9dbb chore: Publish crates 2022-12-19 06:45:28 +00:00
SWC Bot
b9b35899ad chore: Publish crates 2022-12-16 04:07:27 +00:00
SWC Bot
78f08bb1ec chore: Publish crates 2022-12-16 02:38:02 +00:00
SWC Bot
fc6ed6b0c0 chore: Publish crates 2022-12-15 09:35:01 +00:00
SWC Bot
139e35666c chore: Publish crates 2022-12-15 07:53:24 +00:00
SWC Bot
327bd4fc98 chore: Publish crates 2022-12-15 06:58:32 +00:00
SWC Bot
d48f4ba7f6 chore: Publish crates 2022-12-15 04:37:28 +00:00
SWC Bot
fa1b02bbd2 chore: Publish crates 2022-12-14 09:23:16 +00:00
SWC Bot
d831fb3cdd chore: Publish crates 2022-12-14 04:49:13 +00:00
SWC Bot
4986694d4c chore: Publish crates 2022-12-14 04:07:34 +00:00
SWC Bot
30692bc26c chore: Publish crates 2022-12-13 15:48:32 +00:00
SWC Bot
292c3388b5 chore: Publish crates 2022-12-13 07:31:37 +00:00
SWC Bot
d33fb7e98c chore: Publish crates 2022-12-13 06:53:51 +00:00
SWC Bot
c4ab41eca4 chore: Publish crates 2022-12-13 04:22:30 +00:00
SWC Bot
581d9ce769 chore: Publish crates 2022-12-13 03:38:21 +00:00
SWC Bot
4d4406d5b3 chore: Publish crates 2022-12-12 02:40:19 +00:00
SWC Bot
2e50dd54e8 chore: Publish crates 2022-12-12 02:01:40 +00:00
SWC Bot
3d80fa4c25 chore: Publish crates 2022-12-10 00:55:14 +00:00
SWC Bot
fc21895bce chore: Publish crates 2022-12-10 00:09:46 +00:00
SWC Bot
5d9cff21b5 chore: Publish crates 2022-12-09 02:30:36 +00:00
SWC Bot
fef8fc99a0 chore: Publish crates 2022-12-09 01:52:11 +00:00
SWC Bot
6fadb48a52 chore: Publish crates 2022-12-08 05:15:03 +00:00
SWC Bot
96f9858639 chore: Publish crates 2022-12-07 23:43:51 +00:00
SWC Bot
9cc5b928a6 chore: Publish crates 2022-12-07 11:57:23 +00:00
SWC Bot
da5e18e522 chore: Publish crates 2022-12-07 09:30:36 +00:00
SWC Bot
31630ba913 chore: Publish crates 2022-12-07 03:48:23 +00:00
SWC Bot
3abef05a8d chore: Publish crates 2022-12-07 02:58:32 +00:00
SWC Bot
d9c1c3a9bf chore: Publish crates 2022-12-07 01:48:18 +00:00
SWC Bot
29d67206ba chore: Publish crates 2022-12-06 14:31:09 +00:00
Donny/강동윤
d8adc58011
chore(ci): Fix benchmark action (#6582) 2022-12-06 12:24:55 +00:00
SWC Bot
6e5abdd9cc chore: Publish crates 2022-12-06 11:51:49 +00:00
SWC Bot
866fd09bad chore: Publish crates 2022-12-06 06:23:44 +00:00
SWC Bot
a475f61ac3 chore: Publish crates 2022-12-06 02:01:49 +00:00
SWC Bot
9d0247a394 chore: Publish crates 2022-12-06 00:54:17 +00:00
SWC Bot
c3dd8ffe79 chore: Publish crates 2022-12-05 00:17:56 +00:00
SWC Bot
2379fc1fd9 chore: Publish crates 2022-12-04 05:55:52 +00:00
Justin Ridgewell
a203fdb1b6
fix(common): Fix BytePos -> CharPos calculations (#6574)
**Description:**

This fixes the BytePos -> CharPos calculation necessary for source maps.
There were a few issues in the old code:

1. UTF-8 maps 1-3 bytes into 1 UTF-16 char, but 4 bytes into 2 UTF-16 chars
2. The starting offset was not recorded when we reached the end of the `multibyte_chars` iteration
3. The `mappings` can be unordered, meaning we need to restart the UTF-16 offset calculation

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6552.
2022-12-04 14:52:00 +09:00
SWC Bot
cffa11122b chore: Publish crates 2022-12-03 00:26:38 +00:00
SWC Bot
ab5635c6eb chore: Publish crates 2022-12-02 14:55:20 +00:00