211 Commits

Author SHA1 Message Date
Eugene Zolenko
ce2038d368
support newer moduleResolution kinds
* moduleResolution classic is overridden to node10, all other values are passed through from tsconfig
* updating dev typescript to 5.1.3
2023-07-17 09:22:13 -06:00
ezolenko
31f61f7e24 - build for 0.35.0 2023-06-22 22:17:23 -06:00
Eugene Zolenko
2cb2660e5c
cts/mts support (#451)
Adding cts/mts/d.cts/d.mts to the known typescript filetypes
2023-06-22 22:09:58 -06:00
Eugene Zolenko
59817c4ef6
- enabling ES2022 module (#450) 2023-06-19 23:10:11 -06:00
Anton Gilgur
f6db59613a
fix: don't resolve filtered files (#428)
* fix: don't resolve `filter`ed files

- if they're `exclude`d / not `include`d, then we shouldn't be processing them
  - we're already not transforming them, so this just applies the same exclusion to resolving
  - this is _partly_ a regression from b0e39228b639229ce29d5d8d0b4bd236e4b20852, as that removed the `allImportedFiles` Set that previously filtered out files not in the `tsconfig` `include`
    - but that _itself_ was a regression that was removed -- files that didn't pass `filter` should have _never_ been resolved
      - basically, the `allImportedFiles` regression was covering up this long-standing bug

- also move `.d.ts` check to above the `filter` check
  - we shouldn't be adding declarations to the `cache`, in particular as we don't process declarations, so they'll never be marked as dirty
  - having this check above the `filter` should be slighltly more efficient as well (as would not having these files in the cache graph)

types: be more specific with `filter`'s type
- no need for this to be `any`

* build

- patch release has been waiting for a few weeks

* pub: release v0.34.1

- patch bump with the past few fixes

- bump internal rpt2 version to 0.34.0
2022-10-03 13:24:16 -06:00
Anton Gilgur
3ef3289fc1
fix: add compatibility checks w/ semver (#424)
* hotfix: `this.load` was added in Rollup `2.60.0`; don't run on older versions

- this is my bad, I didn't realize `this.load` came out _much_ later than `this.resolve`
  - c.f. https://github.com/rollup/rollup/blob/master/CHANGELOG.md#2600

- since we're backward-compatible w/ Rollup `1.26.3`, add in a version check for the type-only fix
  - the type-only fix will error out in Rollup versions less than `2.60.0`, so instead of erroring out, just skip this functionality

- TODO: should move back to using `semver` that was removed in 08d2f5bcad7cb9a9a0974f3707a27d29dd89da7c

* deps: add back `semver` and use for version checking

- reverts the `semver` removal in 08d2f5bcad7cb9a9a0974f3707a27d29dd89da7c
  - add back the TS version range check

- add a Rollup version range check, fixing an old issue
- check `this.load` Rollup version with `semver` instead of string comparison

- add `semver` to `external`s list
  - also remove `resolve` as it's no longer used as of 74f6761ff63863cdb3e92ca1f33640fe6f4fc7db
  - and re-organize the list so that Node built-ins are in one section while deps are in another
    - makes it clearer what we're marking as external

* dx: add a nice warning when `this.load` is not supported

- so it doesn't just silently skip the type-only fix on Rollup versions <2.60.0

* fix(test): add globals for strings that are replaced during build

- `TS_VERSION_RANGE`, `ROLLUP_VERSION_RANGE`, `RPT2_VERSION` were previously only defined during builds, so would cause tests to fail
  - add these vars as (namespaced) globals in the Jest config so that they can be used in tests too
  - if they don't exist on `global` (or if `global` doesn't exist), then use the built strings instead
  - see in-line comments for more details

- also reorder `re` placement to match the usage order in the code
- and fix lint issues (`no-string-literal`)

Co-authored-by: Eugene Zolenko <zolenkoe@gmail.com>
2022-09-20 13:15:10 -06:00
ezolenko
0b99f8ec62 - build for 34.0 2022-09-12 10:18:56 -06:00
ezolenko
bba2f19301 - build for 0.33.0 2022-08-19 15:29:07 -06:00
ezolenko
0faf2c0860 - package version 2022-06-06 17:59:45 -06:00
Anton Gilgur
d7cab2dbc0
deps: upgrade @rollup/plugin-commonjs to v22 to fix try/catch requires (#340)
- and build
- v21 broke `graphlib`'s internal usage of `lodash` with its breaking
  change, and v22 has another breaking change to fix that
  - notably, this was breaking rpt2 imports for some users because rpt2
    bundles in `graphlib` etc, meaning the nuances of the bundling got
    leaked to consumers, and, in fact, broke their builds
    - another upside to unbundling
2022-06-06 17:55:34 -06:00
ezolenko
4411604475 - package version 2022-06-01 16:34:48 -06:00
ezolenko
4d5debaa83 - build 2022-06-01 16:27:43 -06:00
ezolenko
4a69b0dbcb - package version 2022-04-21 11:58:44 -06:00
ezolenko
08d2f5bcad - removing semver dependency (refuses to be rolled up for some reason)
- updating dependencies
2022-04-21 11:58:01 -06:00
ezolenko
5a3e58b277 - dependencies 2022-04-21 11:44:23 -06:00
ezolenko
0df5362d39 - updating dependencies 2022-04-21 11:37:40 -06:00
ezolenko
f84afe983b - updating dependencies 2022-04-21 11:30:01 -06:00
ezolenko
ff8895103c - prefix on errors #300 2022-03-04 22:37:24 -07:00
ezolenko
cffc4dae29 - build 2022-02-01 16:50:48 -07:00
ezolenko
e82277d37d - build with updated dependencies 2021-12-14 12:43:23 -07:00
ezolenko
a9e617a4b0 - package version 2021-11-23 10:23:37 -07:00
ezolenko
b9c2529099 - package version to 31.1 2021-11-23 10:19:10 -07:00
ezolenko
ef4725b5c8 - updating object-hash to 2.2.0 #291 2021-11-23 10:17:44 -07:00
ezolenko
86296a7e7d - package version 2021-11-16 17:49:58 -07:00
ezolenko
215173f179 - rebuild 2021-11-16 17:32:28 -07:00
bluelovers
26c927e688 build(dist): build file 2021-11-04 02:29:24 +08:00
ezolenko
b76ff690be - updating dependencies 2021-05-19 13:28:15 -06:00
ezolenko
b6b3738163 - package version 2021-02-18 09:36:03 -07:00
ezolenko
c6f6e52933 - updating dependencies, version to 0.30.0 2021-02-18 09:30:07 -07:00
ezolenko
eb1dd17bab - allowing ES2020 module type in tsconfig 2020-12-17 16:34:21 -07:00
ezolenko
bd2e04317b - updating dependencies 2020-12-17 16:24:08 -07:00
ezolenko
8d0d49c063 - build 2020-11-20 13:13:57 -07:00
ezolenko
5ce7676ad0 - package version 2020-10-30 13:05:08 -06:00
ezolenko
5ab0e788e1 - package version 2020-10-30 13:01:58 -06:00
ezolenko
4cdb7080b8 - build 2020-10-29 09:43:39 -06:00
ezolenko
35b04d73ab - package version 2020-10-16 14:05:05 -06:00
ezolenko
fc2274d2ea - package version
- syntax
2020-10-02 10:49:00 -06:00
ezolenko
5f02a91820 - fix for windows path and build 2020-10-02 09:26:52 -06:00
ezolenko
2f51110a8c - package version 2020-09-25 14:03:34 -06:00
ezolenko
2cace3fd80 - updating dependencies 2020-09-25 13:43:38 -06:00
ezolenko
dcf59ac488 - package version 2020-08-07 12:23:51 -06:00
ezolenko
76274d421b - updating dependencies 2020-08-07 12:04:35 -06:00
ezolenko
428140bd22 - package version 2020-05-12 13:13:08 -06:00
ezolenko
294d654f34 - package version 2020-03-27 00:08:57 -06:00
ezolenko
69502e151b - updating dependencies 2020-03-26 23:55:01 -06:00
ezolenko
034abe0a83 - updating dependencies 2020-03-26 23:45:45 -06:00
Tiger Oakes
c6c733fcb5 Use imports with @rollup/pluginutils 2020-03-26 11:07:35 -07:00
Eugene Zolenko
ac821249f3 - package version 2020-02-11 17:33:17 -07:00
Eugene Zolenko
df241da73f - undoing debug code 2020-02-11 16:30:44 -07:00
Eugene Zolenko
cd76b42f55 - warning message for objectHashIgnoreUnknownHack option 2020-02-11 16:28:57 -07:00