Skip to content

Commit

Permalink
feat(typescript): add TypeScript 4.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Mar 17, 2021
1 parent 2a52248 commit e87b496
Show file tree
Hide file tree
Showing 54 changed files with 1,842 additions and 1,775 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-18.04]
node: [10, 13]
node: [10, 12, 14, 15]

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright © 2020 [Frederik Wessberg](mailto:frederikwessberg@hotmail.com) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg))
Copyright © 2021 [Frederik Wessberg](mailto:frederikwessberg@hotmail.com) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg))

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
38 changes: 19 additions & 19 deletions README.md
Expand Up @@ -58,12 +58,30 @@ If you are looking for a Typescript REPL, or a way to _execute_ a full Typescrip

<!-- SHADOW_SECTION_FEATURE_IMAGE_END -->

<!-- SHADOW_SECTION_BACKERS_START -->

## Backers

[Become a sponsor/backer](https://github.com/wessberg/ts-evaluator?sponsor=1) and get your logo listed here.

| <a href="https://usebubbles.com"><img alt="Bubbles" src="https://uploads-ssl.webflow.com/5d682047c28b217055606673/5e5360be16879c1d0dca6514_icon-thin-128x128%402x.png" height="70" /></a> | <a href="https://github.com/cblanc"><img alt="Christopher Blanchard" src="https://avatars0.githubusercontent.com/u/2160685?s=400&v=4" height="70" /></a> | <a href="https://github.com/ideal-postcodes"><img alt="Ideal Postcodes" src="https://avatars.githubusercontent.com/u/4996310?s=200&v=4" height="70" /></a> | <a href="https://www.xerox.com"><img alt="Xerox" src="https://avatars.githubusercontent.com/u/9158512?s=200&v=4" height="70" /></a> |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| [Bubbles](https://usebubbles.com)<br><strong>Twitter</strong>: [@usebubbles](https://twitter.com/usebubbles) | [Christopher Blanchard](https://github.com/cblanc) | [Ideal Postcodes](https://github.com/ideal-postcodes) | [Xerox](https://www.xerox.com) |

### Patreon

<a href="https://www.patreon.com/bePatron?u=11315442"><img alt="Patrons on Patreon" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dwessberg%26type%3Dpatrons" width="200" /></a>

<!-- SHADOW_SECTION_BACKERS_END -->

<!-- SHADOW_SECTION_TOC_START -->

## Table of Contents

- [Description](#description)
- [Features](#features)
- [Backers](#backers)
- [Patreon](#patreon)
- [Table of Contents](#table-of-contents)
- [Install](#install)
- [npm](#npm)
Expand All @@ -78,8 +96,6 @@ If you are looking for a Typescript REPL, or a way to _execute_ a full Typescrip
- [Reporting](#reporting)
- [Contributing](#contributing)
- [Maintainers](#maintainers)
- [Backers](#backers)
- [Patreon](#patreon)
- [FAQ](#faq)
- [How fast is this?](#how-fast-is-this)
- [License](#license)
Expand Down Expand Up @@ -162,7 +178,7 @@ const result = evaluate({
// ...
environment: {
// The "Node" environment is the default one. You can simply omit this key if you are targeting a Node environment
preset: EnvironmentPresetKind.NODE,
preset: "NODE",
extra: {
someGlobal: "someValue"
}
Expand Down Expand Up @@ -288,22 +304,6 @@ Do you want to contribute? Awesome! Please follow [these recommendations](./CONT

<!-- SHADOW_SECTION_MAINTAINERS_END -->

<!-- SHADOW_SECTION_BACKERS_START -->

## Backers

[Become a sponsor/backer](https://github.com/wessberg/ts-evaluator?sponsor=1) and get your logo listed here.

| <a href="https://usebubbles.com"><img alt="Bubbles" src="https://uploads-ssl.webflow.com/5d682047c28b217055606673/5e5360be16879c1d0dca6514_icon-thin-128x128%402x.png" height="70" /></a> | <a href="https://github.com/cblanc"><img alt="Christopher Blanchard" src="https://avatars0.githubusercontent.com/u/2160685?s=400&v=4" height="70" /></a> |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Bubbles](https://usebubbles.com)<br><strong>Twitter</strong>: [@use_bubbles](https://twitter.com/use_bubbles) | [Christopher Blanchard](https://github.com/cblanc) |

### Patreon

<a href="https://www.patreon.com/bePatron?u=11315442"><img alt="Patrons on Patreon" src="https://img.shields.io/endpoint.svg?url=https://shieldsio-patreon.herokuapp.com/wessberg" width="200" /></a>

<!-- SHADOW_SECTION_BACKERS_END -->

<!-- SHADOW_SECTION_FAQ_START -->

## FAQ
Expand Down
51 changes: 26 additions & 25 deletions package.json
Expand Up @@ -8,13 +8,13 @@
"generate:all": "pnpm run generate:scaffold && pnpm run generate:changelog",
"clean": "rimraf dist",
"lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color",
"prettier": "prettier --write '{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}'",
"prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"",
"test": "ava",
"prebuild": "pnpm run clean",
"build": "pnpm run rollup",
"watch": "pnpm run rollup -- --watch",
"rollup": "rollup -c rollup.config.js",
"preversion": "pnpm run lint && NODE_ENV=production pnpm run build",
"preversion": "pnpm run lint && pnpm run build",
"version": "pnpm run generate:all && git add .",
"release": "np --no-cleanup --no-yarn",
"update": "pnpx npm-check-updates -u -x np --dep dev,prod && pnpm update && pnpm install"
Expand Down Expand Up @@ -43,33 +43,33 @@
],
"license": "MIT",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"@wessberg/rollup-plugin-ts": "^1.3.5",
"@wessberg/scaffold": "^1.0.32",
"@wessberg/ts-config": "^1.0.19",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@wessberg/rollup-plugin-ts": "^1.3.10",
"@wessberg/scaffold": "^1.0.36",
"@wessberg/ts-config": "^1.0.22",
"@types/semver": "^7.3.4",
"@types/node": "^14.14.0",
"@types/node": "^14.14.35",
"@types/object-path": "^0.11.0",
"@types/jsdom": "^16.2.4",
"ava": "^3.13.0",
"eslint": "^7.11.0",
"eslint-config-prettier": "^6.13.0",
"@types/jsdom": "^16.2.7",
"ava": "^3.15.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.7.3",
"husky": "^4.3.0",
"eslint-plugin-jsdoc": "^32.3.0",
"husky": "^5.1.3",
"np": "5.2.1",
"pnpm": "^5.9.3",
"prettier": "^2.1.2",
"fast-glob": "^3.2.4",
"pnpm": "^5.18.7",
"prettier": "^2.2.1",
"fast-glob": "^3.2.5",
"pretty-quick": "^3.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.32.0",
"rollup": "^2.41.4",
"slash": "^3.0.0",
"semver": "7.3.2",
"standard-changelog": "^2.0.24",
"ts-node": "^9.0.0",
"typescript": "4.1.0-beta",
"semver": "7.3.4",
"standard-changelog": "^2.0.27",
"ts-node": "^9.1.1",
"typescript": "^4.2.3",
"typescript-3-0-1": "npm:typescript@3.0.1",
"typescript-3-1-1": "npm:typescript@3.1.1",
"typescript-3-2-1": "npm:typescript@3.2.1",
Expand All @@ -80,13 +80,14 @@
"typescript-3-7-2": "npm:typescript@3.7.2",
"typescript-3-8-3": "npm:typescript@3.8.3",
"typescript-3-9-2": "npm:typescript@3.9.2",
"typescript-4-0-3": "npm:typescript@4.0.3"
"typescript-4-0-3": "npm:typescript@4.0.3",
"typescript-4-1-2": "npm:typescript@4.1.2"
},
"dependencies": {
"chalk": "^4.1.0",
"object-path": "^0.11.5",
"tslib": "^2.0.3",
"jsdom": "^16.4.0"
"tslib": "^2.1.0",
"jsdom": "^16.5.1"
},
"peerDependencies": {
"typescript": ">=3.2.x || >= 4.x"
Expand Down

0 comments on commit e87b496

Please sign in to comment.