Commit Graph

24 Commits

Author SHA1 Message Date
강동윤 (Donny)
9fc089662e chore: Publish @swc/helpers@v0.5.12 2024-07-13 17:14:27 +09:00
Jiwon Choi
69719c2acb
refactor(es/helpers): Remove unnecessary exports (#9225)
**Description:**

Helper methods were exporting twice, `_` and it's own function name.
We can map the build script to export `_` as it's own name (filename).
Therefore we export only once as `_`, and map the name on the build
script.

```js
// helpers/_foo.js

function _foo() {
  // ...
}

export { _foo as _ }
```
```js
// index.js

// We know the func name will be `_foo` based on the filename.
export { _ as _foo } from '_foo.js'
```

Closes #9203

---------

Co-authored-by: magic-akari <akari.ccino@gmail.com>
2024-07-13 17:13:25 +09:00
강동윤 (Donny)
016fe14164 chore: Publish @swc/helpers@0.5.11 2024-04-25 09:45:46 +09:00
Andrew Enger
438d0b32b6
fix(es/helpers): Remove unused export from _using_ctx.js (#8891)
**Description:**

Fixes stray export in `_using_ctx.js` inside of `packages/helpers`. This was causing build failures in my project, and I believe it was an errant export from a previous version of the helpers package.
2024-04-25 09:45:03 +09:00
강동윤 (Donny)
b9758f3cc1 chore: Format helpers 2024-04-15 22:03:13 +09:00
강동윤 (Donny)
1af8483290 chore: Publish @swc/helpers@v0.5.10 2024-04-15 22:03:04 +09:00
Donny/강동윤
6d240768b1
fix(es/proposal): Update explicit resource management to match spec (#8860)
**Related issue:**

 - Closes #8853
2024-04-15 15:28:11 +09:00
강동윤 (Donny)
187ceb199a chore: Format helpers 2024-04-12 16:22:56 +09:00
강동윤 (Donny)
86c22f3ffa chore: Publish @swc/helpers@0.5.9 2024-04-12 16:22:30 +09:00
sschen86
67bfcf41f5
fix(es/helpers): Add missing helpers (#8843) 2024-04-12 16:21:32 +09:00
강동윤 (Donny)
10ece99e0f chore: Publish @swc/helpers@v0.5.8 2024-03-28 16:50:04 +09:00
sschen86
263ce6e22b
fix(es/helpers): Fix metadata of decorators being undefined (#8768) 2024-03-28 07:44:55 +00:00
강동윤 (Donny)
4c83dcc370 chore: Publish @swc/helpers@v0.5.7 2024-03-18 10:46:12 +09:00
phiresky
cd38ef39d6
fix(es/helpers): Add addInitializer to field decorators (#8619)
**Description:**

At some point the spec text of ES decorators was changed to also have
addInitializer for field decorators. This is already used e.g. in mobx.
This simple change removes the special case that was present for field
decorators and seems to fix the issue for me.

This change is backwards compatible since it only affects code that was
broken before.

**Related issue:**

 - Closes #8525
2024-02-14 03:21:58 +00:00
Donny/강동윤
95fe3dbe93
test: Update @swc/plguin-jest used for plugin e2e testing (#8601) 2024-02-05 19:32:43 +09:00
Donny/강동윤
6c50ff1bec
refactor(bindings): Remove bindings for experimental packages (#8600)
**Description:**

These packages do not have the same versioning strategy as the main package.
2024-02-05 17:52:22 +09:00
Donny/강동윤
d81596cd2b
fix(es/proposals): Support using using keyword with functions (#8574)
**Related issue:**

 - Closes #8570
 - https://github.com/babel/babel/pull/16150
2024-01-30 15:55:43 +09:00
Alessandro Chitolina
9c029ef095
feat(es/compat): Implement decorator metadata proposal (#8097)
**Description:**

This PR implements the [decorator
metadata](https://github.com/tc39/proposal-decorator-metadata) proposal,
that is now at Stage 3.

As the decorator metadata proposal is a small extension of the decorator
proposal and is not possible to compile the metadata without transpiling
decorators, I opted to implement it into the existing decorator
transformer (and helper)

**Related issue:**

 - Closes #7957
2023-10-16 20:38:53 +00:00
강동윤 (Donny)
2da1037748 chore: Publish @swc/helpers@v0.5.3 2023-10-07 23:37:18 +09:00
magic-akari
1346528477
fix(es/helpers): Override mistake in _interop_require_wildcard (#8076)
**Related issue:**

 - https://github.com/babel/babel/issues/15995
2023-10-07 14:20:39 +00:00
강동윤 (Donny)
c0625361a1 chore: Fix yarn lockfile 2023-09-30 06:43:54 +09:00
Donny/강동윤
0acbb5f78d
refactor(bindingins): Create @swc/counter (#7991) 2023-09-22 23:48:27 +00:00
Donny/강동윤
d15eaf05cd chore: Publish @swc/helpers@0.5.2
- Fixes #7919.
2023-09-07 16:08:44 +09:00
Donny/강동윤
1ab406cd7a
refactor(es/helpers): Move packages for monorepo (#7833) 2023-08-18 04:25:37 +00:00