Commit Graph

235 Commits

Author SHA1 Message Date
Guangcong Luo
84905e3078 Fix CI bug when PRs delete files
`full-test-ci` receives a list of modified (including deleted) files,
but eslint complains when it tries to lint a nonexistent file.
Fortunately, it has a flag to ignore missing files which we can
just use here.
2023-12-02 14:16:58 -06:00
Guangcong Luo
6b42b4f6b2 Experimental direct replay uploading
We have a new replay server on a new engine using a new schema.

Everything's gone remarkably well, considering.
2023-12-02 11:07:08 -05:00
Mia
c89c68ad3a Use source maps for better error stacks
This has been very annoying.
2023-11-26 22:49:46 -06:00
Ashley
167af27c7d
Update Smogon package version (#9916) 2023-11-21 19:31:05 -06:00
Guangcong Luo
def35420ef Bump probe-image-size version 2023-11-04 22:02:58 -07:00
tofa
3901e11b8b
Github Actions: Perform selective eslint & testing for PRs (#9506) 2023-04-30 02:51:19 -07:00
Guangcong Luo
2c19ae7aeb
Release 0.11.9
Previous NPM package had a postinstall script that made it fail to
install. This fixes that.

TypeScript types still aren't working, as I suspected. That will
come in a future version.
2023-04-14 11:50:05 +09:00
Guangcong Luo
1cea3f39cb
Don't rebuild if installed by NPM package 2023-04-14 11:44:52 +09:00
Guangcong Luo
828255d8bf
Release 0.11.8
This is our first release on our new NPM build system. Let's see how
good it is.
2023-04-13 18:08:48 +09:00
Annika
0bc78dddf5 TypeScript 5! 2023-04-09 13:02:19 -07:00
Mia
35420b5a5e package.json: Add a postinstall script
This is for those who are installing from a git link rather than the severely outdated NPM package.
2023-01-05 09:31:53 -06:00
Mia
a95cde1ab8 Fix TSC 2023-01-03 12:07:40 -06:00
Waleed Hassan
4b975d74a1
Set import: Update for Gen 9 (#9215) 2022-12-27 05:07:45 -05:00
Mia
b11177d530
Migrate to esbuild for compilation (#9203) 2022-12-22 15:19:29 -06:00
Mia
a725b5b8cb Remove husky dependency
Agreed upon by everyone as not useful.
2022-12-21 22:04:33 -06:00
Mia
7f9398f2b3 Abuse-monitor: Add a command to ignore modlog actions in punishment calculation
Requested by US.
2022-11-14 21:00:11 -06:00
Mia
ec4cb6a6fa
Support persisting battles in a Postgres database (#8442) 2022-07-22 18:07:10 -07:00
Annika
1c756b1117 Pin @swc/core to 1.2.205
Fixes build issues stemming from swc/ts-node making `require()`d files have getters instead of objects
2022-07-02 20:35:56 -07:00
Annika
e821197ad5
Combine lint and full-lint NPM scripts (#8713)
Now that [`lint` and `full-lint` use the same configuration](c57fcf25c6), the only difference between them is the `--max-warnings` flag.

This separation causes some problems:
- In small terminal windows, warnings can be obscured by terminal scroll due to the large volume of unit tests. These warnings in turn cause CI failures since GitHub Actions runs `full-lint`.
- When changes to the linting script need to be made, **three** scripts need to be updated. This can lead to oversights such as `full-lint` not being updated for `.tsx` files when JSX support was added.
2022-05-01 15:18:42 -07:00
Guangcong Luo
a3565c06f6 Update typescript-eslint version 2021-12-24 02:11:47 -06:00
Mia
b611bcf45b Remove brain.js dep
Unneeded now that we use Perspective.
2021-12-08 18:15:11 -06:00
Annika
ced5e7fc81 Fixes for private code 2021-11-26 16:16:48 -08:00
Mia
4c9ccd29ca Handle Typescript 4.5.2 2021-11-18 19:11:21 -06:00
Guangcong Luo
aa5a26e896 Remove no-extraneous-dependencies eslint rule
The `no-extraneous-dependencies` rule conflicts with the way we use
`node-oom-heapdump`.

It also isn't even the kind of dependency linting we need! It's
obvious when we forget to include a dependency (CI will tell us), it's
forgetting to remove a dependency that can stick around unnoticed.

Anyway, this allows us to remove the entirety of `eslint-plugin-import`.
Yay for cutting down dependencies?
2021-11-15 19:11:47 -05:00
Mia
f608496938
Support JSX in HTML pages (#8523)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2021-11-12 22:06:26 -08:00
Annika
dcb2065116 Increase timeout for slow tests 2021-11-04 10:43:41 -07:00
Mia
7811795344
Handle new TypeScript version (#8449)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2021-08-30 20:11:44 -07:00
Mia
6c7ce161c0
Add a chat plugin for reporting GitHub actions (#8414) 2021-08-12 11:12:57 -07:00
Mia
a0bdd4da88 Friends: Index databases 2021-07-20 23:43:19 -05:00
Annika
c134195915
Use ts-node instead of Sucrase (#8369) 2021-07-09 19:59:22 -07:00
Marty-D
c5e1699650
Roll back to the previous smogon version, then 2021-07-02 10:26:57 -04:00
Marty-D
ad959513c1
Actually update deps to get newest smogon for set-import 2021-07-02 09:51:19 -04:00
Marty-D
eb9935fe6b
Update deps to get newest smogon for set-import 2021-07-02 09:22:52 -04:00
Guangcong Luo
907128918f Release 0.11.7
I've spent the past few weeks working on build systems for other
projects, and this has paid off in having a better understanding of
things here.

The NPM package should now be much easier to use now.

Major changes:

- TypeScript definitions (f47e38c5ad)

- Support for importing teams (ddb6010bb9)

- A CLI for exporting teams (ddb6010bb9)

- `lib/` available as an unstable API in the NPM package (147b7e01c9)

- Lots of documentation updates (a813a55679)
2021-06-10 09:23:05 -07:00
Guangcong Luo
2bc1f032c1 Release 0.11.6
semver? what's that? Seriously, though, the major breaking changes
are all in undocumented APIs.

Notable changes include:

- A new Dex API (#8181)

- `lobby` is no longer special-cased (messages without a roomid now
  always get sent to console rather than lobby)

- A new challenge API (#8303)

- A new system for specifying battle rules with numbers and other
  options (#8267)
2021-06-06 09:42:08 -05:00
Marty-D
94240ebf5f
Update deps to get newest smogon for set-import 2021-06-02 09:43:22 -04:00
Guangcong Luo
fb476120b5 Release 0.11.5
This is mostly to get d4b6ba4c0f to npm.
2021-03-29 11:00:52 -07:00
Guangcong Luo
ed454ef76a
Refactor scripts to battle-actions (#8138)
This introduces a new class, BattleActions, available as `battle.actions`,
moving all functions from `data/scripts.ts` to `sim/battle-actions.ts`.

This makes it so that "go to definition" will now work correctly for
functions previously in scripts; we no longer need UnimplementedError,
and there's now a clean conceptual separation between `battle` and
`battle-actions` (whereas the previous distinction between `battle` and
`scripts` was basically nonexistent).

This will be a difficult migration if you maintain a fork with custom
scripted mods. I'm sorry! Migration instructions are here:

https://github.com/smogon/pokemon-showdown/pull/8138
2021-03-28 12:01:38 -07:00
Marty-D
30a4965e7d
Update deps to get newest smogon for set-import 2021-03-02 15:20:15 -05:00
Marty-D
633a8b1829
Update deps to get newest smogon for set-import 2021-02-08 11:54:16 -05:00
Mia
335eafba95
Add machine-learning based monitors (#7937) 2021-01-30 17:40:01 -08:00
Marty-D
fcd1dd098d
Update deps to get newest smogon for set-import 2021-01-08 16:42:04 -05:00
Guangcong Luo
7d7676db11 Revert accidental package.json change 2020-12-26 22:04:14 -08:00
Guangcong Luo
3cbf3f8a30 Fix build
Building from a fresh install currently fails since #7797

The problem is that `require('sucrase')` needs to be done _after_
sucrase is installed, which is a lot harder than it sounds.
2020-12-26 10:04:41 -08:00
Annika
b5b91e9d9c Upgrade to the latest SockJS version 2020-12-22 21:42:13 -08:00
Guangcong Luo
baaeb1e23b Release 0.11.4 to npm
This is mostly to publish a version with the Streams issue fixed.

Specifically, this commit: 8b68cdd736
2020-12-12 22:10:24 +00:00
Guangcong Luo
968390a632 Update TypeScript dependency version 2020-11-20 07:53:06 +00:00
Guangcong Luo
e2f4d247e7
Support npm run fix (#7640) 2020-11-05 16:48:49 -08:00
Annika
aa069ce8fd
Support disabling modlogs (#7619)
Co-authored-by: Christopher Monsanto <chris@monsan.to>
2020-11-02 22:59:31 -05:00
Annika
2f130e8762
Modlog: Support logging to a SQLite database (#7513)
* Modlog: Support logging to a SQLite database

Co-authored-by: Christopher Monsanto <chris@monsan.to>
2020-10-30 19:27:25 -04:00