Skip to content

Update dependency yaml to v2.2.2 [SECURITY] #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 1, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
yaml (source) 2.0.0-8 -> 2.2.2 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2023-2251

Uncaught Exception in GitHub repository eemeli/yaml starting at version 2.0.0-5 and prior to 2.2.2.


Release Notes

eemeli/yaml (yaml)

v2.2.2

Compare Source

This patch release includes a fix for an error that could be thrown in parseDocument for degenerate input. Otherwise, it's a patch release uplifting a few fixes from the ongoing v2.3 work to v2.2:

  • Corner case failure in error pretty-printer (CVE-2023-2251)
  • Use correct argument order when stringifying flow collection comments (#​443)
  • First-line folding for block scalars (#​422)

v2.2.1

Compare Source

  • Quote top-level map keys containing document markers (#​431)

v2.2.0

Compare Source

New Features
  • Add flowCollectionPadding toString option (#​420)
  • Use indicator line for props on block collection values of mappings (#​425)
Bugfixes
  • Minor relaxation of types for custom tags (#​429)

v2.1.3

Compare Source

  • Set correct node-end position for block collections with comments (#​413)

v2.1.2

Compare Source

  • Set correct node-end position for empty values with comments (#​413)

v2.1.1

Compare Source

No changes in executable code, only TS types.

  • Revert "Use TS named tuple for range (#​385)" -- see #​393
  • Fix types for compatibility with TS 4.2 and 4.7
  • Add CI workflow for testing published type in a range of TS versions

v2.1.0

Compare Source

Fixes for TypeScript users. Arguably this could've been a patch release as well.

  • Improve/specify/fix TS types for Document & collection access methods (#​383)
  • Use TS named tuple for range (#​385)
  • Rename internal Document option as _directives to resolve type conflict with ToString options (#​389)
  • Update tsc target to ES2020 to match Node.js support
  • Update dev dependencies, including jest 28

v2.0.1

Compare Source

  • Fix tags and anchors on map keys (#​378)

v2.0.0

Compare Source

This update has been in the works for the last year and a half. Its prerelease versions have been thoroughly tested by a wide number of users, and I think it's finally ready for "actual" release, for use in the mythical "production".

The breaking changes introduced here are mostly originating from the v1 CST parser having become a rather difficult beast to work with. So it's here rewritten pretty much completely, now with a lexer as a first stage. Along the way, the whole project was rewritten in TypeScript and the export paths and options refactored pretty deeply.

If you've been using the library just via its parse(), parseDocument() and stringify() functions, then it's quite likely that none of the changes affect your experience in any way. However, if you've been doing something more involved, then I would strongly recommend that you review the library's documentation site for the v2 docs.

Going forward, it's finally time to start experimenting with new YAML spec features that may eventually be included in YAML 1.3 and later. Those will be made available by specifying the version: 'next' option. However, beware! Any features available this way may be removed or have their API broken by any minor release of this library, and no compatibility guarantees with other libraries are given. In general, semver compatibility is guaranteed for features that are explicitly included in the documentation; everything else should be considered as internal implementation details.

The following is an overview of the breaking changes and new features introduced in each of the prerelease steps leading up to this release; the individual releases' notes and the PRs will contain more detail, along with specific migration guides.

BREAKING CHANGES
v2.0.0-0
  • Drop deprecated end points, members, options & defaults (#​171)
  • Breaking changes to Document & createNode APIs (#​186)
  • When creating a mapping from a JS Object, drop undefined values (#​173)
  • Retain existing nodes when using set() in mappings & sequences (#​185)
v2.0.0-1
  • Improve JSON compatibility (#​189)
  • Refactor tag resolve() API (#​201)
v2.0.0-3
  • Drop 'yaml/parse-cst' endpoint (#​223)
  • Update build configs & minimum supported versions (#​224)
v2.0.0-4
  • Refactor options (#​235)
  • Refactor parsing completely (#​203)
  • Merge all of 'yaml/types' and some of 'yaml/util' into 'yaml' (#​234)
  • Refactor node identification (#​233)
  • Drop type property from all but Scalar nodes (#​240)
  • Refactor as TypeScript (#​233)
v2.0.0-5
  • Make anchor & alias resolution lazier (#​248)
  • Split flow collections into items in Parser (#​249)
  • Make Pair not extend NodeBase; drop its prop forwarding (#​245, #​250)
  • Rename the tokens namespace as CST (#​252)
  • Turn the Lexer, Parser & Composer into generators (#​253)
  • Refactor Node range as [start, value-end, node-end] (#​259)
  • Replace error.offset with error.pos: [number, number] (#​260)
v2.0.0-6
  • Fix empty lines & trailing comments (#​278)
  • Drop Node.js 10 support
v2.0.0-9
  • Allow disabling single & block quotes completely (#​326)
v2.0.0-10
  • The TS type of doc.directives now indicates it as optional (#​344)
v2.0.0-11
  • YAML.defaultOptions is removed (#​346)
  • directives.marker is renamed as directives.docStart (#​371)
v2.0.0
  • Drop Node.js 12 support (end-of-life 2022-04-30)
New Features
v2.0.0-0
  • Resolve known tags in core schema (#​172)
  • Create intermediates for set() & setIn() on doc with empty contents (#​174)
  • Fix intermediate collection creation for parsed documents (#​174)
  • Improve quoted string flexibility (#​177)
  • Add defaultKeyType option for finer control of scalar output (#​179)
v2.0.0-1
  • Remember source string for null scalars (#​193)
  • Support asBigInt option for sexagesimal integer values
v2.0.0-3
  • Refactor logging control, adding logLevel option (#​215)
  • Add visit(node, visitor) to 'yaml' (#​225)
v2.0.0-4
  • Stringify top-level block scalars with header on marker line
  • Add a couple of things to 'yaml/util' that weren't exposed before
v2.0.0-5
  • Add Collection, Value & Node visitor aliases
  • Add error codes
  • Always include offset in CST tokens
  • Add CST tools (#​252)
v2.0.0-6
  • Check key uniqueness; add uniqueKeys option (#​271)
  • Drop special-casing COMMENT_SPACE error; use MISSING_CHAR for it instead
v2.0.0-7
  • Support immediate map values for << merge keys, in addition to alias values
v2.0.0-8
  • Add a new createNode option aliasDuplicateObjects (#​299)
  • Add clone() methods to Document, Directives, Schema and all Nodes (#​304)
v2.0.0-9
  • Add keepSoureToken parse option, adding srcToken values to Nodes (#​309)
  • Allow for custom schema id, provided that customTags is defined (#​325)
  • Expose tags & types required by custom composers (#​325)
v2.0.0-10
v2.0.0-11
  • Add warning for aliases & anchors ending with a colon (#​370)
  • Add directives.docEnd, for ... marker (#​371)
  • Add YAML.visitAsync() (#​372)
v2.0.0
  • Allow for a 'next' YAML version

v2.0.0-11

Compare Source

This version of yaml has been published to npm using the next dist-tag, so install it with:

npm install --save-exact yaml@next
BREAKING CHANGES
YAML.defaultOptions is removed (#​346)

For a while, it's been undocumented, but still available. Since the options refactor of #​235, it has only provided defaults for Parse & Document options, and not any of the others, so its name is a bit misleading as well.

If you're using YAML.defaultOptions, you'll need to explicitly set the options in the appropriate parse*() and new Document() calls after this change.

directives.marker is renamed as directives.docStart (#​371)

The behaviour of the property stays the same as before.

New Features
  • Add warning for aliases & anchors ending with a colon (#​370)
  • Add directives.docEnd, for ... marker (#​371)
  • Add YAML.visitAsync() (#​372)
Bugfixes
  • Flow collection keys in block maps (redhat-developer/vscode-yaml#712)
  • Error on %YAML directives with content after version (#​348)
  • Use correct check for empty null source (#​366)
  • Do not throw during composition, even for bad tokens (#​367)
  • Error on invalid %YAML directives
  • Empty block scalars with chomp=keep & trailing whitespace
  • Parse ? : x as { ? { : x } }
  • Do not consider tabs as indent for flow collections
  • Include trailing more-indented empty lines in block scalar contents
  • Should complain about -, and -] in flow collections
  • Update dev dependencies, including @types/node downgrade
Test Improvements
  • Update yaml-test-suite, skipping some new tests
  • Don't needlessly skip yaml-test-suite B63P test
  • test-events: Do not skip events for only apparently empty documents
  • yaml-test-suite: Skip in.json tests when expecting errors

v2.0.0-10

Compare Source

This version of yaml has been published to npm using the next dist-tag, so install it with:

npm install --save-exact yaml@next
BREAKING CHANGES
  • The TS type of doc.directives now indicates it as optional. Its actual value has not changed, but the type needs to account for what might happen if doc.setSchema() is called with a null version argument. (#​344)
New Features
Add a compatibility checker (#​335)

Adds a new schema option compat: string | Tags. If set, warns during composition about compatibility issues with the given schema. When stringifying, uses scalar styles that are parsed correctly by the compat schema as well as the actual schema.

Support for Non-YAML Schemas

While YAML is a superset of JSON, it isn't a strict superset of other JSON-based configuration languages. Feature-wise, though, these languages are as a rule a subset of YAML features, so let's build some groundwork for supporting them as well by making additional aspects of this library configurable.

  • Add commentString option, refactor internals to support it (#​336)
  • Add toStringDefaults option (#​337)
  • Add collectionStyle option (#​343)
  • Allow for Schema instance as schema option (#​344)
Test Improvements
  • Add json-test-suite as git submodule (#​340)
  • Update to latest yaml-test-suite data
  • Add {} and [] indicators to flow maps & sequences in test-events output (used by the YAML Test Matrix)
  • Use --target es5 in test:dist:types script (#​334)
Bugfixes
  • Allow for custom schemas in TS types (#​325)
  • Flow collection expected-end error (#​328)
  • parser: flow-error-end token should not advance offset
  • Handle duplicate flow : indicators correctly
  • Correctly stringify non-finite scalars with format: 'EXP'
  • Allow block map with flow collection key as explicit key
  • Do not use negative indent for any parser tokens

v2.0.0-9

Compare Source

This version of yaml has been published to npm using the next dist-tag, so install it with:

npm install --save-exact yaml@next

Hopefully the breaking change for singleQuote: false won't cause anyone issues. Otherwise, small improvements only.

BREAKING CHANGES
Allow disabling single & block quotes completely (#​326)

The options for representing scalar values are refactored, such that blockQuote (new) and singleQuote (expanded) allow setting a preference as well as preventing said styles from being used at all. This changes how singleQuote: false is handled. To retain the previous behaviour, use singleQuote: null or leave the option unset.

New Features
  • Add keepSoureToken parse option, adding srcToken values to Nodes (#​309)
  • Allow for custom schema id, provided that customTags is defined (#​325)
  • Expose tags & types required by custom composers (#​325)
Bugfixes
  • cst: Specify resolveAsScalar return type
  • lexer: Reset flow-key flag on comma in flow collection (#​316)
  • lexer: Allow unindented comment in flow collection
  • Support seq-of-maps merge key values (#​321)
  • compose: Indent level of empty block scalars with keep chomping (#​313)
  • Honor singleQuote option more widely
  • Get rid of extra whitespace around empty map values
  • Drop ...expansion from public TS interfaces (#​334)

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added dependencies Pull requests that update a dependency file deps: minor labels Jun 1, 2023
@renovate renovate bot changed the title fix(deps): update dependency yaml to v2.2.2 [security] Update dependency yaml to v2.2.2 [SECURITY] Jan 21, 2024
@Domin0de Domin0de merged commit e02999a into develop May 15, 2024
@Domin0de Domin0de deleted the renovate/npm-yaml-vulnerability branch May 15, 2024 04:12
Domin0de added a commit that referenced this pull request Jul 18, 2024
* migrate from insou api to circles for the handbook commands (#128)

* migrate from insou api to circles for the handbook commands

* remove trailing forward slash in handbook.json

* handbook: the handbook is fixed

* Update handbook.js

commented out a console.log

---------

Co-authored-by: tunein <[email protected]>
Co-authored-by: zcDay1 <[email protected]>

* prettier formatted

* chore(deps): update `renovate` config

* chore(deps): update docker/build-push-action action to v4 (#134)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Projects description command feature (#145)

* projects-descriptions v1 commit

* project-descriptions command v2 commit

* linting fixes for project-descriptions.js, and for handbook.js

---------

Co-authored-by: AcdSoftCo <[email protected]>

* disable annoying carrotboard pins

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging

* Revert "rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging"

This reverts commit 2f59c71.

* rolesPermOverride command  (#152)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Roles perm override (#153)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

* course.js: removed code to create individual user permission overwrites in each channel

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Project descriptions (#154)

* project-descriptions.js: updated course descriptions written by the directors for 2023 levelling up with Projects Fair Day, and the discord bot CTF flag easter egg entry under this command included too for this event.

* made messages ephemeral to prevent chat from being spammed by users. And got rid of link embeds in the messages.

* lint update

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Dev/course channel fix 3 (#158)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

---------

Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* dev/course-channel-fix-5 (#160)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

* Appended single channel mode for permissions override

* Appended check command for role permissions

* Resolved merge conflicts in dev/course-channel-fix-4

---------

Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* Update rolesPermOverride.js

double equals updated to triple equals on line 156

* Course Command Fixing - Collection Null Value Error (#162)

* Accounting for non-channel returns associated to snowflakes

* Utilise cache directly as fetch falls back to a cache call anyway

* Dev/upgrade handbook url (#164)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed bug for courses that do not yet have an offering term (Default: "None") (#165)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed equivalent courses urls being listed

* Implementation of the Lunch Buddy feature (#167)

* update: checking if perms work

* Chron job set for every minute, basic embed added and structure for the locations and sub locations created

* Updated README

* Implemented area voting system

* Ran linting and prettier for current changes

* Appending location poll for given area, and vote counting for both area and locations

* Implemented functional voting system for area and location, creating thread upon completion of set

* Used await and cleaned up a bit of code, thread now adds all voters not only the ones who voted for the winning area

* Lint fix

* Removed promises and adjusted placement of vote function calls

* Adjusted thread users, append location vote pings

* Linting fixes

* Locations Update

* Adds "any" option and append additional vote info

* Appended code for live run timing

* Update to use config file

* Allow disabling of feature without editing code and disable

* Minor adjustment to readme and npm commands

* Appended clarifying comment regarding edge case of only any votes

---------

Co-authored-by: mi-mott <[email protected]>

* [DISC-107] Adding csesocLinks to get CSESoc related links (#170)

* completed csesocLinks command

* linting

* Refactor execute function to use arrow functions

* linting

* [DISC-109] Adding bot-status for events and member count (#169)

* Adding bot-status for events and member count

* Fixing lint errors

* Adding fixes to how member count is calculated

---------

Authored-by: Eric <[email protected]>

* Update dependency nodemailer to v6.9.9 [SECURITY] (#168)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency axios to v0.28.0 [SECURITY] (#166)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency yaml to v2.2.2 [security] (#147)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency dotenv to v16 (#141)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4 (#157)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency discordjs-button-pagination to v3 (#140)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Remove unused discord-tictactoe dependency and updated canvas (#173)

* fix(deps): update weekly patch updates (#142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/builders to v1 (#135)

* Update dependency @discordjs/builders to v1

* Update to project description choices to utilise object structure (Fix to erroring on dependency update)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* fix(deps): update dependency discord.js to v14 (#139)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update to fix v14 breaking changes (#176)

* chore(deps): update actions/setup-node action to v4 (#172)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Nitpick refactor for courses command (#126)

* I can finally sleep now

* Implementation of suggested modifications

* Modification to ensure correct regex form for case-insensitive match

---------

Co-authored-by: Wolfdragon24 <[email protected]>

* fix(deps): update dependency mathjs to v12 (#182)

* chore(deps): update docker-github-actions

* fix(deps): update dependency mathjs to v12

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency axios to v1 (#181)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/rest to v2 (#179)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-config-prettier to v9 (#175)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency nodemon to v3 (#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update node.js to v20 (#171)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency mathjs to v13 (#184)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DISC-119-unielectives-review (#188)

* working unilectives review

* added warning for chartjs dependency

* changed to ephemeral reply

* removed unneccesary libraries for chartjs

* hopefully no npm package conflict dying

* npm packages should be fixed

* changed web scraper package for robustness

* linting

* fixed yaml npm issue

* JSCode docu

* linting

* revert config files to og

* package-json changes

---------

Co-authored-by: addison <[email protected]>

* [DISC-120] Update eslint dependency and nodejs to v20

* chore(deps): update dependency eslint to v9

* Update to eslint and babel/eslint-parser

* Update lock file

* Fixes for linting

* Modifications to ignore node modules and consider all other files for linting

* Force update of node to version 20

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>

* [DISC-120] Update to prettier and corresponding eslint plugin

* chore(deps): update dependency prettier to v3

* Update prettier config to use auto end of line setting

* Linting and prettifying

* Prettier fixes and running format

* Prettier fix

* Fix by consolidating updates to prettier and eslint plugin

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>

* chore(deps): lock file maintenance (#186)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update weekly minor updates (#143)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* [DISC-120] Fix to renovate.json file (#190)

* [DISC-120] Declare file type for requiring data (#192)

* [DISC-120] Adjust data type for file (#193)

* Declare file type for requiring data

* Use json as opposed to js data file

* [DISC-120] Move to using fs for configuration (#194)

* Declare file type for requiring data

* Use json as opposed to js data file

* Replace require to use reading file with fs

* Move file to config

* Fix spelling error

* Append setup command for puppeteer browser

* Downloading dependencies and requirements for puppeteer

* Modification to installation order

* Affirm installation

* Revert prior changes and set to use alternate folder for chromium instance

* Manually ignore puppeteer config file in eslint

* Attempt fix to eslint hanging

* [DISC-117] Adding travelguides command (#187)

* initial travelguide add subcommand

* fixing formatting

* fixing syntax error

* added get function

* linting

* completed travelguide command

* linting

* adding deletion confirmation

* linting

* migrating travelguide.json to postgres

* linting

* linting

---------

Co-authored-by: Jessica Xu <[email protected]>

* Modify location and method for chromium install

* Alter setup to use chromium base

* Update to puppeteer version

* Replace secondary node image with puppeteer

* Fix capitalisation inconsistency and assume permission set

* Reappend entrypoint permission modification

* Reset user from image setup

* Attempt return to puppeteer user after setup

* [DISC-110] Adding Course Chats 1-year "Subscription" (#191)

* Added database implementation of user roles when assigned and removed

* Added time checking function for expired user_roles and added time assigned column to user_roles table

* Added on ready file with cron.js to perform daily check of old_roles

* Adding new package cron for scheduling

* fixing lint issues

* Fixing prettier issues

* Package changes

* Restoring develop package lock.json and fixing db_ready

* Moving guild and roles out of for loop to remove redundant fetching

---------

Co-authored-by: imagine-hussain <[email protected]>
Co-authored-by: tunein <[email protected]>
Co-authored-by: zcDay1 <[email protected]>
Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Jared L <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: abiramen <[email protected]>
Co-authored-by: Bigbugman <[email protected]>
Co-authored-by: Abraham Assariparambil Earnest <[email protected]>
Co-authored-by: mi-mott <[email protected]>
Co-authored-by: chlowoee <[email protected]>
Co-authored-by: ericwu2205 <[email protected]>
Co-authored-by: XenocidePC <[email protected]>
Co-authored-by: h34312575s <[email protected]>
Co-authored-by: addison <[email protected]>
Co-authored-by: Jessica Xu <[email protected]>
Domin0de added a commit that referenced this pull request Aug 8, 2024
* migrate from insou api to circles for the handbook commands (#128)

* migrate from insou api to circles for the handbook commands

* remove trailing forward slash in handbook.json

* handbook: the handbook is fixed

* Update handbook.js

commented out a console.log

---------

Co-authored-by: tunein <[email protected]>
Co-authored-by: zcDay1 <[email protected]>

* prettier formatted

* chore(deps): update `renovate` config

* chore(deps): update docker/build-push-action action to v4 (#134)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Projects description command feature (#145)

* projects-descriptions v1 commit

* project-descriptions command v2 commit

* linting fixes for project-descriptions.js, and for handbook.js

---------

Co-authored-by: AcdSoftCo <[email protected]>

* disable annoying carrotboard pins

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging

* Revert "rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging"

This reverts commit 2f59c71.

* rolesPermOverride command  (#152)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Roles perm override (#153)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

* course.js: removed code to create individual user permission overwrites in each channel

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Project descriptions (#154)

* project-descriptions.js: updated course descriptions written by the directors for 2023 levelling up with Projects Fair Day, and the discord bot CTF flag easter egg entry under this command included too for this event.

* made messages ephemeral to prevent chat from being spammed by users. And got rid of link embeds in the messages.

* lint update

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Dev/course channel fix 3 (#158)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

---------

Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* dev/course-channel-fix-5 (#160)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

* Appended single channel mode for permissions override

* Appended check command for role permissions

* Resolved merge conflicts in dev/course-channel-fix-4

---------

Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* Update rolesPermOverride.js

double equals updated to triple equals on line 156

* Course Command Fixing - Collection Null Value Error (#162)

* Accounting for non-channel returns associated to snowflakes

* Utilise cache directly as fetch falls back to a cache call anyway

* Dev/upgrade handbook url (#164)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed bug for courses that do not yet have an offering term (Default: "None") (#165)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed equivalent courses urls being listed

* Implementation of the Lunch Buddy feature (#167)

* update: checking if perms work

* Chron job set for every minute, basic embed added and structure for the locations and sub locations created

* Updated README

* Implemented area voting system

* Ran linting and prettier for current changes

* Appending location poll for given area, and vote counting for both area and locations

* Implemented functional voting system for area and location, creating thread upon completion of set

* Used await and cleaned up a bit of code, thread now adds all voters not only the ones who voted for the winning area

* Lint fix

* Removed promises and adjusted placement of vote function calls

* Adjusted thread users, append location vote pings

* Linting fixes

* Locations Update

* Adds "any" option and append additional vote info

* Appended code for live run timing

* Update to use config file

* Allow disabling of feature without editing code and disable

* Minor adjustment to readme and npm commands

* Appended clarifying comment regarding edge case of only any votes

---------

Co-authored-by: mi-mott <[email protected]>

* [DISC-107] Adding csesocLinks to get CSESoc related links (#170)

* completed csesocLinks command

* linting

* Refactor execute function to use arrow functions

* linting

* [DISC-109] Adding bot-status for events and member count (#169)

* Adding bot-status for events and member count

* Fixing lint errors

* Adding fixes to how member count is calculated

---------

Authored-by: Eric <[email protected]>

* Update dependency nodemailer to v6.9.9 [SECURITY] (#168)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency axios to v0.28.0 [SECURITY] (#166)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency yaml to v2.2.2 [security] (#147)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency dotenv to v16 (#141)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4 (#157)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency discordjs-button-pagination to v3 (#140)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Remove unused discord-tictactoe dependency and updated canvas (#173)

* fix(deps): update weekly patch updates (#142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/builders to v1 (#135)

* Update dependency @discordjs/builders to v1

* Update to project description choices to utilise object structure (Fix to erroring on dependency update)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* fix(deps): update dependency discord.js to v14 (#139)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update to fix v14 breaking changes (#176)

* chore(deps): update actions/setup-node action to v4 (#172)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Nitpick refactor for courses command (#126)

* I can finally sleep now

* Implementation of suggested modifications

* Modification to ensure correct regex form for case-insensitive match

---------

Co-authored-by: Wolfdragon24 <[email protected]>

* fix(deps): update dependency mathjs to v12 (#182)

* chore(deps): update docker-github-actions

* fix(deps): update dependency mathjs to v12

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency axios to v1 (#181)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/rest to v2 (#179)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-config-prettier to v9 (#175)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency nodemon to v3 (#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update node.js to v20 (#171)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency mathjs to v13 (#184)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DISC-119-unielectives-review (#188)

* working unilectives review

* added warning for chartjs dependency

* changed to ephemeral reply

* removed unneccesary libraries for chartjs

* hopefully no npm package conflict dying

* npm packages should be fixed

* changed web scraper package for robustness

* linting

* fixed yaml npm issue

* JSCode docu

* linting

* revert config files to og

* package-json changes

---------

Co-authored-by: addison <[email protected]>

* [DISC-120] Update eslint dependency and nodejs to v20

* chore(deps): update dependency eslint to v9

* Update to eslint and babel/eslint-parser

* Update lock file

* Fixes for linting

* Modifications to ignore node modules and consider all other files for linting

* Force update of node to version 20

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>

* [DISC-120] Update to prettier and corresponding eslint plugin

* chore(deps): update dependency prettier to v3

* Update prettier config to use auto end of line setting

* Linting and prettifying

* Prettier fixes and running format

* Prettier fix

* Fix by consolidating updates to prettier and eslint plugin

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>

* chore(deps): lock file maintenance (#186)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update weekly minor updates (#143)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* [DISC-120] Fix to renovate.json file (#190)

* [DISC-120] Declare file type for requiring data (#192)

* [DISC-120] Adjust data type for file (#193)

* Declare file type for requiring data

* Use json as opposed to js data file

* [DISC-120] Move to using fs for configuration (#194)

* Declare file type for requiring data

* Use json as opposed to js data file

* Replace require to use reading file with fs

* Move file to config

* Fix spelling error

* Append setup command for puppeteer browser

* Downloading dependencies and requirements for puppeteer

* Modification to installation order

* Affirm installation

* Revert prior changes and set to use alternate folder for chromium instance

* Manually ignore puppeteer config file in eslint

* Attempt fix to eslint hanging

* [DISC-117] Adding travelguides command (#187)

* initial travelguide add subcommand

* fixing formatting

* fixing syntax error

* added get function

* linting

* completed travelguide command

* linting

* adding deletion confirmation

* linting

* migrating travelguide.json to postgres

* linting

* linting

---------

Co-authored-by: Jessica Xu <[email protected]>

* Modify location and method for chromium install

* Alter setup to use chromium base

* Update to puppeteer version

* Replace secondary node image with puppeteer

* Fix capitalisation inconsistency and assume permission set

* Reappend entrypoint permission modification

* Reset user from image setup

* Attempt return to puppeteer user after setup

* [DISC-110] Adding Course Chats 1-year "Subscription" (#191)

* Added database implementation of user roles when assigned and removed

* Added time checking function for expired user_roles and added time assigned column to user_roles table

* Added on ready file with cron.js to perform daily check of old_roles

* Adding new package cron for scheduling

* fixing lint issues

* Fixing prettier issues

* Package changes

* Restoring develop package lock.json and fixing db_ready

* Moving guild and roles out of for loop to remove redundant fetching

* [DISC-121] Implement Logging for User Rejoining (#199)

* Implementation of user join and leave logging and admin command to facilitate replacing old db table

* Complete implementation of rejoin notices

* Fix to incorrect conflict resolution commit

---------

Co-authored-by: imagine-hussain <[email protected]>
Co-authored-by: tunein <[email protected]>
Co-authored-by: zcDay1 <[email protected]>
Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Jared L <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: abiramen <[email protected]>
Co-authored-by: Bigbugman <[email protected]>
Co-authored-by: Abraham Assariparambil Earnest <[email protected]>
Co-authored-by: mi-mott <[email protected]>
Co-authored-by: chlowoee <[email protected]>
Co-authored-by: ericwu2205 <[email protected]>
Co-authored-by: XenocidePC <[email protected]>
Co-authored-by: h34312575s <[email protected]>
Co-authored-by: addison <[email protected]>
Co-authored-by: Jessica Xu <[email protected]>
Domin0de added a commit that referenced this pull request Aug 8, 2024
* migrate from insou api to circles for the handbook commands (#128)

* migrate from insou api to circles for the handbook commands

* remove trailing forward slash in handbook.json

* handbook: the handbook is fixed

* Update handbook.js

commented out a console.log

---------

Co-authored-by: tunein <[email protected]>
Co-authored-by: zcDay1 <[email protected]>

* prettier formatted

* chore(deps): update `renovate` config

* chore(deps): update docker/build-push-action action to v4 (#134)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Projects description command feature (#145)

* projects-descriptions v1 commit

* project-descriptions command v2 commit

* linting fixes for project-descriptions.js, and for handbook.js

---------

Co-authored-by: AcdSoftCo <[email protected]>

* disable annoying carrotboard pins

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging

* Revert "rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging"

This reverts commit 2f59c71.

* rolesPermOverride command  (#152)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Roles perm override (#153)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

* course.js: removed code to create individual user permission overwrites in each channel

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Project descriptions (#154)

* project-descriptions.js: updated course descriptions written by the directors for 2023 levelling up with Projects Fair Day, and the discord bot CTF flag easter egg entry under this command included too for this event.

* made messages ephemeral to prevent chat from being spammed by users. And got rid of link embeds in the messages.

* lint update

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Dev/course channel fix 3 (#158)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

---------

Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* dev/course-channel-fix-5 (#160)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

* Appended single channel mode for permissions override

* Appended check command for role permissions

* Resolved merge conflicts in dev/course-channel-fix-4

---------

Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* Update rolesPermOverride.js

double equals updated to triple equals on line 156

* Course Command Fixing - Collection Null Value Error (#162)

* Accounting for non-channel returns associated to snowflakes

* Utilise cache directly as fetch falls back to a cache call anyway

* Dev/upgrade handbook url (#164)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed bug for courses that do not yet have an offering term (Default: "None") (#165)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed equivalent courses urls being listed

* Implementation of the Lunch Buddy feature (#167)

* update: checking if perms work

* Chron job set for every minute, basic embed added and structure for the locations and sub locations created

* Updated README

* Implemented area voting system

* Ran linting and prettier for current changes

* Appending location poll for given area, and vote counting for both area and locations

* Implemented functional voting system for area and location, creating thread upon completion of set

* Used await and cleaned up a bit of code, thread now adds all voters not only the ones who voted for the winning area

* Lint fix

* Removed promises and adjusted placement of vote function calls

* Adjusted thread users, append location vote pings

* Linting fixes

* Locations Update

* Adds "any" option and append additional vote info

* Appended code for live run timing

* Update to use config file

* Allow disabling of feature without editing code and disable

* Minor adjustment to readme and npm commands

* Appended clarifying comment regarding edge case of only any votes

---------

Co-authored-by: mi-mott <[email protected]>

* [DISC-107] Adding csesocLinks to get CSESoc related links (#170)

* completed csesocLinks command

* linting

* Refactor execute function to use arrow functions

* linting

* [DISC-109] Adding bot-status for events and member count (#169)

* Adding bot-status for events and member count

* Fixing lint errors

* Adding fixes to how member count is calculated

---------

Authored-by: Eric <[email protected]>

* Update dependency nodemailer to v6.9.9 [SECURITY] (#168)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency axios to v0.28.0 [SECURITY] (#166)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency yaml to v2.2.2 [security] (#147)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency dotenv to v16 (#141)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4 (#157)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency discordjs-button-pagination to v3 (#140)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Remove unused discord-tictactoe dependency and updated canvas (#173)

* fix(deps): update weekly patch updates (#142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/builders to v1 (#135)

* Update dependency @discordjs/builders to v1

* Update to project description choices to utilise object structure (Fix to erroring on dependency update)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* fix(deps): update dependency discord.js to v14 (#139)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update to fix v14 breaking changes (#176)

* chore(deps): update actions/setup-node action to v4 (#172)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Nitpick refactor for courses command (#126)

* I can finally sleep now

* Implementation of suggested modifications

* Modification to ensure correct regex form for case-insensitive match

---------

Co-authored-by: Wolfdragon24 <[email protected]>

* fix(deps): update dependency mathjs to v12 (#182)

* chore(deps): update docker-github-actions

* fix(deps): update dependency mathjs to v12

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency axios to v1 (#181)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/rest to v2 (#179)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-config-prettier to v9 (#175)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency nodemon to v3 (#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update node.js to v20 (#171)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency mathjs to v13 (#184)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DISC-119-unielectives-review (#188)

* working unilectives review

* added warning for chartjs dependency

* changed to ephemeral reply

* removed unneccesary libraries for chartjs

* hopefully no npm package conflict dying

* npm packages should be fixed

* changed web scraper package for robustness

* linting

* fixed yaml npm issue

* JSCode docu

* linting

* revert config files to og

* package-json changes

---------

Co-authored-by: addison <[email protected]>

* [DISC-120] Update eslint dependency and nodejs to v20

* chore(deps): update dependency eslint to v9

* Update to eslint and babel/eslint-parser

* Update lock file

* Fixes for linting

* Modifications to ignore node modules and consider all other files for linting

* Force update of node to version 20

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>

* [DISC-120] Update to prettier and corresponding eslint plugin

* chore(deps): update dependency prettier to v3

* Update prettier config to use auto end of line setting

* Linting and prettifying

* Prettier fixes and running format

* Prettier fix

* Fix by consolidating updates to prettier and eslint plugin

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>

* chore(deps): lock file maintenance (#186)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update weekly minor updates (#143)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* [DISC-120] Fix to renovate.json file (#190)

* [DISC-120] Declare file type for requiring data (#192)

* [DISC-120] Adjust data type for file (#193)

* Declare file type for requiring data

* Use json as opposed to js data file

* [DISC-120] Move to using fs for configuration (#194)

* Declare file type for requiring data

* Use json as opposed to js data file

* Replace require to use reading file with fs

* Move file to config

* Fix spelling error

* Append setup command for puppeteer browser

* Downloading dependencies and requirements for puppeteer

* Modification to installation order

* Affirm installation

* Revert prior changes and set to use alternate folder for chromium instance

* Manually ignore puppeteer config file in eslint

* Attempt fix to eslint hanging

* [DISC-117] Adding travelguides command (#187)

* initial travelguide add subcommand

* fixing formatting

* fixing syntax error

* added get function

* linting

* completed travelguide command

* linting

* adding deletion confirmation

* linting

* migrating travelguide.json to postgres

* linting

* linting

---------

Co-authored-by: Jessica Xu <[email protected]>

* Modify location and method for chromium install

* Alter setup to use chromium base

* Update to puppeteer version

* Replace secondary node image with puppeteer

* Fix capitalisation inconsistency and assume permission set

* Reappend entrypoint permission modification

* Reset user from image setup

* Attempt return to puppeteer user after setup

* [DISC-110] Adding Course Chats 1-year "Subscription" (#191)

* Added database implementation of user roles when assigned and removed

* Added time checking function for expired user_roles and added time assigned column to user_roles table

* Added on ready file with cron.js to perform daily check of old_roles

* Adding new package cron for scheduling

* fixing lint issues

* Fixing prettier issues

* Package changes

* Restoring develop package lock.json and fixing db_ready

* Moving guild and roles out of for loop to remove redundant fetching

* [DISC-121] Implement Logging for User Rejoining (#199)

* Implementation of user join and leave logging and admin command to facilitate replacing old db table

* Complete implementation of rejoin notices

* Fix to incorrect conflict resolution commit

* Minor fixes to Admin Command (#203)

* Update permission field to use new reference

* Fix function call name

* Fixes to allow functioning of admin delete command

* Append additional table creation after removing old table

---------

Co-authored-by: imagine-hussain <[email protected]>
Co-authored-by: tunein <[email protected]>
Co-authored-by: zcDay1 <[email protected]>
Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Jared L <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: abiramen <[email protected]>
Co-authored-by: Bigbugman <[email protected]>
Co-authored-by: Abraham Assariparambil Earnest <[email protected]>
Co-authored-by: mi-mott <[email protected]>
Co-authored-by: chlowoee <[email protected]>
Co-authored-by: ericwu2205 <[email protected]>
Co-authored-by: XenocidePC <[email protected]>
Co-authored-by: h34312575s <[email protected]>
Co-authored-by: addison <[email protected]>
Co-authored-by: Jessica Xu <[email protected]>
Domin0de added a commit that referenced this pull request Nov 12, 2024
* migrate from insou api to circles for the handbook commands (#128)

* migrate from insou api to circles for the handbook commands

* remove trailing forward slash in handbook.json

* handbook: the handbook is fixed

* Update handbook.js

commented out a console.log

---------

Co-authored-by: tunein <[email protected]>
Co-authored-by: zcDay1 <[email protected]>

* prettier formatted

* chore(deps): update `renovate` config

* chore(deps): update docker/build-push-action action to v4 (#134)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Projects description command feature (#145)

* projects-descriptions v1 commit

* project-descriptions command v2 commit

* linting fixes for project-descriptions.js, and for handbook.js

---------

Co-authored-by: AcdSoftCo <[email protected]>

* disable annoying carrotboard pins

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging

* Revert "rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before merging"

This reverts commit 2f59c71.

* rolesPermOverride command  (#152)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Roles perm override (#153)

* rolesPermOverride command is a script or one-time use command to attach every course role with permissions to view and send messages in any text channel with identical name. Please review and test before mergin

* BUGGY CODE but still progress over the previous commit, I will come back this evening to fix

* rolesPermOverride command: now admin-only command, and I've tested it for various cases regarding if a channel exists, if a role exists for a channel that doesnt exist, if there are two channels with the same name as a role and vice versa, and it works without error

* course.js: removed code to create individual user permission overwrites in each channel

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Project descriptions (#154)

* project-descriptions.js: updated course descriptions written by the directors for 2023 levelling up with Projects Fair Day, and the discord bot CTF flag easter egg entry under this command included too for this event.

* made messages ephemeral to prevent chat from being spammed by users. And got rid of link embeds in the messages.

* lint update

---------

Co-authored-by: AcdSoftCo <[email protected]>

* Dev/course channel fix 3 (#158)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

---------

Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* dev/course-channel-fix-5 (#160)

* course-chat-fix-2, make new roles where there arent any in /rolespermoverride and also remove individual permission overwrites, and also updates to /course join to catch when there doesn't exist a role for a course and also /course leave to attempt to remove individual permission overwrites along with removing course role PLEASE TEST THOROUGHLY AND INSPECT CODE THOROUGHLY. I wrote this ASAP and haven't got time to properly review it.

* Modified functions for course channel fixes

* Check for if user only has read perms for overwrite replacing and fix looping over members

* Fix to functionality of iteration and editing roles

* Fix to initial working state

* Fix linting

* Additional fixes to ordering and component operations to remove role and individual permissions correctly

* Appended filter for both view only perms and view + send messages perms

* Appended single channel mode for permissions override

* Appended check command for role permissions

* Resolved merge conflicts in dev/course-channel-fix-4

---------

Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* Update rolesPermOverride.js

double equals updated to triple equals on line 156

* Course Command Fixing - Collection Null Value Error (#162)

* Accounting for non-channel returns associated to snowflakes

* Utilise cache directly as fetch falls back to a cache call anyway

* Dev/upgrade handbook url (#164)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed bug for courses that do not yet have an offering term (Default: "None") (#165)

* Upgraded handbook url in config.json to use 2024. Also fixed incorrect url links in the handbook.js command.

* Fixed eslint warnings

* Fixed equivalent courses urls being listed

* Implementation of the Lunch Buddy feature (#167)

* update: checking if perms work

* Chron job set for every minute, basic embed added and structure for the locations and sub locations created

* Updated README

* Implemented area voting system

* Ran linting and prettier for current changes

* Appending location poll for given area, and vote counting for both area and locations

* Implemented functional voting system for area and location, creating thread upon completion of set

* Used await and cleaned up a bit of code, thread now adds all voters not only the ones who voted for the winning area

* Lint fix

* Removed promises and adjusted placement of vote function calls

* Adjusted thread users, append location vote pings

* Linting fixes

* Locations Update

* Adds "any" option and append additional vote info

* Appended code for live run timing

* Update to use config file

* Allow disabling of feature without editing code and disable

* Minor adjustment to readme and npm commands

* Appended clarifying comment regarding edge case of only any votes

---------

Co-authored-by: mi-mott <[email protected]>

* [DISC-107] Adding csesocLinks to get CSESoc related links (#170)

* completed csesocLinks command

* linting

* Refactor execute function to use arrow functions

* linting

* [DISC-109] Adding bot-status for events and member count (#169)

* Adding bot-status for events and member count

* Fixing lint errors

* Adding fixes to how member count is calculated

---------

Authored-by: Eric <[email protected]>

* Update dependency nodemailer to v6.9.9 [SECURITY] (#168)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency axios to v0.28.0 [SECURITY] (#166)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency yaml to v2.2.2 [security] (#147)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency dotenv to v16 (#141)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4 (#157)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency discordjs-button-pagination to v3 (#140)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Remove unused discord-tictactoe dependency and updated canvas (#173)

* fix(deps): update weekly patch updates (#142)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/builders to v1 (#135)

* Update dependency @discordjs/builders to v1

* Update to project description choices to utilise object structure (Fix to erroring on dependency update)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>
Co-authored-by: Wolfdragon24 <[email protected]>

* fix(deps): update dependency discord.js to v14 (#139)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update to fix v14 breaking changes (#176)

* chore(deps): update actions/setup-node action to v4 (#172)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Nitpick refactor for courses command (#126)

* I can finally sleep now

* Implementation of suggested modifications

* Modification to ensure correct regex form for case-insensitive match

---------

Co-authored-by: Wolfdragon24 <[email protected]>

* fix(deps): update dependency mathjs to v12 (#182)

* chore(deps): update docker-github-actions

* fix(deps): update dependency mathjs to v12

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency axios to v1 (#181)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @discordjs/rest to v2 (#179)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-config-prettier to v9 (#175)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency nodemon to v3 (#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update node.js to v20 (#171)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency mathjs to v13 (#184)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* DISC-119-unielectives-review (#188)

* working unilectives review

* added warning for chartjs dependency

* changed to ephemeral reply

* removed unneccesary libraries for chartjs

* hopefully no npm package conflict dying

* npm packages should be fixed

* changed web scraper package for robustness

* linting

* fixed yaml npm issue

* JSCode docu

* linting

* revert config files to og

* package-json changes

---------

Co-authored-by: addison <[email protected]>

* [DISC-120] Update eslint dependency and nodejs to v20

* chore(deps): update dependency eslint to v9

* Update to eslint and babel/eslint-parser

* Update lock file

* Fixes for linting

* Modifications to ignore node modules and consider all other files for linting

* Force update of node to version 20

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>

* [DISC-120] Update to prettier and corresponding eslint plugin

* chore(deps): update dependency prettier to v3

* Update prettier config to use auto end of line setting

* Linting and prettifying

* Prettier fixes and running format

* Prettier fix

* Fix by consolidating updates to prettier and eslint plugin

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wolfdragon24 <[email protected]>

* chore(deps): lock file maintenance (#186)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update weekly minor updates (#143)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* [DISC-120] Fix to renovate.json file (#190)

* [DISC-120] Declare file type for requiring data (#192)

* [DISC-120] Adjust data type for file (#193)

* Declare file type for requiring data

* Use json as opposed to js data file

* [DISC-120] Move to using fs for configuration (#194)

* Declare file type for requiring data

* Use json as opposed to js data file

* Replace require to use reading file with fs

* Move file to config

* Fix spelling error

* Append setup command for puppeteer browser

* Downloading dependencies and requirements for puppeteer

* Modification to installation order

* Affirm installation

* Revert prior changes and set to use alternate folder for chromium instance

* Manually ignore puppeteer config file in eslint

* Attempt fix to eslint hanging

* [DISC-117] Adding travelguides command (#187)

* initial travelguide add subcommand

* fixing formatting

* fixing syntax error

* added get function

* linting

* completed travelguide command

* linting

* adding deletion confirmation

* linting

* migrating travelguide.json to postgres

* linting

* linting

---------

Co-authored-by: Jessica Xu <[email protected]>

* Modify location and method for chromium install

* Alter setup to use chromium base

* Update to puppeteer version

* Replace secondary node image with puppeteer

* Fix capitalisation inconsistency and assume permission set

* Reappend entrypoint permission modification

* Reset user from image setup

* Attempt return to puppeteer user after setup

* [DISC-110] Adding Course Chats 1-year "Subscription" (#191)

* Added database implementation of user roles when assigned and removed

* Added time checking function for expired user_roles and added time assigned column to user_roles table

* Added on ready file with cron.js to perform daily check of old_roles

* Adding new package cron for scheduling

* fixing lint issues

* Fixing prettier issues

* Package changes

* Restoring develop package lock.json and fixing db_ready

* Moving guild and roles out of for loop to remove redundant fetching

* [DISC-121] Implement Logging for User Rejoining (#199)

* Implementation of user join and leave logging and admin command to facilitate replacing old db table

* Complete implementation of rejoin notices

* Fix to incorrect conflict resolution commit

* Minor fixes to Admin Command (#203)

* Update permission field to use new reference

* Fix function call name

* Fixes to allow functioning of admin delete command

* Append additional table creation after removing old table

* Update dependency axios to v1.7.4 [SECURITY] (#205)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Fix embed option usage of strings with objects (#207)

---------

Co-authored-by: imagine-hussain <[email protected]>
Co-authored-by: tunein <[email protected]>
Co-authored-by: zcDay1 <[email protected]>
Co-authored-by: AcdSoftCo <[email protected]>
Co-authored-by: Jared L <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: abiramen <[email protected]>
Co-authored-by: Bigbugman <[email protected]>
Co-authored-by: Abraham Assariparambil Earnest <[email protected]>
Co-authored-by: mi-mott <[email protected]>
Co-authored-by: chlowoee <[email protected]>
Co-authored-by: ericwu2205 <[email protected]>
Co-authored-by: XenocidePC <[email protected]>
Co-authored-by: h34312575s <[email protected]>
Co-authored-by: addison <[email protected]>
Co-authored-by: Jessica Xu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file deps: minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant