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

Next version: GNOME Shell 47 #49

Merged
merged 29 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1dd5b6a
General preparations for GNOME Shell 47
JumpLink Jul 19, 2024
1d78a6f
Upgrade dependencies and bump version 47.0.0-next.2
JumpLink Jul 25, 2024
3736744
Resolve merge conflict with main
JumpLink Sep 20, 2024
b32f6d9
Upgrade gir dependencies
JumpLink Sep 20, 2024
6d8fdbd
Upgrade other dependencies
JumpLink Sep 20, 2024
80de285
Upgrade yarn
JumpLink Sep 20, 2024
51eb4a5
Upgrade gir type dependencies to latest
JumpLink Sep 20, 2024
6b053e0
Bump version 47.0.0-next.3
JumpLink Sep 20, 2024
3551f96
example: Fix example on node 22 by removing json import
JumpLink Sep 21, 2024
0ea740a
Adapt typings for Gnome 47 release
schnz Sep 20, 2024
6a61c4e
Check popup menu module for GNOME 47
swsnr Sep 21, 2024
cb3dc38
Set default formatter for typescript
swsnr Sep 21, 2024
a2eda2d
Verify modelDialog for GNOME 47
swsnr Sep 21, 2024
bf01e3c
Check messageTray
swsnr Sep 21, 2024
faae7c6
Check signals for GNOME 47
swsnr Sep 21, 2024
f79c918
Merge pull request #51 from gjsify/update-types-v47
swsnr Sep 22, 2024
b6140e1
Bump version 47.0.0-next.4
swsnr Sep 22, 2024
4e6e386
Merge pull request #52 from gjsify/mark-types-for-47
JumpLink Sep 23, 2024
6dc8fe6
Check extension metadata module for GNOME 47
Totto16 Sep 25, 2024
48a2e97
Check ui/layout module for GNOME 47
Totto16 Sep 25, 2024
8421cb8
Check main module for GNOME 47
Totto16 Sep 25, 2024
a084c2d
Check ui/lightbox module for GNOME 47
Totto16 Sep 25, 2024
4e1dc45
Check ui/messageTray module for GNOME 47
Totto16 Sep 25, 2024
360cb62
Check animationUtils module the first time for GNOME 47
Totto16 Sep 25, 2024
c2ef164
Check ui/dialog module for GNOME 47
Totto16 Sep 25, 2024
3a5dd47
Check ui/panelMenu module for GNOME 47
Totto16 Sep 25, 2024
a1a5431
Check ui/popupMenu module for GNOME 47
Totto16 Sep 25, 2024
381db6a
Merge pull request #53 from gjsify/mark-gnome-types-for-47
swsnr Sep 26, 2024
ffc8978
Upgrade dependencies
JumpLink Nov 3, 2024
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
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"cSpell.words": [
"girs"
],
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs"
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.3.1.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.1.cjs

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion .yarn/sdks/prettier/bin/prettier.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
Expand All @@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real prettier/bin/prettier.cjs your application uses
module.exports = absRequire(`prettier/bin/prettier.cjs`);
module.exports = wrapWithUserWrapper(absRequire(`prettier/bin/prettier.cjs`));
7 changes: 6 additions & 1 deletion .yarn/sdks/prettier/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
Expand All @@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real prettier your application uses
module.exports = absRequire(`prettier`);
module.exports = wrapWithUserWrapper(absRequire(`prettier`));
7 changes: 6 additions & 1 deletion .yarn/sdks/typescript/bin/tsc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
Expand All @@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real typescript/bin/tsc your application uses
module.exports = absRequire(`typescript/bin/tsc`);
module.exports = wrapWithUserWrapper(absRequire(`typescript/bin/tsc`));
7 changes: 6 additions & 1 deletion .yarn/sdks/typescript/bin/tsserver
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
Expand All @@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real typescript/bin/tsserver your application uses
module.exports = absRequire(`typescript/bin/tsserver`);
module.exports = wrapWithUserWrapper(absRequire(`typescript/bin/tsserver`));
7 changes: 6 additions & 1 deletion .yarn/sdks/typescript/lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
Expand All @@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real typescript/lib/tsc.js your application uses
module.exports = absRequire(`typescript/lib/tsc.js`);
module.exports = wrapWithUserWrapper(absRequire(`typescript/lib/tsc.js`));
11 changes: 10 additions & 1 deletion .yarn/sdks/typescript/lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
Expand All @@ -23,7 +24,15 @@ if (existsSync(absPnpApiPath)) {
}
}

