Skip to content

Commit 4cf3ff0

Browse files
NBForgeLabClementPasteauD8Hgithub-actions[bot]4ian
authored
Last almost stable (#44)
* Batch of fixes (4ian#8452) * Profile not loading properly after log in / sign up * Ai requests not loading properly if opened too quickly * 3D Model previews not loading on desktop * Fix the default value displayed for the related function of action with operator (4ian#8453) * Add a callback after the in-game editor stepped (4ian#8457) Only show in developer changelog * Fix JS event API level target (4ian#8459) * improve extensions list mode * updates (#31) * Batch of fixes (4ian#8452) * Profile not loading properly after log in / sign up * Ai requests not loading properly if opened too quickly * 3D Model previews not loading on desktop * Fix the default value displayed for the related function of action with operator (4ian#8453) * Add a callback after the in-game editor stepped (4ian#8457) Only show in developer changelog * Fix JS event API level target (4ian#8459) --------- Co-authored-by: Clément Pasteau <4895034+ClementPasteau@users.noreply.github.com> Co-authored-by: D8H <Davy.Helard@gmail.com> * Show did it work buttons more often for AI output (4ian#8456) Do not show in changelog * [Auto PR] Update translations (4ian#8454) * BehaviorDialog, grid mode view and list mode improvment and new catagory folder * remove unused import * Fix various issues and crashes when reloading/editing resoures in or outside the editor (4ian#8455) * Bump newIDE version * HomePage Menu Collapse * Master official minor improvements (#38) * Make the home page navigation sidebar collapsible * .. * Update HomePageMenuBar.js * Enlarge collapsed home page navigation icons * Remove flagging the game as mobile on every build (4ian#8465) * Trigger unsaved changes when AI works, only when project actually modified (4ian#8464) * Fix asset store pagination when navigating folders and correctly installing visible assets (4ian#8466) * Fix rename context menu item not working anymore on the web-app (4ian#8468) * Fix resources added on Windows using a backslash instead of a slash (not consistent with other platforms) (4ian#8467) * Operators in instructions now automatically defaults to first value (4ian#8471) * 000 (#40) * Make the home page navigation sidebar collapsible * Remove flagging the game as mobile on every build (4ian#8465) * Trigger unsaved changes when AI works, only when project actually modified (4ian#8464) * Fix asset store pagination when navigating folders and correctly installing visible assets (4ian#8466) * Fix rename context menu item not working anymore on the web-app (4ian#8468) * Fix resources added on Windows using a backslash instead of a slash (not consistent with other platforms) (4ian#8467) * Operators in instructions now automatically defaults to first value (4ian#8471) --------- Co-authored-by: Clément Pasteau <4895034+ClementPasteau@users.noreply.github.com> * Fix tentatively crashes at scene editor resize * Fix a crash when deleting a function folder while one of its function was selected (4ian#8475) * Fix Spine objects not properly loading in the editor anymore (4ian#8476) - Also fix hot reloading of Spine objects in preview and the 3D editor * Bump newIDE version * Fix potential UseAfterFreeError on VariablesContainer.serializeTo * Introduce a direct link to open the create dialog (4ian#8460) Don't show in changelog * Allow extensions to set different icons for behaviors and objects (4ian#8472) * Ensure JSON files end with a new line (4ian#8469) Only show in developer changelog * Fix some fields of the extension properties (4ian#8480) * Bring forward the preview window on the web-app when hot-reloading (4ian#8478) * Reduce extension search dialog to three columns * Upgrade react-dnd to v14 and simplify drag-and-drop setup (4ian#8479) Only show in developer changelog * Fix potential use-after-free in instance properties when deleting scene instances (4ian#8481) * Fix potential crash in instance properties (4ian#8483) * Fix potential crash in the object properties (4ian#8484) * Fix more potential crashes (4ian#8485) * Bump newIDE version * Add null safety checks for aiRequest.output property (4ian#8486) Only show in developer changelog --------- Co-authored-by: Clément Pasteau <4895034+ClementPasteau@users.noreply.github.com> Co-authored-by: D8H <Davy.Helard@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Florian Rival <Florian.rival@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: LuniMoon <103995399+LuniMoon@users.noreply.github.com> Co-authored-by: opaldi <2235599+opaldi@users.noreply.github.com>
1 parent 3af0713 commit 4cf3ff0

File tree

29 files changed

+481
-337
lines changed

29 files changed

+481
-337
lines changed

GDevelop.js/Bindings/postjs.js

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -369,18 +369,29 @@ const callContextLabels = ['<no context set>'];
369369
*/
370370
function assertAlive(obj, label, gd, className) {
371371
if (!obj.ptr) {
372-
let message = `${label}: object was already destroyed from JavaScript (ptr is 0).`;
373-
374372
const destructionContext = obj._jsDestructionContext;
375-
throw new UseAfterFreeError({
376-
message,
377-
useAfterFreeContext: {
378-
timeSinceDestroyedInMs: destructionContext
379-
? Math.round(performance.now() - destructionContext.time)
380-
: undefined,
381-
destroyedBy: destructionContext ? destructionContext.stack : 'unknown',
382-
},
383-
});
373+
if (destructionContext) {
374+
let message = `${label}: object (${className}) was already destroyed from JavaScript (ptr is 0, _jsDestructionContext is set).`;
375+
376+
throw new UseAfterFreeError({
377+
message,
378+
useAfterFreeContext: {
379+
timeSinceDestroyedInMs: Math.round(
380+
performance.now() - destructionContext.time
381+
),
382+
destroyedBy: destructionContext.stack,
383+
},
384+
});
385+
} else {
386+
let message = `${label}: object (${className}) is a null pointer and might never have been alive (ptr is 0, _jsDestructionContext is not set).`;
387+
388+
throw new UseAfterFreeError({
389+
message,
390+
useAfterFreeContext: {
391+
possiblyNeverAlive: true,
392+
},
393+
});
394+
}
384395
}
385396
if (
386397
className !== null &&

newIDE/app/flow-typed/npm/react-dnd-html5-backend_v2.x.x.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

newIDE/app/flow-typed/npm/react-dnd_v2.x.x.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 0df5fbd2d164ee9c137293cbb8debfeb
2-
// flow-typed version: 4618dcebd8/react-dnd_v2.x.x/flow_>=v0.98.x
1+
// flow-typed signature: react-dnd_v14
2+
// Manually updated for react-dnd v14 (decorators + DndProvider)
33

44
declare module "react-dnd" {
55
declare type Identifier = string;
@@ -195,23 +195,15 @@ declare module "react-dnd" {
195195
options?: DndOptions<OP>
196196
): Connector<$Shape<OP & CP>, CP>;
197197

198-
// Drag Drop Context
198+
// DndProvider (v14+)
199199
// ----------------------------------------------------------------------
200200

201-
declare type ProviderProps = {
202-
backend: mixed,
203-
children: React$Element<any>,
204-
window?: Object,
201+
declare type DndProviderProps = {
202+
backend: any,
203+
options?: Object,
204+
children: React$Node,
205205
...
206206
};
207207

208-
declare class DragDropContextProvider<ProviderProps> extends React$Component<
209-
ProviderProps
210-
> {
211-
props: ProviderProps;
212-
}
213-
214-
declare function DragDropContext<OP: {...}, CP: {...}>(
215-
backend: mixed
216-
): Connector<$Shape<OP & CP>, CP>;
208+
declare var DndProvider: React$ComponentType<DndProviderProps>;
217209
}

newIDE/app/package-lock.json

Lines changed: 108 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)