Skip to content
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

3.0.4 #722

Merged
merged 24 commits into from
Sep 17, 2024
Merged

3.0.4 #722

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

151 changes: 0 additions & 151 deletions .eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged -c ./.husky/lint-staged-config.js
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# production
/build
/dist
/webview-ui/public/build

# misc
.DS_Store
Expand All @@ -24,3 +25,4 @@ yarn-error.log*
# shared
/src/shared
/webview-ui/src/shared
/submodules
29 changes: 18 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
# Changelog

## [3.0.4] - 2024-08-29

- Bumped TMC-langs version to 0.36.3
- .csproj files are no longer included when submitting C# exercises
- Set the minimum supported VSCode version to 1.86.0 (released in January 2024)
- Fixed the TMC-langs CLI's permissions being set to 111

## [3.0.3] - 2024-02-26

- Fixed missing "Send solution to server" button when tests are ran successfully
- Fixed running tests for exam exercises not working correctly
- Fixed missing "Send solution to server" button when tests are ran successfully
- Fixed running tests for exam exercises not working correctly

## [3.0.2] - 2024-02-22

- Bumped TMC-langs version to 0.36.1
- Added a notice about the data collected by the extension
- Bumped TMC-langs version to 0.36.1
- Added a notice about the data collected by the extension

## [3.0.1] - 2024-01-25

- Redesigned the user interface
- Fixed a bug when changing the exercise directory on Windows
- Bumped TMC-langs version to 0.36.0
- Redesigned the user interface
- Fixed a bug when changing the exercise directory on Windows
- Bumped TMC-langs version to 0.36.0

## [2.2.4] - 2023-10-10

- Improved error reporting when fetching and updating exercises
- Improved extension update procedure to be more robust against interrupted updates
- Improved error reporting when fetching and updating exercises
- Improved extension update procedure to be more robust against interrupted updates

## [2.2.3] - 2023-10-05

- Fixed another "Empty Langs Response Error" that would sometimes occur after submitting an exercise.
- Fixed another "Empty Langs Response Error" that would sometimes occur after submitting an exercise.

## [2.2.2] - 2023-09-13

- Fixed an "Empty Langs Response Error" that would sometimes occur after submitting an exercise.
- Fixed an "Empty Langs Response Error" that would sometimes occur after submitting an exercise.

## [2.2.1] - 2023-09-11

Expand Down
2 changes: 0 additions & 2 deletions backend/controllers/oauth.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { Response, Router } from "express";

/* eslint-disable @typescript-eslint/naming-convention */
interface Token {
access_token: string;
token_type: "bearer";
scope: "public";
created_at: number;
}
/* eslint-enable @typescript-eslint/naming-convention */

const USER = {
username: "TestMyExtension",
Expand Down
2 changes: 1 addition & 1 deletion bin/runTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function main() {
extensionTestsEnv,
platform,
});
} catch (err) {
} catch (_err) {
console.error("Failed to run tests");
exitCode = 1;
}
Expand Down
17 changes: 13 additions & 4 deletions bin/validateRelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,31 @@ fi
packageLockVersion=$(grep -Eo '"version":.+$' package-lock.json)
if [[ ! $packageLockVersion =~ '"version": "'$tagVersion'",' ]]
then
echo "Error: The version in package-lock.json '${packageVersion}' doesn't match with the tag '${tagVersion}'."
echo "Error: The version in package-lock.json '${packageVersion}' doesn't match with the tag '${tagVersion}'. Run 'npm i --package-lock-only'}"
exitCode=1
fi

# Changelog must have entry matching [X.Y.Z] - YYYY-MM-DD
# Count the number of matches
changelogEntry=$(grep -Ec "\[""$tagVersion""\] - [0-9]{4}(-[0-9]{2}){2}$" CHANGELOG.md)
changelogEntry=$(grep -Ec "\[$tagVersion\] - [0-9]{4}(-[0-9]{2}){2}$" CHANGELOG.md)
if [[ $changelogEntry != 1 ]]
then
echo "Error: Version entry for '${tagVersion}' in CHANGELOG.md is either missing or not formatted properly."
exitCode=1
fi

# Welcome panel must have entry matching <h3>[X.Y.Z]</h3>
# Count the number of matches
changelogEntry=$(grep -Ec "<h3>$tagVersion - [0-9]{4}(-[0-9]{2}){2}</h3>" webview-ui/src/panels/Welcome.svelte)
if [[ $changelogEntry != 1 ]]
then
echo "Error: Version entry for '${tagVersion}' in the Welcome panel changelog (./webview-ui/src/panels/Welcome.svelte) is either missing or not formatted properly."
exitCode=1
fi

# All configured Langs versions should exist on the download server.
node ./bin/verifyThatLangsBuildsExist.js
if [ $? != 0 ]

if ! node ./bin/verifyThatLangsBuildsExist.js;
then
echo "Error: Failed to verify that all Langs builds exist."
exitCode=1
Expand Down
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const path = require("path");

const TMC_LANGS_RUST_VERSION = "0.36.1";
const TMC_LANGS_RUST_VERSION = "0.36.3";

const mockTmcLocalMooc = {
__TMC_BACKEND_URL__: JSON.stringify("http://localhost:4001"),
Expand Down
Loading
Loading