const moduleWrapper = tsserver => {
const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

const moduleWrapper = exports => {
return wrapWithUserWrapper(moduleWrapperFn(exports));
};

const moduleWrapperFn = tsserver => {
if (!process.versions.pnp) {
return tsserver;
}
Expand Down
11 changes: 10 additions & 1 deletion .yarn/sdks/typescript/lib/tsserverlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
Expand All @@ -23,7 +24,15 @@ if (existsSync(absPnpApiPath)) {
}
}

const moduleWrapper = tsserver => {
const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

const moduleWrapper = exports => {
return wrapWithUserWrapper(moduleWrapperFn(exports));
};

const moduleWrapperFn = tsserver => {
if (!process.versions.pnp) {
return tsserver;
}
Expand Down
7 changes: 6 additions & 1 deletion .yarn/sdks/typescript/lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
const absRequire = createRequire(absPnpApiPath);

const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`);
Expand All @@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
}
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real typescript your application uses
module.exports = absRequire(`typescript`);
module.exports = wrapWithUserWrapper(absRequire(`typescript`));
2 changes: 1 addition & 1 deletion .yarn/sdks/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript",
"version": "5.5.3-sdk",
"version": "5.6.2-sdk",
"main": "./lib/typescript.js",
"type": "commonjs",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ compressionLevel: mixed

enableGlobalCache: false

yarnPath: .yarn/releases/yarn-4.3.1.cjs
yarnPath: .yarn/releases/yarn-4.5.1.cjs
4 changes: 2 additions & 2 deletions examples/hello-world/esbuild.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { build } from 'esbuild';
import { copyFileSync } from 'fs';
import { copyFileSync, readFileSync } from 'fs';
import { resolve, dirname } from 'path';
import { fileURLToPath } from 'url';
import AdmZip from 'adm-zip';
import metadata from './src/metadata.json' assert { type: 'json' };

const __dirname = dirname(fileURLToPath(import.meta.url));
const metadata = JSON.parse(readFileSync('./src/metadata.json', 'utf8'));

console.debug(`Building ${metadata.name} v${metadata.version}...`);

Expand Down
14 changes: 7 additions & 7 deletions examples/hello-world/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gjsify/gnome-shell-hello-world-example",
"version": "46.0.2",
"version": "47.0.0-next.4",
"description": "Simple Gnome Shell Hello World Extension example",
"type": "module",
"main": "dist/extension.js",
Expand All @@ -15,14 +15,14 @@
"license": "MIT",
"devDependencies": {
"@tsconfig/strictest": "^2.0.5",
"adm-zip": "^0.5.14",
"esbuild": "^0.23.0",
"typescript": "5.5.4"
"adm-zip": "^0.5.16",
"esbuild": "^0.24.0",
"typescript": "5.6.3"
},
"dependencies": {
"@girs/gjs": "^4.0.0-beta.12",
"@girs/gjs": "^4.0.0-beta.17",
"@girs/gnome-shell": "workspace:^",
"@girs/gobject-2.0": "^2.80.3-4.0.0-beta.12",
"@girs/st-14": "^14.0.0-4.0.0-beta.12"
"@girs/gobject-2.0": "^2.82.2-4.0.0-beta.17",
"@girs/st-15": "^15.0.0-4.0.0-beta.17"
}
}
2 changes: 1 addition & 1 deletion examples/hello-world/src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@girs/gjs'; // For global types like `log()`
import St from '@girs/st-14';
import St from '@girs/st-15';

import '@girs/gnome-shell/extensions/global'; // For global shell types
import { Extension, gettext as _ } from '@girs/gnome-shell/extensions/extension';
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gnome-shell",
"version": "46.0.2",
"version": "47.0.0-next.4",
"description": "GJS TypeScript type definitions for GNOME Shell Extensions",
"main": "src/index.js",
"type": "module",
Expand Down Expand Up @@ -52,9 +52,9 @@
"url": "https://github.com/gjsify/gnome-shell/issues"
},
"homepage": "https://github.com/gjsify/gnome-shell#readme",
"packageManager": "yarn@4.3.1",
"packageManager": "yarn@4.5.1",
"devDependencies": {
"prettier": "^3.3.3",
"typescript": "5.5.4"
"typescript": "5.6.3"
}
}
63 changes: 37 additions & 26 deletions packages/gnome-shell/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@girs/gnome-shell",
"version": "46.0.2",
"version": "47.0.0-next.4",
"description": "GJS TypeScript type definitions for GNOME Shell Extensions",
"type": "module",
"main": "./dist/index.js",
Expand Down Expand Up @@ -182,6 +182,17 @@
}
},
"./misc/systemActions/ambient": "./dist/misc/systemActions-ambient.d.ts",
"./misc/util": {
"import": {
"types": "./dist/misc/util.d.ts",
"default": "./dist/misc/util.js"
},
"require": {
"types": "./dist/misc/util.d.ts",
"default": "./dist/misc/util.cjs"
}
},
"./misc/util/ambient": "./dist/misc/util-ambient.d.ts",
"./ui/accessDialog": {
"import": {
"types": "./dist/ui/accessDialog.d.ts",
Expand Down Expand Up @@ -972,34 +983,34 @@
"generate:types": "node ./scripts/generate-types.js"
},
"dependencies": {
"@girs/accountsservice-1.0": "^1.0.0-4.0.0-beta.12",
"@girs/adw-1": "^1.6.0-4.0.0-beta.12",
"@girs/atk-1.0": "^2.52.0-4.0.0-beta.12",
"@girs/cally-14": "^14.0.0-4.0.0-beta.12",
"@girs/clutter-14": "^14.0.0-4.0.0-beta.12",
"@girs/cogl-2.0": "^2.0.0-4.0.0-beta.12",
"@girs/gcr-4": "^4.3.0-4.0.0-beta.12",
"@girs/gdm-1.0": "^1.0.0-4.0.0-beta.12",
"@girs/gio-2.0": "^2.80.3-4.0.0-beta.12",
"@girs/gjs": "^4.0.0-beta.12",
"@girs/glib-2.0": "^2.80.3-4.0.0-beta.12",
"@girs/gnomebg-4.0": "^4.0.0-4.0.0-beta.12",
"@girs/gnomebluetooth-3.0": "^3.0.0-4.0.0-beta.12",
"@girs/gnomedesktop-4.0": "^4.0.0-4.0.0-beta.12",
"@girs/gobject-2.0": "^2.80.3-4.0.0-beta.12",
"@girs/gtk-4.0": "^4.14.4-4.0.0-beta.12",
"@girs/gvc-1.0": "^1.0.0-4.0.0-beta.12",
"@girs/meta-14": "^14.0.0-4.0.0-beta.12",
"@girs/mtk-14": "^14.0.0-4.0.0-beta.12",
"@girs/polkit-1.0": "^1.0.0-4.0.0-beta.12",
"@girs/shell-14": "^14.0.0-4.0.0-beta.12",
"@girs/shew-0": "^0.0.0-4.0.0-beta.12",
"@girs/st-14": "^14.0.0-4.0.0-beta.12",
"@girs/upowerglib-1.0": "^0.99.1-4.0.0-beta.12"
"@girs/accountsservice-1.0": "1.0.0-4.0.0-beta.17",
"@girs/adw-1": "^1.7.0-4.0.0-beta.17",
"@girs/atk-1.0": "^2.54.0-4.0.0-beta.17",
"@girs/cally-15": "^15.0.0-4.0.0-beta.17",
"@girs/clutter-15": "^15.0.0-4.0.0-beta.17",
"@girs/cogl-2.0": "^2.0.0-4.0.0-beta.17",
"@girs/gcr-4": "^4.3.0-4.0.0-beta.17",
"@girs/gdm-1.0": "^1.0.0-4.0.0-beta.17",
"@girs/gio-2.0": "^2.82.2-4.0.0-beta.17",
"@girs/gjs": "^4.0.0-beta.17",
"@girs/glib-2.0": "^2.82.2-4.0.0-beta.17",
"@girs/gnomebg-4.0": "^4.0.0-4.0.0-beta.17",
"@girs/gnomebluetooth-3.0": "^3.0.0-4.0.0-beta.17",
"@girs/gnomedesktop-4.0": "^4.0.0-4.0.0-beta.17",
"@girs/gobject-2.0": "^2.82.2-4.0.0-beta.17",
"@girs/gtk-4.0": "^4.16.3-4.0.0-beta.17",
"@girs/gvc-1.0": "^1.0.0-4.0.0-beta.17",
"@girs/meta-15": "^15.0.0-4.0.0-beta.17",
"@girs/mtk-15": "^15.0.0-4.0.0-beta.17",
"@girs/polkit-1.0": "^1.0.0-4.0.0-beta.17",
"@girs/shell-15": "^15.0.0-4.0.0-beta.17",
"@girs/shew-0": "^0.0.0-4.0.0-beta.17",
"@girs/st-15": "^15.0.0-4.0.0-beta.17",
"@girs/upowerglib-1.0": "^0.99.1-4.0.0-beta.17"
},
"devDependencies": {
"@tsconfig/strictest": "^2.0.5",
"typescript": "5.5.4"
"typescript": "5.6.3"
},
"keywords": [
"Gir",
Expand Down
8 changes: 4 additions & 4 deletions packages/gnome-shell/src/extensions/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type Shell from '@girs/shell-14';
import type Clutter from '@girs/clutter-14';
import type Shell from '@girs/shell-15';
import type Clutter from '@girs/clutter-15';
declare global {
/**
* Global shell object created by GNOME Shell on startup.
Expand Down Expand Up @@ -88,7 +88,7 @@ type AnimatableActorFields =

interface EasingParamsWithProperties extends EasingParams, Partial<Pick<Clutter.Actor, AnimatableActorFields>> {}

declare module '@girs/st-14' {
declare module '@girs/st-15' {
export namespace St {
interface Adjustment {
/**
Expand All @@ -103,7 +103,7 @@ declare module '@girs/st-14' {
}
}

declare module '@girs/clutter-14' {
declare module '@girs/clutter-15' {
export namespace Clutter {
interface Actor {
/**
Expand Down
Loading